]> git.lizzy.rs Git - rust.git/blob - tests/ui/rename.fixed
Auto merge of #4809 - iankronquist:patch-1, r=flip1995
[rust.git] / tests / ui / rename.fixed
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::cognitive_complexity)]
9 #![allow(clippy::redundant_static_lifetimes)]
10 // warn for the old lint name here, to test if the renaming worked
11 #![warn(clippy::cognitive_complexity)]
12
13 #[warn(clippy::module_name_repetitions)]
14 fn main() {}
15
16 #[warn(clippy::new_without_default)]
17 struct Foo;
18
19 #[warn(clippy::redundant_static_lifetimes)]
20 fn foo() {}