blob: a66c2e587c8736111e067f1b2dd8a41d583840a5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
//! Test for Clippy lint renames.
// run-rustfix
#![allow(dead_code)]
// allow the new lint name here, to test if the new name works
#![allow(clippy::module_name_repetitions)]
#![allow(clippy::new_without_default)]
#![allow(clippy::redundant_static_lifetimes)]
// warn for the old lint name here, to test if the renaming worked
#![warn(clippy::cognitive_complexity)]
#![warn(enum_intrinsics_non_enums)]
#[warn(clippy::module_name_repetitions)]
fn main() {}
#[warn(clippy::new_without_default)]
struct Foo;
#[warn(clippy::redundant_static_lifetimes)]
fn foo() {}
|