Skip to content

Commit ea16ab5

Browse files
committed
renamed_builtin_attr: make test rustfixable
1 parent d28dacb commit ea16ab5

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

tests/ui/renamed_builtin_attr.fixed

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
// run-rustfix
2+
3+
#[clippy::cognitive_complexity = "1"]
4+
fn main() {}

tests/ui/renamed_builtin_attr.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1+
// run-rustfix
2+
13
#[clippy::cyclomatic_complexity = "1"]
24
fn main() {}

tests/ui/renamed_builtin_attr.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error: Usage of deprecated attribute
2-
--> $DIR/renamed_builtin_attr.rs:1:11
2+
--> $DIR/renamed_builtin_attr.rs:3:11
33
|
44
LL | #[clippy::cyclomatic_complexity = "1"]
55
| ^^^^^^^^^^^^^^^^^^^^^ help: consider using: `cognitive_complexity`

0 commit comments

Comments
 (0)