mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-12 20:16:49 +00:00
renamed_builtin_attr: make test rustfixable
This commit is contained in:
parent
d28dacb33a
commit
ea16ab56d5
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…
Reference in New Issue
Block a user