]> git.lizzy.rs Git - rust.git/blob - tests/ui/rename.rs
Auto merge of #4314 - chansuke:add-negation-to-is_empty, r=flip1995
[rust.git] / tests / ui / rename.rs
1 //! Test for Clippy lint renames.
2
3 // allow the new lint name here, to test if the new name works
4 #![allow(clippy::module_name_repetitions)]
5 #![allow(clippy::new_without_default)]
6 #![allow(clippy::cognitive_complexity)]
7 #![allow(clippy::redundant_static_lifetimes)]
8 // warn for the old lint name here, to test if the renaming worked
9 #![warn(clippy::cyclomatic_complexity)]
10
11 #[warn(clippy::stutter)]
12 fn main() {}
13
14 #[warn(clippy::new_without_default_derive)]
15 struct Foo;
16
17 #[warn(clippy::const_static_lifetime)]
18 static Bar: &'static str = "baz";
19
20 impl Foo {
21     fn new() -> Self {
22         Foo
23     }
24 }