about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--tests/ui/renamed_builtin_attr.fixed4
-rw-r--r--tests/ui/renamed_builtin_attr.rs2
-rw-r--r--tests/ui/renamed_builtin_attr.stderr2
3 files changed, 7 insertions, 1 deletions
diff --git a/tests/ui/renamed_builtin_attr.fixed b/tests/ui/renamed_builtin_attr.fixed
new file mode 100644
index 00000000000..cb91b841d2c
--- /dev/null
+++ b/tests/ui/renamed_builtin_attr.fixed
@@ -0,0 +1,4 @@
+// run-rustfix
+
+#[clippy::cognitive_complexity = "1"]
+fn main() {}
diff --git a/tests/ui/renamed_builtin_attr.rs b/tests/ui/renamed_builtin_attr.rs
index fdb425363e8..b3ce2758067 100644
--- a/tests/ui/renamed_builtin_attr.rs
+++ b/tests/ui/renamed_builtin_attr.rs
@@ -1,2 +1,4 @@
+// run-rustfix
+
 #[clippy::cyclomatic_complexity = "1"]
 fn main() {}
diff --git a/tests/ui/renamed_builtin_attr.stderr b/tests/ui/renamed_builtin_attr.stderr
index cf6cccd3688..a399ff52fb8 100644
--- a/tests/ui/renamed_builtin_attr.stderr
+++ b/tests/ui/renamed_builtin_attr.stderr
@@ -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`