2019-06-14 07:54:34 +00:00
|
|
|
//! Test for Clippy lint renames.
|
2019-08-18 07:37:12 +00:00
|
|
|
// run-rustfix
|
2019-06-14 07:54:34 +00:00
|
|
|
|
2019-08-18 07:37:12 +00:00
|
|
|
#![allow(dead_code)]
|
2019-06-14 07:54:34 +00:00
|
|
|
// 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
|
2019-02-23 01:19:50 +00:00
|
|
|
#![warn(clippy::cyclomatic_complexity)]
|
2021-10-11 08:10:16 +00:00
|
|
|
#![warn(clippy::mem_discriminant_non_enum)]
|
2018-12-17 12:59:09 +00:00
|
|
|
|
|
|
|
#[warn(clippy::stutter)]
|
|
|
|
fn main() {}
|
2018-12-17 23:25:49 +00:00
|
|
|
|
|
|
|
#[warn(clippy::new_without_default_derive)]
|
|
|
|
struct Foo;
|
|
|
|
|
2019-06-13 21:54:05 +00:00
|
|
|
#[warn(clippy::const_static_lifetime)]
|
2019-08-18 07:37:12 +00:00
|
|
|
fn foo() {}
|