File tree 3 files changed +25
-5
lines changed
3 files changed +25
-5
lines changed Original file line number Diff line number Diff line change 7
7
#[warn(clippy::if_not_else)]
8
8
#[warn(clippy::unnecessary_cast)]
9
9
#[warn(clippy::useless_transmute)]
10
- // Shouldn't suggest rustc lint name(`dead_code`)
11
- #[warn(clippy::eq_op )]
10
+ // Should suggest rustc lint name(`dead_code`)
11
+ #[warn(dead_code )]
12
12
// Shouldn't suggest removed/deprecated clippy lint name(`unused_collect`)
13
13
#[warn(clippy::unused_self)]
14
14
// Shouldn't suggest renamed clippy lint name(`const_static_lifetime`)
15
15
#[warn(clippy::redundant_static_lifetimes)]
16
+ // issue #118183, should report `missing_docs` from rustc lint
17
+ #[warn(missing_docs)]
16
18
fn main() {}
Original file line number Diff line number Diff line change 7
7
#[ warn( clippy:: if_not_els) ]
8
8
#[ warn( clippy:: UNNecsaRy_cAst ) ]
9
9
#[ warn( clippy:: useles_transute) ]
10
- // Shouldn't suggest rustc lint name(`dead_code`)
10
+ // Should suggest rustc lint name(`dead_code`)
11
11
#[ warn( clippy:: dead_cod) ]
12
12
// Shouldn't suggest removed/deprecated clippy lint name(`unused_collect`)
13
13
#[ warn( clippy:: unused_colle) ]
14
14
// Shouldn't suggest renamed clippy lint name(`const_static_lifetime`)
15
15
#[ warn( clippy:: const_static_lifetim) ]
16
+ // issue #118183, should report `missing_docs` from rustc lint
17
+ #[ warn( clippy:: missing_docs) ]
16
18
fn main ( ) { }
Original file line number Diff line number Diff line change @@ -35,7 +35,12 @@ error: unknown lint: `clippy::dead_cod`
35
35
--> $DIR/unknown_clippy_lints.rs:11:8
36
36
|
37
37
LL | #[warn(clippy::dead_cod)]
38
- | ^^^^^^^^^^^^^^^^ help: did you mean: `clippy::eq_op`
38
+ | ^^^^^^^^^^^^^^^^
39
+ |
40
+ help: a lint with a similar name exists in `rustc` lints
41
+ |
42
+ LL | #[warn(dead_code)]
43
+ | ~~~~~~~~~
39
44
40
45
error: unknown lint: `clippy::unused_colle`
41
46
--> $DIR/unknown_clippy_lints.rs:13:8
@@ -49,5 +54,16 @@ error: unknown lint: `clippy::const_static_lifetim`
49
54
LL | #[warn(clippy::const_static_lifetim)]
50
55
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: did you mean: `clippy::redundant_static_lifetimes`
51
56
52
- error: aborting due to 8 previous errors
57
+ error: unknown lint: `clippy::missing_docs`
58
+ --> $DIR/unknown_clippy_lints.rs:17:8
59
+ |
60
+ LL | #[warn(clippy::missing_docs)]
61
+ | ^^^^^^^^^^^^^^^^^^^^
62
+ |
63
+ help: a lint with a similar name exists in `rustc` lints
64
+ |
65
+ LL | #[warn(missing_docs)]
66
+ | ~~~~~~~~~~~~
67
+
68
+ error: aborting due to 9 previous errors
53
69
You can’t perform that action at this time.
0 commit comments