]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/rename.rs
Auto merge of #88788 - falk-hueffner:speedup-int-log10-branchless, r=joshtriplett
[rust.git] / src / tools / clippy / tests / ui / rename.rs
1 //! Test for Clippy lint renames.
2 // run-rustfix
3
4 #![allow(dead_code)]
5 // allow the new lint name here, to test if the new name works
6 #![allow(clippy::module_name_repetitions)]
7 #![allow(clippy::new_without_default)]
8 #![allow(clippy::redundant_static_lifetimes)]
9 // warn for the old lint name here, to test if the renaming worked
10 #![warn(clippy::cyclomatic_complexity)]
11 #![warn(clippy::mem_discriminant_non_enum)]
12
13 #[warn(clippy::stutter)]
14 fn main() {}
15
16 #[warn(clippy::new_without_default_derive)]
17 struct Foo;
18
19 #[warn(clippy::const_static_lifetime)]
20 fn foo() {}