rust-clippy/tests/ui/unknown_clippy_lints.fixed

19 lines
569 B
Rust
Raw Normal View History

//@run-rustfix
2019-12-27 11:41:26 +00:00
#![warn(clippy::pedantic)]
// 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_else)]
#[warn(clippy::unnecessary_cast)]
#[warn(clippy::useless_transmute)]
// Shouldn't suggest rustc lint name(`dead_code`)
2023-03-27 19:05:43 +00:00
#[warn(clippy::eq_op)]
2019-12-27 11:41:26 +00:00
// Shouldn't suggest removed/deprecated clippy lint name(`unused_collect`)
#[warn(clippy::unused_self)]
// Shouldn't suggest renamed clippy lint name(`const_static_lifetime`)
#[warn(clippy::redundant_static_lifetimes)]
fn main() {}