-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
I removed the `Bar` static and `Foo` impl because they are not needed for what's tested here as far as I can tell.
- Loading branch information
Showing
3 changed files
with
28 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
//! 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::cognitive_complexity)] | ||
#![allow(clippy::redundant_static_lifetimes)] | ||
// warn for the old lint name here, to test if the renaming worked | ||
#![warn(clippy::cognitive_complexity)] | ||
|
||
#[warn(clippy::module_name_repetitions)] | ||
fn main() {} | ||
|
||
#[warn(clippy::new_without_default)] | ||
struct Foo; | ||
|
||
#[warn(clippy::redundant_static_lifetimes)] | ||
fn foo() {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters