renamed_builtin_attr: make test rustfixable

This commit is contained in:
Manish Goregaokar 2019-09-25 10:08:19 -07:00
parent d28dacb33a
commit ea16ab56d5
3 changed files with 7 additions and 1 deletions

View file

@ -0,0 +1,4 @@
// run-rustfix
#[clippy::cognitive_complexity = "1"]
fn main() {}

View file

@ -1,2 +1,4 @@
// run-rustfix
#[clippy::cyclomatic_complexity = "1"]
fn main() {}

View file

@ -1,5 +1,5 @@
error: Usage of deprecated attribute
--> $DIR/renamed_builtin_attr.rs:1:11
--> $DIR/renamed_builtin_attr.rs:3:11
|
LL | #[clippy::cyclomatic_complexity = "1"]
| ^^^^^^^^^^^^^^^^^^^^^ help: consider using: `cognitive_complexity`