-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of #13163 - GuillaumeGomez:fix-13097, r=Alexendoo
Fix case where doc_markdown is triggered on words ending with "ified" Fixes #13097. r? `@Alexendoo` changelog: Fix case where doc_markdown is triggered on words ending with "ified"
- Loading branch information
Showing
4 changed files
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// This test checks that words starting with capital letters and ending with "ified" don't | ||
// trigger the lint. | ||
|
||
#![deny(clippy::doc_markdown)] | ||
|
||
pub enum OutputFormat { | ||
/// `HumaNified` | ||
//~^ ERROR: item in documentation is missing backticks | ||
Plain, | ||
// Should not warn! | ||
/// JSONified console output | ||
Json, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// This test checks that words starting with capital letters and ending with "ified" don't | ||
// trigger the lint. | ||
|
||
#![deny(clippy::doc_markdown)] | ||
|
||
pub enum OutputFormat { | ||
/// HumaNified | ||
//~^ ERROR: item in documentation is missing backticks | ||
Plain, | ||
// Should not warn! | ||
/// JSONified console output | ||
Json, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
error: item in documentation is missing backticks | ||
--> tests/ui/doc/doc_markdown-issue_13097.rs:7:9 | ||
| | ||
LL | /// HumaNified | ||
| ^^^^^^^^^^ | ||
| | ||
note: the lint level is defined here | ||
--> tests/ui/doc/doc_markdown-issue_13097.rs:4:9 | ||
| | ||
LL | #![deny(clippy::doc_markdown)] | ||
| ^^^^^^^^^^^^^^^^^^^^ | ||
help: try | ||
| | ||
LL | /// `HumaNified` | ||
| ~~~~~~~~~~~~ | ||
|
||
error: aborting due to 1 previous error | ||
|