]> git.proxmox.com Git - rustc.git/blame - src/tools/clippy/tests/ui/rename.fixed
Update upstream source from tag 'upstream/1.52.1+dfsg1'
[rustc.git] / src / tools / clippy / tests / ui / rename.fixed
CommitLineData
f20569fa
XL
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::cognitive_complexity)]
11
12#[warn(clippy::module_name_repetitions)]
13fn main() {}
14
15#[warn(clippy::new_without_default)]
16struct Foo;
17
18#[warn(clippy::redundant_static_lifetimes)]
19fn foo() {}