Add tests for unknwon_clippy_lints lint
This commit is contained in:
parent
f6d57862c7
commit
8d516b36fe
|
@ -0,0 +1,8 @@
|
||||||
|
|
||||||
|
#![allow(clippy::All)]
|
||||||
|
#![warn(clippy::pedantic)]
|
||||||
|
|
||||||
|
#[warn(clippy::if_not_els)]
|
||||||
|
fn main() {
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,16 @@
|
||||||
|
error: unknwon clippy lint: clippy::if_not_els
|
||||||
|
--> $DIR/unknown_clippy_lints.rs:5:8
|
||||||
|
|
|
||||||
|
5 | #[warn(clippy::if_not_els)]
|
||||||
|
| ^^^^^^^^^^^^^^^^^^
|
||||||
|
|
|
||||||
|
= note: `-D clippy::unknown-clippy-lints` implied by `-D warnings`
|
||||||
|
|
||||||
|
error: unknwon clippy lint: clippy::All
|
||||||
|
--> $DIR/unknown_clippy_lints.rs:2:10
|
||||||
|
|
|
||||||
|
2 | #![allow(clippy::All)]
|
||||||
|
| ^^^^^^^^^^^ help: lowercase the lint name: `all`
|
||||||
|
|
||||||
|
error: aborting due to 2 previous errors
|
||||||
|
|
Loading…
Reference in New Issue