2019-08-18 07:37:12 +00:00
|
|
|
//! 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)]
|
2021-10-11 08:10:16 +00:00
|
|
|
#![warn(enum_intrinsics_non_enums)]
|
2019-08-18 07:37:12 +00:00
|
|
|
|
|
|
|
#[warn(clippy::module_name_repetitions)]
|
|
|
|
fn main() {}
|
|
|
|
|
|
|
|
#[warn(clippy::new_without_default)]
|
|
|
|
struct Foo;
|
|
|
|
|
|
|
|
#[warn(clippy::redundant_static_lifetimes)]
|
|
|
|
fn foo() {}
|