rust-clippy/tests/ui/unknown_clippy_lints.rs

19 lines
636 B
Rust
Raw Normal View History

#![warn(clippy::pedantic)]
2019-12-27 11:41:26 +00:00
// Should suggest lowercase
#![allow(clippy::All)]
2023-05-21 10:12:12 +00:00
#![warn(clippy::CMP_OWNED)]
2019-12-27 11:41:26 +00:00
// Should suggest similar clippy lint name
#[warn(clippy::if_not_els)]
2019-12-27 11:41:26 +00:00
#[warn(clippy::UNNecsaRy_cAst)]
#[warn(clippy::useles_transute)]
// Should suggest rustc lint name(`dead_code`)
2019-12-27 11:41:26 +00:00
#[warn(clippy::dead_cod)]
// Shouldn't suggest removed/deprecated clippy lint name(`unused_collect`)
#[warn(clippy::unused_colle)]
// Shouldn't suggest renamed clippy lint name(`const_static_lifetime`)
#[warn(clippy::const_static_lifetim)]
// issue #118183, should report `missing_docs` from rustc lint
#[warn(clippy::missing_docs)]
2018-12-09 22:26:16 +00:00
fn main() {}