Add tests for unknwon_clippy_lints lint
This commit is contained in:
parent
f6d57862c7
commit
8d516b36fe
8
tests/ui/unknown_clippy_lints.rs
Normal file
8
tests/ui/unknown_clippy_lints.rs
Normal file
@ -0,0 +1,8 @@
|
||||
|
||||
#![allow(clippy::All)]
|
||||
#![warn(clippy::pedantic)]
|
||||
|
||||
#[warn(clippy::if_not_els)]
|
||||
fn main() {
|
||||
|
||||
}
|
16
tests/ui/unknown_clippy_lints.stderr
Normal file
16
tests/ui/unknown_clippy_lints.stderr
Normal file
@ -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
Block a user