2019-06-14 02:54:34 -05:00
|
|
|
//! Test for Clippy lint renames.
|
|
|
|
|
|
|
|
// 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::cognitive_complexity)]
|
|
|
|
#![allow(clippy::redundant_static_lifetimes)]
|
|
|
|
// warn for the old lint name here, to test if the renaming worked
|
2019-02-22 19:19:50 -06:00
|
|
|
#![warn(clippy::cyclomatic_complexity)]
|
2018-12-17 06:59:09 -06:00
|
|
|
|
|
|
|
#[warn(clippy::stutter)]
|
|
|
|
fn main() {}
|
2018-12-17 17:25:49 -06:00
|
|
|
|
|
|
|
#[warn(clippy::new_without_default_derive)]
|
|
|
|
struct Foo;
|
|
|
|
|
2019-06-13 16:54:05 -05:00
|
|
|
#[warn(clippy::const_static_lifetime)]
|
|
|
|
static Bar: &'static str = "baz";
|
|
|
|
|
2018-12-17 17:25:49 -06:00
|
|
|
impl Foo {
|
|
|
|
fn new() -> Self {
|
|
|
|
Foo
|
|
|
|
}
|
|
|
|
}
|