doc_comment_double_space_linebreaks: lint per line instead of by block

remove additional lint call

fix

fix lint defs
This commit is contained in:
Jacherr 2025-02-13 16:45:43 +00:00 committed by xFrednet
parent f94f64f5e8
commit 2fd51b8d34
No known key found for this signature in database
GPG key ID: E126C23F63C8907A
5 changed files with 51 additions and 85 deletions

View file

@ -1,76 +1,65 @@
error: doc comment uses two spaces for a hard line break
--> tests/ui/doc/doc_comment_double_space_linebreak.rs:7:43
|
LL | //! Should warn on double space linebreaks
| ___________________________________________^
LL | | //! in file/module doc comment
| |____^
LL | //! Should warn on double space linebreaks
| ^^ help: replace this double space with a backslash: `\`
|
= note: `-D clippy::doc-comment-double-space-linebreak` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::doc_comment_double_space_linebreak)]`
help: replace this double space with a backslash
|
LL ~ //! Should warn on double space linebreaks\
LL ~ //! in file/module doc comment
|
error: doc comment uses two spaces for a hard line break
--> tests/ui/doc/doc_comment_double_space_linebreak.rs:35:51
|
LL | /// Should warn when doc comment uses double space
| ___________________________________________________^
LL | | /// as a line-break, even when there are multiple
LL | | /// in a row
| |____^
|
help: replace this double space with a backslash
|
LL ~ /// Should warn when doc comment uses double space\
LL ~ /// as a line-break, even when there are multiple\
LL ~ /// in a row
LL | /// Should warn when doc comment uses double space
| ^^ help: replace this double space with a backslash: `\`
error: doc comment uses two spaces for a hard line break
--> tests/ui/doc/doc_comment_double_space_linebreak.rs:36:50
|
LL | /// as a line-break, even when there are multiple
| ^^ help: replace this double space with a backslash: `\`
error: doc comment uses two spaces for a hard line break
--> tests/ui/doc/doc_comment_double_space_linebreak.rs:44:12
|
LL | /// 🌹 are 🟥
| ______________^
LL | | /// 🌷 are 🟦
LL | | /// 📎 is 😎
LL | | /// and so are 🫵
LL | | /// (hopefully no formatting weirdness linting this)
| |____^
LL | /// 🌹 are 🟥
| ^^ help: replace this double space with a backslash: `\`
error: doc comment uses two spaces for a hard line break
--> tests/ui/doc/doc_comment_double_space_linebreak.rs:45:12
|
help: replace this double space with a backslash
LL | /// 🌷 are 🟦
| ^^ help: replace this double space with a backslash: `\`
error: doc comment uses two spaces for a hard line break
--> tests/ui/doc/doc_comment_double_space_linebreak.rs:46:11
|
LL ~ /// 🌹 are 🟥\
LL ~ /// 🌷 are 🟦\
LL ~ /// 📎 is 😎\
LL ~ /// and so are 🫵\
LL ~ /// (hopefully no formatting weirdness linting this)
LL | /// 📎 is 😎
| ^^ help: replace this double space with a backslash: `\`
error: doc comment uses two spaces for a hard line break
--> tests/ui/doc/doc_comment_double_space_linebreak.rs:47:17
|
LL | /// and so are 🫵
| ^^ help: replace this double space with a backslash: `\`
error: doc comment uses two spaces for a hard line break
--> tests/ui/doc/doc_comment_double_space_linebreak.rs:86:16
|
LL | /// here we mix
| ________________^
LL | | /// double spaces\
LL | | /// and also
LL | | /// adding backslash\
LL | | /// to some of them
LL | | /// to see how that looks
| |____^
|
help: replace this double space with a backslash
|
LL ~ /// here we mix\
LL ~ /// double spaces\
LL ~ /// and also\
LL ~ /// adding backslash\
LL ~ /// to some of them\
LL ~ /// to see how that looks
|
LL | /// here we mix
| ^^ help: replace this double space with a backslash: `\`
error: aborting due to 4 previous errors
error: doc comment uses two spaces for a hard line break
--> tests/ui/doc/doc_comment_double_space_linebreak.rs:88:13
|
LL | /// and also
| ^^ help: replace this double space with a backslash: `\`
error: doc comment uses two spaces for a hard line break
--> tests/ui/doc/doc_comment_double_space_linebreak.rs:90:20
|
LL | /// to some of them
| ^^ help: replace this double space with a backslash: `\`
error: aborting due to 10 previous errors