rust/tests/ui/rename.rs

20 lines
517 B
Rust
Raw Normal View History

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