rust-clippy/tests/ui/rename.rs
flip1995 f44a904a56 Deprecate mem_discriminant_non_enum
This lint has been uplifted and is now included in
enum_intrinsics_non_enums.
2021-10-11 10:10:16 +02:00

20 lines
561 B
Rust

//! 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::cyclomatic_complexity)]
#![warn(clippy::mem_discriminant_non_enum)]
#[warn(clippy::stutter)]
fn main() {}
#[warn(clippy::new_without_default_derive)]
struct Foo;
#[warn(clippy::const_static_lifetime)]
fn foo() {}