Skip to content

Commit 88506a9

Browse files
Add regression test for rust-lang#13097
1 parent 760c3fa commit 88506a9

File tree

3 files changed

+44
-0
lines changed

3 files changed

+44
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// This test checks that words starting with capital letters and ending with "ified" don't
2+
// trigger the lint.
3+
4+
#![deny(clippy::doc_markdown)]
5+
6+
pub enum OutputFormat {
7+
/// `HumaNified`
8+
//~^ ERROR: item in documentation is missing backticks
9+
Plain,
10+
// Should not warn!
11+
/// JSONified console output
12+
Json,
13+
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// This test checks that words starting with capital letters and ending with "ified" don't
2+
// trigger the lint.
3+
4+
#![deny(clippy::doc_markdown)]
5+
6+
pub enum OutputFormat {
7+
/// HumaNified
8+
//~^ ERROR: item in documentation is missing backticks
9+
Plain,
10+
// Should not warn!
11+
/// JSONified console output
12+
Json,
13+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
error: item in documentation is missing backticks
2+
--> tests/ui/doc/doc_markdown-issue_13097.rs:7:9
3+
|
4+
LL | /// HumaNified
5+
| ^^^^^^^^^^
6+
|
7+
note: the lint level is defined here
8+
--> tests/ui/doc/doc_markdown-issue_13097.rs:4:9
9+
|
10+
LL | #![deny(clippy::doc_markdown)]
11+
| ^^^^^^^^^^^^^^^^^^^^
12+
help: try
13+
|
14+
LL | /// `HumaNified`
15+
| ~~~~~~~~~~~~
16+
17+
error: aborting due to 1 previous error
18+

0 commit comments

Comments
 (0)