renamed_builtin_attr: make test rustfixable
This commit is contained in:
parent
d28dacb33a
commit
ea16ab56d5
3 changed files with 7 additions and 1 deletions
4
tests/ui/renamed_builtin_attr.fixed
Normal file
4
tests/ui/renamed_builtin_attr.fixed
Normal file
|
@ -0,0 +1,4 @@
|
|||
// run-rustfix
|
||||
|
||||
#[clippy::cognitive_complexity = "1"]
|
||||
fn main() {}
|
|
@ -1,2 +1,4 @@
|
|||
// run-rustfix
|
||||
|
||||
#[clippy::cyclomatic_complexity = "1"]
|
||||
fn main() {}
|
||||
|
|
|
@ -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`
|
||||
|
|
Loading…
Add table
Reference in a new issue