Attributes cleanup in tests [01/20]
diff --git a/tests/ui-cargo/feature_name/fail/src/main.rs b/tests/ui-cargo/feature_name/fail/src/main.rs
index 74e40c0..25a48ea 100644
--- a/tests/ui-cargo/feature_name/fail/src/main.rs
+++ b/tests/ui-cargo/feature_name/fail/src/main.rs
@@ -1,5 +1,4 @@
-#![warn(clippy::redundant_feature_names)]
-#![warn(clippy::negative_feature_names)]
+#![warn(clippy::negative_feature_names, clippy::redundant_feature_names)]
 
 fn main() {
     // test code goes here
diff --git a/tests/ui-cargo/feature_name/pass/src/main.rs b/tests/ui-cargo/feature_name/pass/src/main.rs
index 74e40c0..25a48ea 100644
--- a/tests/ui-cargo/feature_name/pass/src/main.rs
+++ b/tests/ui-cargo/feature_name/pass/src/main.rs
@@ -1,5 +1,4 @@
-#![warn(clippy::redundant_feature_names)]
-#![warn(clippy::negative_feature_names)]
+#![warn(clippy::negative_feature_names, clippy::redundant_feature_names)]
 
 fn main() {
     // test code goes here
diff --git a/tests/ui-cargo/multiple_inherent_impl/config_fail/src/main.rs b/tests/ui-cargo/multiple_inherent_impl/config_fail/src/main.rs
index 7d5e783..c3bf642 100644
--- a/tests/ui-cargo/multiple_inherent_impl/config_fail/src/main.rs
+++ b/tests/ui-cargo/multiple_inherent_impl/config_fail/src/main.rs
@@ -1,3 +1,2 @@
-#![allow(dead_code)]
 #![deny(clippy::multiple_inherent_impl)]
 fn main() {}
diff --git a/tests/ui-toml/arbitrary_source_item_ordering/ordering_good.rs b/tests/ui-toml/arbitrary_source_item_ordering/ordering_good.rs
index 694ef45..cff001e 100644
--- a/tests/ui-toml/arbitrary_source_item_ordering/ordering_good.rs
+++ b/tests/ui-toml/arbitrary_source_item_ordering/ordering_good.rs
@@ -18,7 +18,6 @@
 //@[bad_conf_6] error-in-other-file:
 //@compile-flags: --test
 
-#![allow(dead_code)]
 #![warn(clippy::arbitrary_source_item_ordering)]
 
 /// This module gets linted before clippy gives up.
diff --git a/tests/ui-toml/arbitrary_source_item_ordering/ordering_good_var_1.rs b/tests/ui-toml/arbitrary_source_item_ordering/ordering_good_var_1.rs
index fb2d2e6..2b287e6 100644
--- a/tests/ui-toml/arbitrary_source_item_ordering/ordering_good_var_1.rs
+++ b/tests/ui-toml/arbitrary_source_item_ordering/ordering_good_var_1.rs
@@ -3,7 +3,6 @@
 //@[var_1] rustc-env:CLIPPY_CONF_DIR=tests/ui-toml/arbitrary_source_item_ordering/var_1
 //@check-pass
 
-#![allow(dead_code)]
 #![warn(clippy::arbitrary_source_item_ordering)]
 
 /// This module gets linted before clippy gives up.
diff --git a/tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.default.stderr b/tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.default.stderr
index 87e4b0c..55f8c0d 100644
--- a/tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.default.stderr
+++ b/tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.default.stderr
@@ -1,11 +1,11 @@
 error: incorrect ordering of items (module item groupings specify another order)
-  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:26:14
+  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:25:14
    |
 LL | use std::rc::Weak;
    |              ^^^^
    |
 note: should be placed before `SNAKE_CASE`
-  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:23:7
+  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:22:7
    |
 LL | const SNAKE_CASE: &str = "zzzzzzzz";
    |       ^^^^^^^^^^
@@ -13,169 +13,169 @@
    = help: to override `-D warnings` add `#[allow(clippy::arbitrary_source_item_ordering)]`
 
 error: incorrect ordering of items (module item groupings specify another order)
-  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:165:7
+  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:164:7
    |
 LL | const ZIS_SHOULD_BE_REALLY_EARLY: () = ();
    |       ^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
 note: should be placed before `TraitUnorderedItemKinds`
-  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:152:7
+  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:151:7
    |
 LL | trait TraitUnorderedItemKinds {
    |       ^^^^^^^^^^^^^^^^^^^^^^^
 
 error: incorrect ordering of items (module item groupings specify another order)
-  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:204:5
+  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:203:5
    |
 LL | mod this_is_in_the_wrong_position {
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
 note: should be placed before `main`
-  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:199:4
+  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:198:4
    |
 LL | fn main() {
    |    ^^^^
 
 error: incorrect ordering of items (module item groupings specify another order)
-  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:214:7
+  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:213:7
    |
 LL | const ZIS_SHOULD_BE_EVEN_EARLIER: () = ();
    |       ^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
 note: should be placed before `ZisShouldBeBeforeZeMainFn`
-  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:212:8
+  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:211:8
    |
 LL | struct ZisShouldBeBeforeZeMainFn;
    |        ^^^^^^^^^^^^^^^^^^^^^^^^^
 
 error: incorrect ordering of items (must be alphabetically ordered)
-  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:44:5
+  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:43:5
    |
 LL |     B,
    |     ^
    |
 note: should be placed before `C`
-  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:43:5
+  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:42:5
    |
 LL |     C,
    |     ^
 
 error: incorrect ordering of items (must be alphabetically ordered)
-  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:57:5
+  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:56:5
    |
 LL |     g: u8,
    |     ^
    |
 note: should be placed before `r`
-  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:56:5
+  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:55:5
    |
 LL |     r: u8,
    |     ^
 
 error: incorrect ordering of items (must be alphabetically ordered)
-  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:59:5
+  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:58:5
    |
 LL |     b: u8,
    |     ^
    |
 note: should be placed before `g`
-  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:57:5
+  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:56:5
    |
 LL |     g: u8,
    |     ^
 
 error: incorrect ordering of items (must be alphabetically ordered)
-  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:112:5
-   |
-LL |     b: bool,
-   |     ^
-   |
-note: should be placed before `c`
   --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:111:5
    |
+LL |     b: bool,
+   |     ^
+   |
+note: should be placed before `c`
+  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:110:5
+   |
 LL |     c: bool,
    |     ^
 
 error: incorrect ordering of items (must be alphabetically ordered)
-  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:121:5
+  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:120:5
    |
 LL |     b: bool,
    |     ^
    |
 note: should be placed before `c`
-  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:120:5
+  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:119:5
    |
 LL |     c: bool,
    |     ^
 
 error: incorrect ordering of items (must be alphabetically ordered)
-  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:141:11
+  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:140:11
    |
 LL |     const B: bool;
    |           ^
    |
 note: should be placed before `C`
-  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:140:11
+  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:139:11
    |
 LL |     const C: bool;
    |           ^
 
 error: incorrect ordering of items (must be alphabetically ordered)
-  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:148:8
+  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:147:8
    |
 LL |     fn b();
    |        ^
    |
 note: should be placed before `c`
-  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:147:8
+  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:146:8
    |
 LL |     fn c();
    |        ^
 
 error: incorrect ordering of trait items (defined order: [Const, Type, Fn])
-  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:155:5
+  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:154:5
    |
 LL |     const A: bool;
    |     ^^^^^^^^^^^^^
    |
 note: should be placed before `SomeType`
-  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:153:5
+  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:152:5
    |
 LL |     type SomeType;
    |     ^^^^^^^^^^^^^
 
 error: incorrect ordering of items (must be alphabetically ordered)
-  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:171:11
+  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:170:11
    |
 LL |     const B: bool = false;
    |           ^
    |
 note: should be placed before `C`
-  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:170:11
+  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:169:11
    |
 LL |     const C: bool = false;
    |           ^
 
 error: incorrect ordering of items (must be alphabetically ordered)
-  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:178:8
+  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:177:8
    |
 LL |     fn b() {}
    |        ^
    |
 note: should be placed before `c`
-  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:177:8
+  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:176:8
    |
 LL |     fn c() {}
    |        ^
 
 error: incorrect ordering of impl items (defined order: [Const, Type, Fn])
-  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:189:5
+  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:188:5
    |
 LL |     const A: bool = false;
    |     ^^^^^^^^^^^^^
    |
 note: should be placed before `SomeType`
-  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:187:5
+  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:186:5
    |
 LL |     type SomeType = ();
    |     ^^^^^^^^^^^^^
diff --git a/tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.default_exp.stderr b/tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.default_exp.stderr
index 87e4b0c..55f8c0d 100644
--- a/tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.default_exp.stderr
+++ b/tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.default_exp.stderr
@@ -1,11 +1,11 @@
 error: incorrect ordering of items (module item groupings specify another order)
-  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:26:14
+  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:25:14
    |
 LL | use std::rc::Weak;
    |              ^^^^
    |
 note: should be placed before `SNAKE_CASE`
-  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:23:7
+  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:22:7
    |
 LL | const SNAKE_CASE: &str = "zzzzzzzz";
    |       ^^^^^^^^^^
@@ -13,169 +13,169 @@
    = help: to override `-D warnings` add `#[allow(clippy::arbitrary_source_item_ordering)]`
 
 error: incorrect ordering of items (module item groupings specify another order)
-  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:165:7
+  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:164:7
    |
 LL | const ZIS_SHOULD_BE_REALLY_EARLY: () = ();
    |       ^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
 note: should be placed before `TraitUnorderedItemKinds`
-  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:152:7
+  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:151:7
    |
 LL | trait TraitUnorderedItemKinds {
    |       ^^^^^^^^^^^^^^^^^^^^^^^
 
 error: incorrect ordering of items (module item groupings specify another order)
-  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:204:5
+  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:203:5
    |
 LL | mod this_is_in_the_wrong_position {
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
 note: should be placed before `main`
-  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:199:4
+  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:198:4
    |
 LL | fn main() {
    |    ^^^^
 
 error: incorrect ordering of items (module item groupings specify another order)
-  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:214:7
+  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:213:7
    |
 LL | const ZIS_SHOULD_BE_EVEN_EARLIER: () = ();
    |       ^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
 note: should be placed before `ZisShouldBeBeforeZeMainFn`
-  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:212:8
+  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:211:8
    |
 LL | struct ZisShouldBeBeforeZeMainFn;
    |        ^^^^^^^^^^^^^^^^^^^^^^^^^
 
 error: incorrect ordering of items (must be alphabetically ordered)
-  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:44:5
+  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:43:5
    |
 LL |     B,
    |     ^
    |
 note: should be placed before `C`
-  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:43:5
+  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:42:5
    |
 LL |     C,
    |     ^
 
 error: incorrect ordering of items (must be alphabetically ordered)
-  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:57:5
+  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:56:5
    |
 LL |     g: u8,
    |     ^
    |
 note: should be placed before `r`
-  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:56:5
+  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:55:5
    |
 LL |     r: u8,
    |     ^
 
 error: incorrect ordering of items (must be alphabetically ordered)
-  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:59:5
+  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:58:5
    |
 LL |     b: u8,
    |     ^
    |
 note: should be placed before `g`
-  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:57:5
+  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:56:5
    |
 LL |     g: u8,
    |     ^
 
 error: incorrect ordering of items (must be alphabetically ordered)
-  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:112:5
-   |
-LL |     b: bool,
-   |     ^
-   |
-note: should be placed before `c`
   --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:111:5
    |
+LL |     b: bool,
+   |     ^
+   |
+note: should be placed before `c`
+  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:110:5
+   |
 LL |     c: bool,
    |     ^
 
 error: incorrect ordering of items (must be alphabetically ordered)
-  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:121:5
+  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:120:5
    |
 LL |     b: bool,
    |     ^
    |
 note: should be placed before `c`
-  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:120:5
+  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:119:5
    |
 LL |     c: bool,
    |     ^
 
 error: incorrect ordering of items (must be alphabetically ordered)
-  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:141:11
+  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:140:11
    |
 LL |     const B: bool;
    |           ^
    |
 note: should be placed before `C`
-  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:140:11
+  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:139:11
    |
 LL |     const C: bool;
    |           ^
 
 error: incorrect ordering of items (must be alphabetically ordered)
-  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:148:8
+  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:147:8
    |
 LL |     fn b();
    |        ^
    |
 note: should be placed before `c`
-  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:147:8
+  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:146:8
    |
 LL |     fn c();
    |        ^
 
 error: incorrect ordering of trait items (defined order: [Const, Type, Fn])
-  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:155:5
+  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:154:5
    |
 LL |     const A: bool;
    |     ^^^^^^^^^^^^^
    |
 note: should be placed before `SomeType`
-  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:153:5
+  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:152:5
    |
 LL |     type SomeType;
    |     ^^^^^^^^^^^^^
 
 error: incorrect ordering of items (must be alphabetically ordered)
-  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:171:11
+  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:170:11
    |
 LL |     const B: bool = false;
    |           ^
    |
 note: should be placed before `C`
-  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:170:11
+  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:169:11
    |
 LL |     const C: bool = false;
    |           ^
 
 error: incorrect ordering of items (must be alphabetically ordered)
-  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:178:8
+  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:177:8
    |
 LL |     fn b() {}
    |        ^
    |
 note: should be placed before `c`
-  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:177:8
+  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:176:8
    |
 LL |     fn c() {}
    |        ^
 
 error: incorrect ordering of impl items (defined order: [Const, Type, Fn])
-  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:189:5
+  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:188:5
    |
 LL |     const A: bool = false;
    |     ^^^^^^^^^^^^^
    |
 note: should be placed before `SomeType`
-  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:187:5
+  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:186:5
    |
 LL |     type SomeType = ();
    |     ^^^^^^^^^^^^^
diff --git a/tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.ord_within.stderr b/tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.ord_within.stderr
index 40505e2..e668f55 100644
--- a/tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.ord_within.stderr
+++ b/tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.ord_within.stderr
@@ -1,11 +1,11 @@
 error: incorrect ordering of items (must be alphabetically ordered)
-  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:23:7
+  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:22:7
    |
 LL | const SNAKE_CASE: &str = "zzzzzzzz";
    |       ^^^^^^^^^^
    |
 note: should be placed before `ZNAKE_CASE`
-  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:22:7
+  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:21:7
    |
 LL | const ZNAKE_CASE: &str = "123";
    |       ^^^^^^^^^^
@@ -13,31 +13,31 @@
    = help: to override `-D warnings` add `#[allow(clippy::arbitrary_source_item_ordering)]`
 
 error: incorrect ordering of items (module item groupings specify another order)
-  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:26:14
+  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:25:14
    |
 LL | use std::rc::Weak;
    |              ^^^^
    |
 note: should be placed before `SNAKE_CASE`
-  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:23:7
+  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:22:7
    |
 LL | const SNAKE_CASE: &str = "zzzzzzzz";
    |       ^^^^^^^^^^
 
 error: incorrect ordering of items (must be alphabetically ordered)
-  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:64:8
+  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:63:8
    |
 LL | struct EnumWithExternButAtWrongPosition {
    |        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
 note: should be placed before `EnumWithoutExtern`
-  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:55:8
+  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:54:8
    |
 LL | struct EnumWithoutExtern {
    |        ^^^^^^^^^^^^^^^^^
 
 error: incorrect ordering of items (must be alphabetically ordered)
-  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:87:1
+  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:86:1
    |
 LL | / impl CloneSelf for StructOrdered {
 LL | |
@@ -48,7 +48,7 @@
    | |_^
    |
 note: should be placed before the following item
-  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:77:1
+  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:76:1
    |
 LL | / impl Default for StructOrdered {
 LL | |     fn default() -> Self {
@@ -59,25 +59,25 @@
    | |_^
 
 error: incorrect ordering of items (module item groupings specify another order)
-  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:165:7
+  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:164:7
    |
 LL | const ZIS_SHOULD_BE_REALLY_EARLY: () = ();
    |       ^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
 note: should be placed before `TraitUnorderedItemKinds`
-  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:152:7
+  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:151:7
    |
 LL | trait TraitUnorderedItemKinds {
    |       ^^^^^^^^^^^^^^^^^^^^^^^
 
 error: incorrect ordering of items (must be alphabetically ordered)
-  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:183:1
+  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:182:1
    |
 LL | impl BasicEmptyTrait for StructOrdered {}
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
 note: should be placed before the following item
-  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:168:1
+  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:167:1
    |
 LL | / impl TraitUnordered for StructUnordered {
 LL | |     const A: bool = false;
@@ -88,181 +88,181 @@
    | |_^
 
 error: incorrect ordering of items (module item groupings specify another order)
-  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:204:5
+  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:203:5
    |
 LL | mod this_is_in_the_wrong_position {
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
 note: should be placed before `main`
-  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:199:4
+  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:198:4
    |
 LL | fn main() {
    |    ^^^^
 
 error: incorrect ordering of items (module item groupings specify another order)
-  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:214:7
+  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:213:7
    |
 LL | const ZIS_SHOULD_BE_EVEN_EARLIER: () = ();
    |       ^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
 note: should be placed before `ZisShouldBeBeforeZeMainFn`
-  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:212:8
+  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:211:8
    |
 LL | struct ZisShouldBeBeforeZeMainFn;
    |        ^^^^^^^^^^^^^^^^^^^^^^^^^
 
 error: incorrect ordering of items (must be alphabetically ordered)
-  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:14:11
+  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:13:11
    |
 LL |     const AFTER: i8 = 0;
    |           ^^^^^
    |
 note: should be placed before `BEFORE`
-  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:12:11
+  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:11:11
    |
 LL |     const BEFORE: i8 = 0;
    |           ^^^^^^
 
 error: incorrect ordering of items (must be alphabetically ordered)
-  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:44:5
+  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:43:5
    |
 LL |     B,
    |     ^
    |
 note: should be placed before `C`
-  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:43:5
+  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:42:5
    |
 LL |     C,
    |     ^
 
 error: incorrect ordering of items (must be alphabetically ordered)
-  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:57:5
+  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:56:5
    |
 LL |     g: u8,
    |     ^
    |
 note: should be placed before `r`
-  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:56:5
+  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:55:5
    |
 LL |     r: u8,
    |     ^
 
 error: incorrect ordering of items (must be alphabetically ordered)
-  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:59:5
+  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:58:5
    |
 LL |     b: u8,
    |     ^
    |
 note: should be placed before `g`
-  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:57:5
+  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:56:5
    |
 LL |     g: u8,
    |     ^
 
 error: incorrect ordering of items (must be alphabetically ordered)
-  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:112:5
-   |
-LL |     b: bool,
-   |     ^
-   |
-note: should be placed before `c`
   --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:111:5
    |
+LL |     b: bool,
+   |     ^
+   |
+note: should be placed before `c`
+  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:110:5
+   |
 LL |     c: bool,
    |     ^
 
 error: incorrect ordering of items (must be alphabetically ordered)
-  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:121:5
+  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:120:5
    |
 LL |     b: bool,
    |     ^
    |
 note: should be placed before `c`
-  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:120:5
+  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:119:5
    |
 LL |     c: bool,
    |     ^
 
 error: incorrect ordering of items (must be alphabetically ordered)
-  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:141:11
+  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:140:11
    |
 LL |     const B: bool;
    |           ^
    |
 note: should be placed before `C`
-  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:140:11
+  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:139:11
    |
 LL |     const C: bool;
    |           ^
 
 error: incorrect ordering of items (must be alphabetically ordered)
-  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:148:8
+  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:147:8
    |
 LL |     fn b();
    |        ^
    |
 note: should be placed before `c`
-  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:147:8
+  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:146:8
    |
 LL |     fn c();
    |        ^
 
 error: incorrect ordering of trait items (defined order: [Const, Type, Fn])
-  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:155:5
+  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:154:5
    |
 LL |     const A: bool;
    |     ^^^^^^^^^^^^^
    |
 note: should be placed before `SomeType`
-  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:153:5
+  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:152:5
    |
 LL |     type SomeType;
    |     ^^^^^^^^^^^^^
 
 error: incorrect ordering of items (must be alphabetically ordered)
-  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:171:11
+  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:170:11
    |
 LL |     const B: bool = false;
    |           ^
    |
 note: should be placed before `C`
-  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:170:11
+  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:169:11
    |
 LL |     const C: bool = false;
    |           ^
 
 error: incorrect ordering of items (must be alphabetically ordered)
-  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:178:8
+  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:177:8
    |
 LL |     fn b() {}
    |        ^
    |
 note: should be placed before `c`
-  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:177:8
+  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:176:8
    |
 LL |     fn c() {}
    |        ^
 
 error: incorrect ordering of impl items (defined order: [Const, Type, Fn])
-  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:189:5
+  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:188:5
    |
 LL |     const A: bool = false;
    |     ^^^^^^^^^^^^^
    |
 note: should be placed before `SomeType`
-  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:187:5
+  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:186:5
    |
 LL |     type SomeType = ();
    |     ^^^^^^^^^^^^^
 
 error: incorrect ordering of items (must be alphabetically ordered)
-  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:207:11
+  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:206:11
    |
 LL |     const A: i8 = 1;
    |           ^
    |
 note: should be placed before `C`
-  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:206:11
+  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:205:11
    |
 LL |     const C: i8 = 0;
    |           ^
diff --git a/tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs b/tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs
index 1cfed97..4dc8ad8 100644
--- a/tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs
+++ b/tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs
@@ -4,7 +4,6 @@
 //@[default_exp] rustc-env:CLIPPY_CONF_DIR=tests/ui-toml/arbitrary_source_item_ordering/default_exp
 //@[ord_within] rustc-env:CLIPPY_CONF_DIR=tests/ui-toml/arbitrary_source_item_ordering/ord_within
 
-#![allow(dead_code)]
 #![warn(clippy::arbitrary_source_item_ordering)]
 
 /// This module gets linted before clippy gives up.
diff --git a/tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed_var_1.rs b/tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed_var_1.rs
index 96b2fb1..1de8f46 100644
--- a/tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed_var_1.rs
+++ b/tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed_var_1.rs
@@ -2,7 +2,6 @@
 //@revisions: var_1
 //@[var_1] rustc-env:CLIPPY_CONF_DIR=tests/ui-toml/arbitrary_source_item_ordering/var_1
 
-#![allow(dead_code)]
 #![warn(clippy::arbitrary_source_item_ordering)]
 
 /// This module gets linted before clippy gives up.
diff --git a/tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed_var_1.var_1.stderr b/tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed_var_1.var_1.stderr
index d8db224..09b2730 100644
--- a/tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed_var_1.var_1.stderr
+++ b/tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed_var_1.var_1.stderr
@@ -1,11 +1,11 @@
 error: incorrect ordering of items (must be alphabetically ordered)
-  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed_var_1.rs:105:8
+  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed_var_1.rs:104:8
    |
 LL |     fn b() {}
    |        ^
    |
 note: should be placed before `c`
-  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed_var_1.rs:104:8
+  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed_var_1.rs:103:8
    |
 LL |     fn c() {}
    |        ^
@@ -13,85 +13,85 @@
    = help: to override `-D warnings` add `#[allow(clippy::arbitrary_source_item_ordering)]`
 
 error: incorrect ordering of items (must be alphabetically ordered)
-  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed_var_1.rs:112:11
+  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed_var_1.rs:111:11
    |
 LL |     const B: bool = false;
    |           ^
    |
 note: should be placed before `C`
-  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed_var_1.rs:111:11
+  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed_var_1.rs:110:11
    |
 LL |     const C: bool = false;
    |           ^
 
 error: incorrect ordering of impl items (defined order: [Fn, Type, Const])
-  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed_var_1.rs:119:5
+  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed_var_1.rs:118:5
    |
 LL |     type SomeType = ();
    |     ^^^^^^^^^^^^^
    |
 note: should be placed before `A`
-  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed_var_1.rs:117:5
+  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed_var_1.rs:116:5
    |
 LL |     const A: bool = false;
    |     ^^^^^^^^^^^^^
 
 error: incorrect ordering of impl items (defined order: [Fn, Type, Const])
-  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed_var_1.rs:122:5
+  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed_var_1.rs:121:5
    |
 LL |     fn a() {}
    |     ^^^^^^
    |
 note: should be placed before `SomeType`
-  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed_var_1.rs:119:5
+  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed_var_1.rs:118:5
    |
 LL |     type SomeType = ();
    |     ^^^^^^^^^^^^^
 
 error: incorrect ordering of items (must be alphabetically ordered)
-  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed_var_1.rs:149:8
+  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed_var_1.rs:148:8
    |
 LL |     fn b();
    |        ^
    |
 note: should be placed before `c`
-  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed_var_1.rs:148:8
+  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed_var_1.rs:147:8
    |
 LL |     fn c();
    |        ^
 
 error: incorrect ordering of items (must be alphabetically ordered)
-  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed_var_1.rs:156:11
+  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed_var_1.rs:155:11
    |
 LL |     const B: bool;
    |           ^
    |
 note: should be placed before `C`
-  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed_var_1.rs:155:11
+  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed_var_1.rs:154:11
    |
 LL |     const C: bool;
    |           ^
 
 error: incorrect ordering of trait items (defined order: [Fn, Type, Const])
-  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed_var_1.rs:163:5
+  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed_var_1.rs:162:5
    |
 LL |     type SomeType;
    |     ^^^^^^^^^^^^^
    |
 note: should be placed before `A`
-  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed_var_1.rs:161:5
+  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed_var_1.rs:160:5
    |
 LL |     const A: bool;
    |     ^^^^^^^^^^^^^
 
 error: incorrect ordering of trait items (defined order: [Fn, Type, Const])
-  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed_var_1.rs:166:5
+  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed_var_1.rs:165:5
    |
 LL |     fn a();
    |     ^^^^^^^
    |
 note: should be placed before `SomeType`
-  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed_var_1.rs:163:5
+  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed_var_1.rs:162:5
    |
 LL |     type SomeType;
    |     ^^^^^^^^^^^^^
diff --git a/tests/ui-toml/arbitrary_source_item_ordering/ordering_only_enum.only_enum.stderr b/tests/ui-toml/arbitrary_source_item_ordering/ordering_only_enum.only_enum.stderr
index 57069fd..3b0d066 100644
--- a/tests/ui-toml/arbitrary_source_item_ordering/ordering_only_enum.only_enum.stderr
+++ b/tests/ui-toml/arbitrary_source_item_ordering/ordering_only_enum.only_enum.stderr
@@ -1,11 +1,11 @@
 error: incorrect ordering of items (must be alphabetically ordered)
-  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_only_enum.rs:22:5
+  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_only_enum.rs:21:5
    |
 LL |     A,
    |     ^
    |
 note: should be placed before `B`
-  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_only_enum.rs:21:5
+  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_only_enum.rs:20:5
    |
 LL |     B,
    |     ^
diff --git a/tests/ui-toml/arbitrary_source_item_ordering/ordering_only_enum.rs b/tests/ui-toml/arbitrary_source_item_ordering/ordering_only_enum.rs
index 4e8ed5e..f593e1d 100644
--- a/tests/ui-toml/arbitrary_source_item_ordering/ordering_only_enum.rs
+++ b/tests/ui-toml/arbitrary_source_item_ordering/ordering_only_enum.rs
@@ -2,7 +2,6 @@
 //@revisions: only_enum
 //@[only_enum] rustc-env:CLIPPY_CONF_DIR=tests/ui-toml/arbitrary_source_item_ordering/only_enum
 
-#![allow(dead_code)]
 #![warn(clippy::arbitrary_source_item_ordering)]
 
 fn main() {}
diff --git a/tests/ui-toml/arbitrary_source_item_ordering/ordering_only_impl.only_impl.stderr b/tests/ui-toml/arbitrary_source_item_ordering/ordering_only_impl.only_impl.stderr
index 7f6bddf..700ad90 100644
--- a/tests/ui-toml/arbitrary_source_item_ordering/ordering_only_impl.only_impl.stderr
+++ b/tests/ui-toml/arbitrary_source_item_ordering/ordering_only_impl.only_impl.stderr
@@ -1,11 +1,11 @@
 error: incorrect ordering of items (must be alphabetically ordered)
-  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_only_impl.rs:43:8
+  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_only_impl.rs:42:8
    |
 LL |     fn a() {}
    |        ^
    |
 note: should be placed before `b`
-  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_only_impl.rs:42:8
+  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_only_impl.rs:41:8
    |
 LL |     fn b() {}
    |        ^
@@ -13,25 +13,25 @@
    = help: to override `-D warnings` add `#[allow(clippy::arbitrary_source_item_ordering)]`
 
 error: incorrect ordering of impl items (defined order: [Const, Type, Fn])
-  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_only_impl.rs:46:5
+  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_only_impl.rs:45:5
    |
 LL |     type SomeType = i8;
    |     ^^^^^^^^^^^^^
    |
 note: should be placed before `a`
-  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_only_impl.rs:43:5
+  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_only_impl.rs:42:5
    |
 LL |     fn a() {}
    |     ^^^^^^
 
 error: incorrect ordering of impl items (defined order: [Const, Type, Fn])
-  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_only_impl.rs:49:5
+  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_only_impl.rs:48:5
    |
 LL |     const A: bool = true;
    |     ^^^^^^^^^^^^^
    |
 note: should be placed before `SomeType`
-  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_only_impl.rs:46:5
+  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_only_impl.rs:45:5
    |
 LL |     type SomeType = i8;
    |     ^^^^^^^^^^^^^
diff --git a/tests/ui-toml/arbitrary_source_item_ordering/ordering_only_impl.rs b/tests/ui-toml/arbitrary_source_item_ordering/ordering_only_impl.rs
index 56e2e18..51ed8ca 100644
--- a/tests/ui-toml/arbitrary_source_item_ordering/ordering_only_impl.rs
+++ b/tests/ui-toml/arbitrary_source_item_ordering/ordering_only_impl.rs
@@ -2,7 +2,6 @@
 //@revisions: only_impl
 //@[only_impl] rustc-env:CLIPPY_CONF_DIR=tests/ui-toml/arbitrary_source_item_ordering/only_impl
 
-#![allow(dead_code)]
 #![warn(clippy::arbitrary_source_item_ordering)]
 
 fn main() {}
diff --git a/tests/ui-toml/arbitrary_source_item_ordering/ordering_only_trait.only_trait.stderr b/tests/ui-toml/arbitrary_source_item_ordering/ordering_only_trait.only_trait.stderr
index a7cff23..a511b0e 100644
--- a/tests/ui-toml/arbitrary_source_item_ordering/ordering_only_trait.only_trait.stderr
+++ b/tests/ui-toml/arbitrary_source_item_ordering/ordering_only_trait.only_trait.stderr
@@ -1,11 +1,11 @@
 error: incorrect ordering of items (must be alphabetically ordered)
-  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_only_trait.rs:32:11
+  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_only_trait.rs:31:11
    |
 LL |     const A: bool;
    |           ^
    |
 note: should be placed before `B`
-  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_only_trait.rs:31:11
+  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_only_trait.rs:30:11
    |
 LL |     const B: bool;
    |           ^
@@ -13,25 +13,25 @@
    = help: to override `-D warnings` add `#[allow(clippy::arbitrary_source_item_ordering)]`
 
 error: incorrect ordering of items (must be alphabetically ordered)
-  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_only_trait.rs:38:8
+  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_only_trait.rs:37:8
    |
 LL |     fn a();
    |        ^
    |
 note: should be placed before `b`
-  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_only_trait.rs:37:8
+  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_only_trait.rs:36:8
    |
 LL |     fn b();
    |        ^
 
 error: incorrect ordering of trait items (defined order: [Const, Type, Fn])
-  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_only_trait.rs:45:5
+  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_only_trait.rs:44:5
    |
 LL |     const A: bool;
    |     ^^^^^^^^^^^^^
    |
 note: should be placed before `SomeType`
-  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_only_trait.rs:43:5
+  --> tests/ui-toml/arbitrary_source_item_ordering/ordering_only_trait.rs:42:5
    |
 LL |     type SomeType;
    |     ^^^^^^^^^^^^^
diff --git a/tests/ui-toml/arbitrary_source_item_ordering/ordering_only_trait.rs b/tests/ui-toml/arbitrary_source_item_ordering/ordering_only_trait.rs
index d885a20..6f7eaef 100644
--- a/tests/ui-toml/arbitrary_source_item_ordering/ordering_only_trait.rs
+++ b/tests/ui-toml/arbitrary_source_item_ordering/ordering_only_trait.rs
@@ -2,7 +2,6 @@
 //@revisions: only_trait
 //@[only_trait] rustc-env:CLIPPY_CONF_DIR=tests/ui-toml/arbitrary_source_item_ordering/only_trait
 
-#![allow(dead_code)]
 #![warn(clippy::arbitrary_source_item_ordering)]
 
 fn main() {}
diff --git a/tests/ui-toml/arbitrary_source_item_ordering/selective_ordering.default.stderr b/tests/ui-toml/arbitrary_source_item_ordering/selective_ordering.default.stderr
index fcd7864..7fc216b 100644
--- a/tests/ui-toml/arbitrary_source_item_ordering/selective_ordering.default.stderr
+++ b/tests/ui-toml/arbitrary_source_item_ordering/selective_ordering.default.stderr
@@ -1,16 +1,16 @@
 error: incorrect ordering of items (must be alphabetically ordered)
-  --> tests/ui-toml/arbitrary_source_item_ordering/selective_ordering.rs:36:5
+  --> tests/ui-toml/arbitrary_source_item_ordering/selective_ordering.rs:35:5
    |
 LL |     a: bool,
    |     ^
    |
 note: should be placed before `b`
-  --> tests/ui-toml/arbitrary_source_item_ordering/selective_ordering.rs:35:5
+  --> tests/ui-toml/arbitrary_source_item_ordering/selective_ordering.rs:34:5
    |
 LL |     b: bool,
    |     ^
 note: the lint level is defined here
-  --> tests/ui-toml/arbitrary_source_item_ordering/selective_ordering.rs:33:8
+  --> tests/ui-toml/arbitrary_source_item_ordering/selective_ordering.rs:32:8
    |
 LL | #[deny(clippy::arbitrary_source_item_ordering)]
    |        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
diff --git a/tests/ui-toml/arbitrary_source_item_ordering/selective_ordering.ord_in_2.stderr b/tests/ui-toml/arbitrary_source_item_ordering/selective_ordering.ord_in_2.stderr
index 81c35ff..1f75f50 100644
--- a/tests/ui-toml/arbitrary_source_item_ordering/selective_ordering.ord_in_2.stderr
+++ b/tests/ui-toml/arbitrary_source_item_ordering/selective_ordering.ord_in_2.stderr
@@ -1,33 +1,33 @@
 error: incorrect ordering of items (must be alphabetically ordered)
-  --> tests/ui-toml/arbitrary_source_item_ordering/selective_ordering.rs:25:8
+  --> tests/ui-toml/arbitrary_source_item_ordering/selective_ordering.rs:24:8
    |
 LL | struct OrderedChecked {
    |        ^^^^^^^^^^^^^^
    |
 note: should be placed before `Unordered`
-  --> tests/ui-toml/arbitrary_source_item_ordering/selective_ordering.rs:19:8
+  --> tests/ui-toml/arbitrary_source_item_ordering/selective_ordering.rs:18:8
    |
 LL | struct Unordered {
    |        ^^^^^^^^^
 note: the lint level is defined here
-  --> tests/ui-toml/arbitrary_source_item_ordering/selective_ordering.rs:10:9
+  --> tests/ui-toml/arbitrary_source_item_ordering/selective_ordering.rs:9:9
    |
 LL | #![deny(clippy::arbitrary_source_item_ordering)]
    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 
 error: incorrect ordering of items (must be alphabetically ordered)
-  --> tests/ui-toml/arbitrary_source_item_ordering/selective_ordering.rs:36:5
+  --> tests/ui-toml/arbitrary_source_item_ordering/selective_ordering.rs:35:5
    |
 LL |     a: bool,
    |     ^
    |
 note: should be placed before `b`
-  --> tests/ui-toml/arbitrary_source_item_ordering/selective_ordering.rs:35:5
+  --> tests/ui-toml/arbitrary_source_item_ordering/selective_ordering.rs:34:5
    |
 LL |     b: bool,
    |     ^
 note: the lint level is defined here
-  --> tests/ui-toml/arbitrary_source_item_ordering/selective_ordering.rs:33:8
+  --> tests/ui-toml/arbitrary_source_item_ordering/selective_ordering.rs:32:8
    |
 LL | #[deny(clippy::arbitrary_source_item_ordering)]
    |        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
diff --git a/tests/ui-toml/arbitrary_source_item_ordering/selective_ordering.ord_in_3.stderr b/tests/ui-toml/arbitrary_source_item_ordering/selective_ordering.ord_in_3.stderr
index 09ede57..8027f55 100644
--- a/tests/ui-toml/arbitrary_source_item_ordering/selective_ordering.ord_in_3.stderr
+++ b/tests/ui-toml/arbitrary_source_item_ordering/selective_ordering.ord_in_3.stderr
@@ -1,16 +1,16 @@
 error: incorrect ordering of items (must be alphabetically ordered)
-  --> tests/ui-toml/arbitrary_source_item_ordering/selective_ordering.rs:25:8
+  --> tests/ui-toml/arbitrary_source_item_ordering/selective_ordering.rs:24:8
    |
 LL | struct OrderedChecked {
    |        ^^^^^^^^^^^^^^
    |
 note: should be placed before `Unordered`
-  --> tests/ui-toml/arbitrary_source_item_ordering/selective_ordering.rs:19:8
+  --> tests/ui-toml/arbitrary_source_item_ordering/selective_ordering.rs:18:8
    |
 LL | struct Unordered {
    |        ^^^^^^^^^
 note: the lint level is defined here
-  --> tests/ui-toml/arbitrary_source_item_ordering/selective_ordering.rs:10:9
+  --> tests/ui-toml/arbitrary_source_item_ordering/selective_ordering.rs:9:9
    |
 LL | #![deny(clippy::arbitrary_source_item_ordering)]
    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
diff --git a/tests/ui-toml/arbitrary_source_item_ordering/selective_ordering.ord_within.stderr b/tests/ui-toml/arbitrary_source_item_ordering/selective_ordering.ord_within.stderr
index 7c515f0..f9b56b4 100644
--- a/tests/ui-toml/arbitrary_source_item_ordering/selective_ordering.ord_within.stderr
+++ b/tests/ui-toml/arbitrary_source_item_ordering/selective_ordering.ord_within.stderr
@@ -1,57 +1,57 @@
 error: incorrect ordering of items (must be alphabetically ordered)
-  --> tests/ui-toml/arbitrary_source_item_ordering/selective_ordering.rs:25:8
+  --> tests/ui-toml/arbitrary_source_item_ordering/selective_ordering.rs:24:8
    |
 LL | struct OrderedChecked {
    |        ^^^^^^^^^^^^^^
    |
 note: should be placed before `Unordered`
-  --> tests/ui-toml/arbitrary_source_item_ordering/selective_ordering.rs:19:8
+  --> tests/ui-toml/arbitrary_source_item_ordering/selective_ordering.rs:18:8
    |
 LL | struct Unordered {
    |        ^^^^^^^^^
 note: the lint level is defined here
-  --> tests/ui-toml/arbitrary_source_item_ordering/selective_ordering.rs:10:9
+  --> tests/ui-toml/arbitrary_source_item_ordering/selective_ordering.rs:9:9
    |
 LL | #![deny(clippy::arbitrary_source_item_ordering)]
    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 
 error: incorrect ordering of items (must be alphabetically ordered)
-  --> tests/ui-toml/arbitrary_source_item_ordering/selective_ordering.rs:46:4
+  --> tests/ui-toml/arbitrary_source_item_ordering/selective_ordering.rs:45:4
    |
 LL | fn before_main() {}
    |    ^^^^^^^^^^^
    |
 note: should be placed before `main`
-  --> tests/ui-toml/arbitrary_source_item_ordering/selective_ordering.rs:42:4
+  --> tests/ui-toml/arbitrary_source_item_ordering/selective_ordering.rs:41:4
    |
 LL | fn main() {
    |    ^^^^
 
 error: incorrect ordering of items (must be alphabetically ordered)
-  --> tests/ui-toml/arbitrary_source_item_ordering/selective_ordering.rs:36:5
+  --> tests/ui-toml/arbitrary_source_item_ordering/selective_ordering.rs:35:5
    |
 LL |     a: bool,
    |     ^
    |
 note: should be placed before `b`
-  --> tests/ui-toml/arbitrary_source_item_ordering/selective_ordering.rs:35:5
+  --> tests/ui-toml/arbitrary_source_item_ordering/selective_ordering.rs:34:5
    |
 LL |     b: bool,
    |     ^
 note: the lint level is defined here
-  --> tests/ui-toml/arbitrary_source_item_ordering/selective_ordering.rs:33:8
+  --> tests/ui-toml/arbitrary_source_item_ordering/selective_ordering.rs:32:8
    |
 LL | #[deny(clippy::arbitrary_source_item_ordering)]
    |        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 
 error: incorrect ordering of items (must be alphabetically ordered)
-  --> tests/ui-toml/arbitrary_source_item_ordering/selective_ordering.rs:52:11
+  --> tests/ui-toml/arbitrary_source_item_ordering/selective_ordering.rs:51:11
    |
 LL |     const A: i8 = 0;
    |           ^
    |
 note: should be placed before `B`
-  --> tests/ui-toml/arbitrary_source_item_ordering/selective_ordering.rs:51:11
+  --> tests/ui-toml/arbitrary_source_item_ordering/selective_ordering.rs:50:11
    |
 LL |     const B: i8 = 1;
    |           ^
diff --git a/tests/ui-toml/arbitrary_source_item_ordering/selective_ordering.rs b/tests/ui-toml/arbitrary_source_item_ordering/selective_ordering.rs
index cb6d017..d7bc398 100644
--- a/tests/ui-toml/arbitrary_source_item_ordering/selective_ordering.rs
+++ b/tests/ui-toml/arbitrary_source_item_ordering/selective_ordering.rs
@@ -6,7 +6,6 @@
 //@[ord_in_3] rustc-env:CLIPPY_CONF_DIR=tests/ui-toml/arbitrary_source_item_ordering/ord_in_3
 //@compile-flags: --test
 
-#![allow(dead_code)]
 #![deny(clippy::arbitrary_source_item_ordering)]
 
 #[allow(clippy::arbitrary_source_item_ordering)]
diff --git a/tests/ui-toml/array_size_threshold/array_size_threshold.rs b/tests/ui-toml/array_size_threshold/array_size_threshold.rs
index b865213..07779e7 100644
--- a/tests/ui-toml/array_size_threshold/array_size_threshold.rs
+++ b/tests/ui-toml/array_size_threshold/array_size_threshold.rs
@@ -1,4 +1,3 @@
-#![allow(unused)]
 #![warn(clippy::large_const_arrays, clippy::large_stack_arrays)]
 //@no-rustfix
 const ABOVE: [u8; 11] = [0; 11];
diff --git a/tests/ui-toml/array_size_threshold/array_size_threshold.stderr b/tests/ui-toml/array_size_threshold/array_size_threshold.stderr
index c962e80..fbfd38de 100644
--- a/tests/ui-toml/array_size_threshold/array_size_threshold.stderr
+++ b/tests/ui-toml/array_size_threshold/array_size_threshold.stderr
@@ -1,5 +1,5 @@
 error: large array defined as const
-  --> tests/ui-toml/array_size_threshold/array_size_threshold.rs:4:1
+  --> tests/ui-toml/array_size_threshold/array_size_threshold.rs:3:1
    |
 LL | const ABOVE: [u8; 11] = [0; 11];
    | -----^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -10,7 +10,7 @@
    = help: to override `-D warnings` add `#[allow(clippy::large_const_arrays)]`
 
 error: allocating a local array larger than 10 bytes
-  --> tests/ui-toml/array_size_threshold/array_size_threshold.rs:9:17
+  --> tests/ui-toml/array_size_threshold/array_size_threshold.rs:8:17
    |
 LL |     let above = [0u8; 11];
    |                 ^^^^^^^^^
diff --git a/tests/ui-toml/dbg_macro/dbg_macro.fixed b/tests/ui-toml/dbg_macro/dbg_macro.fixed
index a914145..08a8437 100644
--- a/tests/ui-toml/dbg_macro/dbg_macro.fixed
+++ b/tests/ui-toml/dbg_macro/dbg_macro.fixed
@@ -1,6 +1,6 @@
 //@compile-flags: --test
 #![warn(clippy::dbg_macro)]
-#![allow(clippy::unnecessary_operation, clippy::no_effect)]
+#![allow(clippy::no_effect, clippy::unnecessary_operation)]
 
 fn foo(n: u32) -> u32 {
     if let Some(n) = n.checked_sub(4) { n } else { n }
diff --git a/tests/ui-toml/dbg_macro/dbg_macro.rs b/tests/ui-toml/dbg_macro/dbg_macro.rs
index 6565f2e..1286f69 100644
--- a/tests/ui-toml/dbg_macro/dbg_macro.rs
+++ b/tests/ui-toml/dbg_macro/dbg_macro.rs
@@ -1,6 +1,6 @@
 //@compile-flags: --test
 #![warn(clippy::dbg_macro)]
-#![allow(clippy::unnecessary_operation, clippy::no_effect)]
+#![allow(clippy::no_effect, clippy::unnecessary_operation)]
 
 fn foo(n: u32) -> u32 {
     if let Some(n) = dbg!(n.checked_sub(4)) { n } else { n }
diff --git a/tests/ui-toml/disallowed_macros/disallowed_macros.rs b/tests/ui-toml/disallowed_macros/disallowed_macros.rs
index cfe1960..4cdc89e 100644
--- a/tests/ui-toml/disallowed_macros/disallowed_macros.rs
+++ b/tests/ui-toml/disallowed_macros/disallowed_macros.rs
@@ -1,8 +1,6 @@
 //@aux-build:macros.rs
 //@aux-build:proc_macros.rs
 
-#![allow(unused)]
-
 extern crate macros;
 extern crate proc_macros;
 
diff --git a/tests/ui-toml/disallowed_macros/disallowed_macros.stderr b/tests/ui-toml/disallowed_macros/disallowed_macros.stderr
index 589995f..8e375a4 100644
--- a/tests/ui-toml/disallowed_macros/disallowed_macros.stderr
+++ b/tests/ui-toml/disallowed_macros/disallowed_macros.stderr
@@ -1,5 +1,5 @@
 error: use of a disallowed macro `serde::Serialize`
-  --> tests/ui-toml/disallowed_macros/disallowed_macros.rs:22:14
+  --> tests/ui-toml/disallowed_macros/disallowed_macros.rs:20:14
    |
 LL |     #[derive(Serialize)]
    |              ^^^^^^^^^
@@ -9,7 +9,7 @@
    = help: to override `-D warnings` add `#[allow(clippy::disallowed_macros)]`
 
 error: use of a disallowed macro `macros::attr`
-  --> tests/ui-toml/disallowed_macros/disallowed_macros.rs:42:1
+  --> tests/ui-toml/disallowed_macros/disallowed_macros.rs:40:1
    |
 LL | / macros::attr! {
 LL | |
@@ -18,85 +18,85 @@
    | |_^
 
 error: use of a disallowed macro `proc_macros::Derive`
-  --> tests/ui-toml/disallowed_macros/disallowed_macros.rs:62:10
+  --> tests/ui-toml/disallowed_macros/disallowed_macros.rs:60:10
    |
 LL | #[derive(Derive)]
    |          ^^^^^^
 
 error: use of a disallowed macro `std::println`
-  --> tests/ui-toml/disallowed_macros/disallowed_macros.rs:13:5
+  --> tests/ui-toml/disallowed_macros/disallowed_macros.rs:11:5
    |
 LL |     println!("one");
    |     ^^^^^^^^^^^^^^^
 
 error: use of a disallowed macro `std::println`
-  --> tests/ui-toml/disallowed_macros/disallowed_macros.rs:15:5
+  --> tests/ui-toml/disallowed_macros/disallowed_macros.rs:13:5
    |
 LL |     println!("two");
    |     ^^^^^^^^^^^^^^^
 
 error: use of a disallowed macro `std::cfg`
-  --> tests/ui-toml/disallowed_macros/disallowed_macros.rs:17:5
+  --> tests/ui-toml/disallowed_macros/disallowed_macros.rs:15:5
    |
 LL |     cfg!(unix);
    |     ^^^^^^^^^^
 
 error: use of a disallowed macro `std::vec`
-  --> tests/ui-toml/disallowed_macros/disallowed_macros.rs:19:5
+  --> tests/ui-toml/disallowed_macros/disallowed_macros.rs:17:5
    |
 LL |     vec![1, 2, 3];
    |     ^^^^^^^^^^^^^
 
 error: use of a disallowed macro `macros::expr`
-  --> tests/ui-toml/disallowed_macros/disallowed_macros.rs:26:13
+  --> tests/ui-toml/disallowed_macros/disallowed_macros.rs:24:13
    |
 LL |     let _ = macros::expr!();
    |             ^^^^^^^^^^^^^^^
 
 error: use of a disallowed macro `macros::stmt`
-  --> tests/ui-toml/disallowed_macros/disallowed_macros.rs:28:5
+  --> tests/ui-toml/disallowed_macros/disallowed_macros.rs:26:5
    |
 LL |     macros::stmt!();
    |     ^^^^^^^^^^^^^^^
 
 error: use of a disallowed macro `macros::pat`
-  --> tests/ui-toml/disallowed_macros/disallowed_macros.rs:30:9
+  --> tests/ui-toml/disallowed_macros/disallowed_macros.rs:28:9
    |
 LL |     let macros::pat!() = 1;
    |         ^^^^^^^^^^^^^^
 
 error: use of a disallowed macro `macros::ty`
-  --> tests/ui-toml/disallowed_macros/disallowed_macros.rs:32:12
+  --> tests/ui-toml/disallowed_macros/disallowed_macros.rs:30:12
    |
 LL |     let _: macros::ty!() = "";
    |            ^^^^^^^^^^^^^
 
 error: use of a disallowed macro `macros::item`
-  --> tests/ui-toml/disallowed_macros/disallowed_macros.rs:34:5
+  --> tests/ui-toml/disallowed_macros/disallowed_macros.rs:32:5
    |
 LL |     macros::item!();
    |     ^^^^^^^^^^^^^^^
 
 error: use of a disallowed macro `macros::binop`
-  --> tests/ui-toml/disallowed_macros/disallowed_macros.rs:36:13
+  --> tests/ui-toml/disallowed_macros/disallowed_macros.rs:34:13
    |
 LL |     let _ = macros::binop!(1);
    |             ^^^^^^^^^^^^^^^^^
 
 error: use of a disallowed macro `macros::item`
-  --> tests/ui-toml/disallowed_macros/disallowed_macros.rs:48:5
+  --> tests/ui-toml/disallowed_macros/disallowed_macros.rs:46:5
    |
 LL |     macros::item!();
    |     ^^^^^^^^^^^^^^^
 
 error: use of a disallowed macro `macros::item`
-  --> tests/ui-toml/disallowed_macros/disallowed_macros.rs:53:5
+  --> tests/ui-toml/disallowed_macros/disallowed_macros.rs:51:5
    |
 LL |     macros::item!();
    |     ^^^^^^^^^^^^^^^
 
 error: use of a disallowed macro `macros::item`
-  --> tests/ui-toml/disallowed_macros/disallowed_macros.rs:58:5
+  --> tests/ui-toml/disallowed_macros/disallowed_macros.rs:56:5
    |
 LL |     macros::item!();
    |     ^^^^^^^^^^^^^^^
diff --git a/tests/ui-toml/excessive_nesting/excessive_nesting.rs b/tests/ui-toml/excessive_nesting/excessive_nesting.rs
index 001a6ce..24be4b6 100644
--- a/tests/ui-toml/excessive_nesting/excessive_nesting.rs
+++ b/tests/ui-toml/excessive_nesting/excessive_nesting.rs
@@ -3,16 +3,15 @@
 #![feature(custom_inner_attributes)]
 #![warn(clippy::excessive_nesting)]
 #![allow(
-    unused,
-    clippy::let_and_return,
-    clippy::redundant_closure_call,
-    clippy::no_effect,
-    clippy::unnecessary_operation,
-    clippy::never_loop,
-    clippy::needless_ifs,
-    clippy::collapsible_if,
     clippy::blocks_in_conditions,
+    clippy::collapsible_if,
+    clippy::let_and_return,
+    clippy::needless_ifs,
+    clippy::never_loop,
+    clippy::no_effect,
+    clippy::redundant_closure_call,
     clippy::single_match,
+    clippy::unnecessary_operation,
 )]
 
 #[macro_use]
diff --git a/tests/ui-toml/excessive_nesting/excessive_nesting.stderr b/tests/ui-toml/excessive_nesting/excessive_nesting.stderr
index bc2c4b8..a6fe677 100644
--- a/tests/ui-toml/excessive_nesting/excessive_nesting.stderr
+++ b/tests/ui-toml/excessive_nesting/excessive_nesting.stderr
@@ -1,5 +1,5 @@
 error: this block is too nested
-  --> tests/ui-toml/excessive_nesting/excessive_nesting.rs:25:25
+  --> tests/ui-toml/excessive_nesting/excessive_nesting.rs:24:25
    |
 LL |                 let w = { 3 };
    |                         ^^^^^
@@ -9,7 +9,7 @@
    = help: to override `-D warnings` add `#[allow(clippy::excessive_nesting)]`
 
 error: this block is too nested
-  --> tests/ui-toml/excessive_nesting/excessive_nesting.rs:72:17
+  --> tests/ui-toml/excessive_nesting/excessive_nesting.rs:71:17
    |
 LL | /                 impl C {
 LL | |
@@ -20,7 +20,7 @@
    = help: try refactoring your code to minimize nesting
 
 error: this block is too nested
-  --> tests/ui-toml/excessive_nesting/excessive_nesting.rs:87:25
+  --> tests/ui-toml/excessive_nesting/excessive_nesting.rs:86:25
    |
 LL |                 let x = { 1 }; // not a warning, but cc is
    |                         ^^^^^
@@ -28,7 +28,7 @@
    = help: try refactoring your code to minimize nesting
 
 error: this block is too nested
-  --> tests/ui-toml/excessive_nesting/excessive_nesting.rs:105:17
+  --> tests/ui-toml/excessive_nesting/excessive_nesting.rs:104:17
    |
 LL | /                 pub mod e {
 LL | |
@@ -39,7 +39,7 @@
    = help: try refactoring your code to minimize nesting
 
 error: this block is too nested
-  --> tests/ui-toml/excessive_nesting/excessive_nesting.rs:119:18
+  --> tests/ui-toml/excessive_nesting/excessive_nesting.rs:118:18
    |
 LL |     a_but_not({{{{{{{{0}}}}}}}});
    |                  ^^^^^^^^^^^
@@ -47,7 +47,7 @@
    = help: try refactoring your code to minimize nesting
 
 error: this block is too nested
-  --> tests/ui-toml/excessive_nesting/excessive_nesting.rs:121:12
+  --> tests/ui-toml/excessive_nesting/excessive_nesting.rs:120:12
    |
 LL |     a.a({{{{{{{{{0}}}}}}}}});
    |            ^^^^^^^^^^^^^
@@ -55,7 +55,7 @@
    = help: try refactoring your code to minimize nesting
 
 error: this block is too nested
-  --> tests/ui-toml/excessive_nesting/excessive_nesting.rs:123:12
+  --> tests/ui-toml/excessive_nesting/excessive_nesting.rs:122:12
    |
 LL |     (0, {{{{{{{1}}}}}}});
    |            ^^^^^^^^^
@@ -63,7 +63,7 @@
    = help: try refactoring your code to minimize nesting
 
 error: this block is too nested
-  --> tests/ui-toml/excessive_nesting/excessive_nesting.rs:129:25
+  --> tests/ui-toml/excessive_nesting/excessive_nesting.rs:128:25
    |
 LL |                   if true {
    |  _________________________^
@@ -76,7 +76,7 @@
    = help: try refactoring your code to minimize nesting
 
 error: this block is too nested
-  --> tests/ui-toml/excessive_nesting/excessive_nesting.rs:142:29
+  --> tests/ui-toml/excessive_nesting/excessive_nesting.rs:141:29
    |
 LL |                   let z = (|| {
    |  _____________________________^
@@ -89,7 +89,7 @@
    = help: try refactoring your code to minimize nesting
 
 error: this block is too nested
-  --> tests/ui-toml/excessive_nesting/excessive_nesting.rs:162:13
+  --> tests/ui-toml/excessive_nesting/excessive_nesting.rs:161:13
    |
 LL |     y += {{{{{5}}}}};
    |             ^^^^^
@@ -97,7 +97,7 @@
    = help: try refactoring your code to minimize nesting
 
 error: this block is too nested
-  --> tests/ui-toml/excessive_nesting/excessive_nesting.rs:164:20
+  --> tests/ui-toml/excessive_nesting/excessive_nesting.rs:163:20
    |
 LL |     let z = y + {{{{{{{{{5}}}}}}}}};
    |                    ^^^^^^^^^^^^^
@@ -105,7 +105,7 @@
    = help: try refactoring your code to minimize nesting
 
 error: this block is too nested
-  --> tests/ui-toml/excessive_nesting/excessive_nesting.rs:166:12
+  --> tests/ui-toml/excessive_nesting/excessive_nesting.rs:165:12
    |
 LL |     [0, {{{{{{{{{{0}}}}}}}}}}];
    |            ^^^^^^^^^^^^^^^
@@ -113,7 +113,7 @@
    = help: try refactoring your code to minimize nesting
 
 error: this block is too nested
-  --> tests/ui-toml/excessive_nesting/excessive_nesting.rs:168:25
+  --> tests/ui-toml/excessive_nesting/excessive_nesting.rs:167:25
    |
 LL |     let mut xx = [0; {{{{{{{{100}}}}}}}}];
    |                         ^^^^^^^^^^^^^
@@ -121,7 +121,7 @@
    = help: try refactoring your code to minimize nesting
 
 error: this block is too nested
-  --> tests/ui-toml/excessive_nesting/excessive_nesting.rs:170:11
+  --> tests/ui-toml/excessive_nesting/excessive_nesting.rs:169:11
    |
 LL |     xx[{{{{{{{{{{{{{{{{{{{{{{{{3}}}}}}}}}}}}}}}}}}}}}}}}];
    |           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -129,7 +129,7 @@
    = help: try refactoring your code to minimize nesting
 
 error: this block is too nested
-  --> tests/ui-toml/excessive_nesting/excessive_nesting.rs:172:13
+  --> tests/ui-toml/excessive_nesting/excessive_nesting.rs:171:13
    |
 LL |     &mut {{{{{{{{{{y}}}}}}}}}};
    |             ^^^^^^^^^^^^^^^
@@ -137,7 +137,7 @@
    = help: try refactoring your code to minimize nesting
 
 error: this block is too nested
-  --> tests/ui-toml/excessive_nesting/excessive_nesting.rs:175:17
+  --> tests/ui-toml/excessive_nesting/excessive_nesting.rs:174:17
    |
 LL |     for i in {{{{xx}}}} {{{{{{{{}}}}}}}}
    |                 ^^^^
@@ -145,7 +145,7 @@
    = help: try refactoring your code to minimize nesting
 
 error: this block is too nested
-  --> tests/ui-toml/excessive_nesting/excessive_nesting.rs:175:28
+  --> tests/ui-toml/excessive_nesting/excessive_nesting.rs:174:28
    |
 LL |     for i in {{{{xx}}}} {{{{{{{{}}}}}}}}
    |                            ^^^^^^^^^^
@@ -153,7 +153,7 @@
    = help: try refactoring your code to minimize nesting
 
 error: this block is too nested
-  --> tests/ui-toml/excessive_nesting/excessive_nesting.rs:179:28
+  --> tests/ui-toml/excessive_nesting/excessive_nesting.rs:178:28
    |
 LL |     while let Some(i) = {{{{{{Some(1)}}}}}} {{{{{{{}}}}}}}
    |                            ^^^^^^^^^^^^^
@@ -161,7 +161,7 @@
    = help: try refactoring your code to minimize nesting
 
 error: this block is too nested
-  --> tests/ui-toml/excessive_nesting/excessive_nesting.rs:179:48
+  --> tests/ui-toml/excessive_nesting/excessive_nesting.rs:178:48
    |
 LL |     while let Some(i) = {{{{{{Some(1)}}}}}} {{{{{{{}}}}}}}
    |                                                ^^^^^^^^
@@ -169,7 +169,7 @@
    = help: try refactoring your code to minimize nesting
 
 error: this block is too nested
-  --> tests/ui-toml/excessive_nesting/excessive_nesting.rs:183:14
+  --> tests/ui-toml/excessive_nesting/excessive_nesting.rs:182:14
    |
 LL |     while {{{{{{{{true}}}}}}}} {{{{{{{{{}}}}}}}}}
    |              ^^^^^^^^^^^^^^
@@ -177,7 +177,7 @@
    = help: try refactoring your code to minimize nesting
 
 error: this block is too nested
-  --> tests/ui-toml/excessive_nesting/excessive_nesting.rs:183:35
+  --> tests/ui-toml/excessive_nesting/excessive_nesting.rs:182:35
    |
 LL |     while {{{{{{{{true}}}}}}}} {{{{{{{{{}}}}}}}}}
    |                                   ^^^^^^^^^^^^
@@ -185,7 +185,7 @@
    = help: try refactoring your code to minimize nesting
 
 error: this block is too nested
-  --> tests/ui-toml/excessive_nesting/excessive_nesting.rs:187:23
+  --> tests/ui-toml/excessive_nesting/excessive_nesting.rs:186:23
    |
 LL |     let d = D { d: {{{{{{{{{{{{{{{{{{{{{{{3}}}}}}}}}}}}}}}}}}}}}}} };
    |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -193,7 +193,7 @@
    = help: try refactoring your code to minimize nesting
 
 error: this block is too nested
-  --> tests/ui-toml/excessive_nesting/excessive_nesting.rs:190:8
+  --> tests/ui-toml/excessive_nesting/excessive_nesting.rs:189:8
    |
 LL |     {{{{1;}}}}..{{{{{{3}}}}}};
    |        ^^^^
@@ -201,7 +201,7 @@
    = help: try refactoring your code to minimize nesting
 
 error: this block is too nested
-  --> tests/ui-toml/excessive_nesting/excessive_nesting.rs:190:20
+  --> tests/ui-toml/excessive_nesting/excessive_nesting.rs:189:20
    |
 LL |     {{{{1;}}}}..{{{{{{3}}}}}};
    |                    ^^^^^^^
@@ -209,7 +209,7 @@
    = help: try refactoring your code to minimize nesting
 
 error: this block is too nested
-  --> tests/ui-toml/excessive_nesting/excessive_nesting.rs:193:8
+  --> tests/ui-toml/excessive_nesting/excessive_nesting.rs:192:8
    |
 LL |     {{{{1;}}}}..={{{{{{{{{{{{{{{{{{{{{{{{{{6}}}}}}}}}}}}}}}}}}}}}}}}}};
    |        ^^^^
@@ -217,7 +217,7 @@
    = help: try refactoring your code to minimize nesting
 
 error: this block is too nested
-  --> tests/ui-toml/excessive_nesting/excessive_nesting.rs:193:21
+  --> tests/ui-toml/excessive_nesting/excessive_nesting.rs:192:21
    |
 LL |     {{{{1;}}}}..={{{{{{{{{{{{{{{{{{{{{{{{{{6}}}}}}}}}}}}}}}}}}}}}}}}}};
    |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -225,7 +225,7 @@
    = help: try refactoring your code to minimize nesting
 
 error: this block is too nested
-  --> tests/ui-toml/excessive_nesting/excessive_nesting.rs:196:10
+  --> tests/ui-toml/excessive_nesting/excessive_nesting.rs:195:10
    |
 LL |     ..{{{{{{{5}}}}}}};
    |          ^^^^^^^^^
@@ -233,7 +233,7 @@
    = help: try refactoring your code to minimize nesting
 
 error: this block is too nested
-  --> tests/ui-toml/excessive_nesting/excessive_nesting.rs:198:11
+  --> tests/ui-toml/excessive_nesting/excessive_nesting.rs:197:11
    |
 LL |     ..={{{{{3}}}}};
    |           ^^^^^
@@ -241,7 +241,7 @@
    = help: try refactoring your code to minimize nesting
 
 error: this block is too nested
-  --> tests/ui-toml/excessive_nesting/excessive_nesting.rs:200:8
+  --> tests/ui-toml/excessive_nesting/excessive_nesting.rs:199:8
    |
 LL |     {{{{{1;}}}}}..;
    |        ^^^^^^
@@ -249,7 +249,7 @@
    = help: try refactoring your code to minimize nesting
 
 error: this block is too nested
-  --> tests/ui-toml/excessive_nesting/excessive_nesting.rs:203:20
+  --> tests/ui-toml/excessive_nesting/excessive_nesting.rs:202:20
    |
 LL |     loop { break {{{{1}}}} };
    |                    ^^^^^
@@ -257,7 +257,7 @@
    = help: try refactoring your code to minimize nesting
 
 error: this block is too nested
-  --> tests/ui-toml/excessive_nesting/excessive_nesting.rs:205:13
+  --> tests/ui-toml/excessive_nesting/excessive_nesting.rs:204:13
    |
 LL |     loop {{{{{{}}}}}}
    |             ^^^^^^
@@ -265,7 +265,7 @@
    = help: try refactoring your code to minimize nesting
 
 error: this block is too nested
-  --> tests/ui-toml/excessive_nesting/excessive_nesting.rs:208:14
+  --> tests/ui-toml/excessive_nesting/excessive_nesting.rs:207:14
    |
 LL |     match {{{{{{true}}}}}} {
    |              ^^^^^^^^^^
@@ -273,7 +273,7 @@
    = help: try refactoring your code to minimize nesting
 
 error: this block is too nested
-  --> tests/ui-toml/excessive_nesting/excessive_nesting.rs:210:20
+  --> tests/ui-toml/excessive_nesting/excessive_nesting.rs:209:20
    |
 LL |         true => {{{{}}}},
    |                    ^^
@@ -281,7 +281,7 @@
    = help: try refactoring your code to minimize nesting
 
 error: this block is too nested
-  --> tests/ui-toml/excessive_nesting/excessive_nesting.rs:212:21
+  --> tests/ui-toml/excessive_nesting/excessive_nesting.rs:211:21
    |
 LL |         false => {{{{}}}},
    |                     ^^
@@ -289,7 +289,7 @@
    = help: try refactoring your code to minimize nesting
 
 error: this block is too nested
-  --> tests/ui-toml/excessive_nesting/excessive_nesting.rs:219:17
+  --> tests/ui-toml/excessive_nesting/excessive_nesting.rs:218:17
    |
 LL | /                 {
 LL | |
@@ -300,7 +300,7 @@
    = help: try refactoring your code to minimize nesting
 
 error: this block is too nested
-  --> tests/ui-toml/excessive_nesting/excessive_nesting.rs:229:28
+  --> tests/ui-toml/excessive_nesting/excessive_nesting.rs:228:28
    |
 LL |     async fn c() -> u32 {{{{{{{0}}}}}}}
    |                            ^^^^^^^^^
@@ -308,7 +308,7 @@
    = help: try refactoring your code to minimize nesting
 
 error: this block is too nested
-  --> tests/ui-toml/excessive_nesting/excessive_nesting.rs:236:8
+  --> tests/ui-toml/excessive_nesting/excessive_nesting.rs:235:8
    |
 LL |     {{{{b().await}}}};
    |        ^^^^^^^^^^^
diff --git a/tests/ui-toml/excessive_precision/excessive_precision.fixed b/tests/ui-toml/excessive_precision/excessive_precision.fixed
index 577bbff..13a4b47 100644
--- a/tests/ui-toml/excessive_precision/excessive_precision.fixed
+++ b/tests/ui-toml/excessive_precision/excessive_precision.fixed
@@ -1,11 +1,5 @@
 #![warn(clippy::excessive_precision)]
-#![allow(
-    dead_code,
-    overflowing_literals,
-    unused_variables,
-    clippy::print_literal,
-    clippy::useless_vec
-)]
+#![allow(overflowing_literals, clippy::print_literal, clippy::useless_vec)]
 
 fn main() {
     // Overly specified constants
diff --git a/tests/ui-toml/excessive_precision/excessive_precision.rs b/tests/ui-toml/excessive_precision/excessive_precision.rs
index 121448e..7ebcb2d 100644
--- a/tests/ui-toml/excessive_precision/excessive_precision.rs
+++ b/tests/ui-toml/excessive_precision/excessive_precision.rs
@@ -1,11 +1,5 @@
 #![warn(clippy::excessive_precision)]
-#![allow(
-    dead_code,
-    overflowing_literals,
-    unused_variables,
-    clippy::print_literal,
-    clippy::useless_vec
-)]
+#![allow(overflowing_literals, clippy::print_literal, clippy::useless_vec)]
 
 fn main() {
     // Overly specified constants
diff --git a/tests/ui-toml/excessive_precision/excessive_precision.stderr b/tests/ui-toml/excessive_precision/excessive_precision.stderr
index 65d33ed..da98bd2 100644
--- a/tests/ui-toml/excessive_precision/excessive_precision.stderr
+++ b/tests/ui-toml/excessive_precision/excessive_precision.stderr
@@ -1,11 +1,11 @@
 error: float has excessive precision
-  --> tests/ui-toml/excessive_precision/excessive_precision.rs:12:18
+  --> tests/ui-toml/excessive_precision/excessive_precision.rs:6:18
    |
 LL |     let _: f32 = 1.012345678901234567890;
    |                  ^^^^^^^^^^^^^^^^^^^^^^^
    |
 note: consider making it a `const` item
-  --> tests/ui-toml/excessive_precision/excessive_precision.rs:12:5
+  --> tests/ui-toml/excessive_precision/excessive_precision.rs:6:5
    |
 LL |     let _: f32 = 1.012345678901234567890;
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -18,13 +18,13 @@
    |
 
 error: float has excessive precision
-  --> tests/ui-toml/excessive_precision/excessive_precision.rs:14:18
+  --> tests/ui-toml/excessive_precision/excessive_precision.rs:8:18
    |
 LL |     let _: f64 = 1.012345678901234567890;
    |                  ^^^^^^^^^^^^^^^^^^^^^^^
    |
 note: consider making it a `const` item
-  --> tests/ui-toml/excessive_precision/excessive_precision.rs:14:5
+  --> tests/ui-toml/excessive_precision/excessive_precision.rs:8:5
    |
 LL |     let _: f64 = 1.012345678901234567890;
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
diff --git a/tests/ui-toml/ifs_same_cond/ifs_same_cond.rs b/tests/ui-toml/ifs_same_cond/ifs_same_cond.rs
index 2a6097f..63978c8 100644
--- a/tests/ui-toml/ifs_same_cond/ifs_same_cond.rs
+++ b/tests/ui-toml/ifs_same_cond/ifs_same_cond.rs
@@ -1,5 +1,5 @@
 #![warn(clippy::ifs_same_cond)]
-#![allow(clippy::if_same_then_else, clippy::comparison_chain, clippy::needless_else)]
+#![allow(clippy::comparison_chain, clippy::if_same_then_else, clippy::needless_else)]
 
 fn main() {}
 
diff --git a/tests/ui-toml/item_name_repetitions/allow_exact_repetitions/item_name_repetitions.rs b/tests/ui-toml/item_name_repetitions/allow_exact_repetitions/item_name_repetitions.rs
index 2060376..ce5373e 100644
--- a/tests/ui-toml/item_name_repetitions/allow_exact_repetitions/item_name_repetitions.rs
+++ b/tests/ui-toml/item_name_repetitions/allow_exact_repetitions/item_name_repetitions.rs
@@ -1,5 +1,4 @@
 #![warn(clippy::module_name_repetitions)]
-#![allow(dead_code)]
 
 pub mod foo {
     // this line should produce a warning:
diff --git a/tests/ui-toml/item_name_repetitions/allow_exact_repetitions/item_name_repetitions.stderr b/tests/ui-toml/item_name_repetitions/allow_exact_repetitions/item_name_repetitions.stderr
index 8e6f726..3186a73 100644
--- a/tests/ui-toml/item_name_repetitions/allow_exact_repetitions/item_name_repetitions.stderr
+++ b/tests/ui-toml/item_name_repetitions/allow_exact_repetitions/item_name_repetitions.stderr
@@ -1,5 +1,5 @@
 error: item name is the same as its containing module's name
-  --> tests/ui-toml/item_name_repetitions/allow_exact_repetitions/item_name_repetitions.rs:6:12
+  --> tests/ui-toml/item_name_repetitions/allow_exact_repetitions/item_name_repetitions.rs:5:12
    |
 LL |     pub fn foo() {}
    |            ^^^
diff --git a/tests/ui-toml/item_name_repetitions/allowed_prefixes/item_name_repetitions.rs b/tests/ui-toml/item_name_repetitions/allowed_prefixes/item_name_repetitions.rs
index d6b0a30..e08a822 100644
--- a/tests/ui-toml/item_name_repetitions/allowed_prefixes/item_name_repetitions.rs
+++ b/tests/ui-toml/item_name_repetitions/allowed_prefixes/item_name_repetitions.rs
@@ -1,5 +1,4 @@
 #![warn(clippy::module_name_repetitions)]
-#![allow(dead_code)]
 
 pub mod foo {
     // #12544 - shouldn't warn if item name consists only of an allowed prefix and a module name.
diff --git a/tests/ui-toml/item_name_repetitions/allowed_prefixes/item_name_repetitions.stderr b/tests/ui-toml/item_name_repetitions/allowed_prefixes/item_name_repetitions.stderr
index 6cfe0ea..fd37833 100644
--- a/tests/ui-toml/item_name_repetitions/allowed_prefixes/item_name_repetitions.stderr
+++ b/tests/ui-toml/item_name_repetitions/allowed_prefixes/item_name_repetitions.stderr
@@ -1,5 +1,5 @@
 error: item name ends with its containing module's name
-  --> tests/ui-toml/item_name_repetitions/allowed_prefixes/item_name_repetitions.rs:9:12
+  --> tests/ui-toml/item_name_repetitions/allowed_prefixes/item_name_repetitions.rs:8:12
    |
 LL |     pub fn to_foo() {}
    |            ^^^^^^
diff --git a/tests/ui-toml/item_name_repetitions/allowed_prefixes_extend/item_name_repetitions.rs b/tests/ui-toml/item_name_repetitions/allowed_prefixes_extend/item_name_repetitions.rs
index 347430f..323d148 100644
--- a/tests/ui-toml/item_name_repetitions/allowed_prefixes_extend/item_name_repetitions.rs
+++ b/tests/ui-toml/item_name_repetitions/allowed_prefixes_extend/item_name_repetitions.rs
@@ -1,5 +1,4 @@
 #![warn(clippy::module_name_repetitions)]
-#![allow(dead_code)]
 
 pub mod foo {
     // #12544 - shouldn't warn if item name consists only of an allowed prefix and a module name.
diff --git a/tests/ui-toml/item_name_repetitions/allowed_prefixes_extend/item_name_repetitions.stderr b/tests/ui-toml/item_name_repetitions/allowed_prefixes_extend/item_name_repetitions.stderr
index f495ec4..d897cdb 100644
--- a/tests/ui-toml/item_name_repetitions/allowed_prefixes_extend/item_name_repetitions.stderr
+++ b/tests/ui-toml/item_name_repetitions/allowed_prefixes_extend/item_name_repetitions.stderr
@@ -1,5 +1,5 @@
 error: item name ends with its containing module's name
-  --> tests/ui-toml/item_name_repetitions/allowed_prefixes_extend/item_name_repetitions.rs:9:12
+  --> tests/ui-toml/item_name_repetitions/allowed_prefixes_extend/item_name_repetitions.rs:8:12
    |
 LL |     pub fn something_foo() {}
    |            ^^^^^^^^^^^^^
diff --git a/tests/ui-toml/min_ident_chars/auxiliary/extern_types.rs b/tests/ui-toml/min_ident_chars/auxiliary/extern_types.rs
index 1f1f1c6..8e2abc7 100644
--- a/tests/ui-toml/min_ident_chars/auxiliary/extern_types.rs
+++ b/tests/ui-toml/min_ident_chars/auxiliary/extern_types.rs
@@ -1,4 +1,4 @@
-#![allow(nonstandard_style, unused)]
+#![allow(nonstandard_style)]
 
 pub struct Aaa;
 pub struct Bbb;
diff --git a/tests/ui-toml/min_ident_chars/min_ident_chars.rs b/tests/ui-toml/min_ident_chars/min_ident_chars.rs
index 385e23d..4b99924 100644
--- a/tests/ui-toml/min_ident_chars/min_ident_chars.rs
+++ b/tests/ui-toml/min_ident_chars/min_ident_chars.rs
@@ -1,5 +1,5 @@
 //@aux-build:extern_types.rs
-#![allow(nonstandard_style, unused)]
+#![allow(nonstandard_style)]
 #![warn(clippy::min_ident_chars)]
 
 extern crate extern_types;
diff --git a/tests/ui-toml/min_rust_version/min_rust_version.fixed b/tests/ui-toml/min_rust_version/min_rust_version.fixed
index d73da96..c77f614 100644
--- a/tests/ui-toml/min_rust_version/min_rust_version.fixed
+++ b/tests/ui-toml/min_rust_version/min_rust_version.fixed
@@ -1,5 +1,5 @@
-#![allow(clippy::redundant_clone, clippy::unnecessary_operation, clippy::incompatible_msrv)]
-#![warn(clippy::manual_non_exhaustive, clippy::borrow_as_ptr, clippy::manual_bits)]
+#![allow(clippy::incompatible_msrv, clippy::redundant_clone, clippy::unnecessary_operation)]
+#![warn(clippy::borrow_as_ptr, clippy::manual_bits, clippy::manual_non_exhaustive)]
 
 use std::mem::{size_of, size_of_val};
 use std::ops::Deref;
diff --git a/tests/ui-toml/min_rust_version/min_rust_version.rs b/tests/ui-toml/min_rust_version/min_rust_version.rs
index 78cfba1..8e82e2c 100644
--- a/tests/ui-toml/min_rust_version/min_rust_version.rs
+++ b/tests/ui-toml/min_rust_version/min_rust_version.rs
@@ -1,5 +1,5 @@
-#![allow(clippy::redundant_clone, clippy::unnecessary_operation, clippy::incompatible_msrv)]
-#![warn(clippy::manual_non_exhaustive, clippy::borrow_as_ptr, clippy::manual_bits)]
+#![allow(clippy::incompatible_msrv, clippy::redundant_clone, clippy::unnecessary_operation)]
+#![warn(clippy::borrow_as_ptr, clippy::manual_bits, clippy::manual_non_exhaustive)]
 
 use std::mem::{size_of, size_of_val};
 use std::ops::Deref;
diff --git a/tests/ui-toml/needless_raw_string_hashes_one_allowed/needless_raw_string_hashes.fixed b/tests/ui-toml/needless_raw_string_hashes_one_allowed/needless_raw_string_hashes.fixed
index 6b38604..b83c102 100644
--- a/tests/ui-toml/needless_raw_string_hashes_one_allowed/needless_raw_string_hashes.fixed
+++ b/tests/ui-toml/needless_raw_string_hashes_one_allowed/needless_raw_string_hashes.fixed
@@ -1,4 +1,4 @@
-#![allow(clippy::no_effect, unused)]
+#![allow(clippy::no_effect)]
 #![warn(clippy::needless_raw_string_hashes)]
 
 fn main() {
diff --git a/tests/ui-toml/needless_raw_string_hashes_one_allowed/needless_raw_string_hashes.rs b/tests/ui-toml/needless_raw_string_hashes_one_allowed/needless_raw_string_hashes.rs
index f928e59..f043510 100644
--- a/tests/ui-toml/needless_raw_string_hashes_one_allowed/needless_raw_string_hashes.rs
+++ b/tests/ui-toml/needless_raw_string_hashes_one_allowed/needless_raw_string_hashes.rs
@@ -1,4 +1,4 @@
-#![allow(clippy::no_effect, unused)]
+#![allow(clippy::no_effect)]
 #![warn(clippy::needless_raw_string_hashes)]
 
 fn main() {
diff --git a/tests/ui-toml/print_macro/print_macro.rs b/tests/ui-toml/print_macro/print_macro.rs
index 74f3ba7..2ee8719 100644
--- a/tests/ui-toml/print_macro/print_macro.rs
+++ b/tests/ui-toml/print_macro/print_macro.rs
@@ -1,6 +1,5 @@
 //@compile-flags: --test
-#![warn(clippy::print_stdout)]
-#![warn(clippy::print_stderr)]
+#![warn(clippy::print_stderr, clippy::print_stdout)]
 
 fn foo(n: u32) {
     print!("{n}");
diff --git a/tests/ui-toml/print_macro/print_macro.stderr b/tests/ui-toml/print_macro/print_macro.stderr
index 835af7e..e2a284c 100644
--- a/tests/ui-toml/print_macro/print_macro.stderr
+++ b/tests/ui-toml/print_macro/print_macro.stderr
@@ -1,5 +1,5 @@
 error: use of `print!`
-  --> tests/ui-toml/print_macro/print_macro.rs:6:5
+  --> tests/ui-toml/print_macro/print_macro.rs:5:5
    |
 LL |     print!("{n}");
    |     ^^^^^^^^^^^^^
@@ -8,7 +8,7 @@
    = help: to override `-D warnings` add `#[allow(clippy::print_stdout)]`
 
 error: use of `eprint!`
-  --> tests/ui-toml/print_macro/print_macro.rs:8:5
+  --> tests/ui-toml/print_macro/print_macro.rs:7:5
    |
 LL |     eprint!("{n}");
    |     ^^^^^^^^^^^^^^
diff --git a/tests/ui-toml/private-doc-errors/doc_lints.rs b/tests/ui-toml/private-doc-errors/doc_lints.rs
index c5d00c9..4d354e2 100644
--- a/tests/ui-toml/private-doc-errors/doc_lints.rs
+++ b/tests/ui-toml/private-doc-errors/doc_lints.rs
@@ -1,7 +1,7 @@
 #![deny(
-    clippy::unnecessary_safety_doc,
     clippy::missing_errors_doc,
-    clippy::missing_panics_doc
+    clippy::missing_panics_doc,
+    clippy::unnecessary_safety_doc
 )]
 
 /// This is a private function, skip to match behavior with `missing_safety_doc`.
diff --git a/tests/ui-toml/private-doc-errors/doc_lints.stderr b/tests/ui-toml/private-doc-errors/doc_lints.stderr
index a8ee09b..d83e10d 100644
--- a/tests/ui-toml/private-doc-errors/doc_lints.stderr
+++ b/tests/ui-toml/private-doc-errors/doc_lints.stderr
@@ -5,9 +5,9 @@
    | ^^^^^^^^^^^^^^^^^^^^
    |
 note: the lint level is defined here
-  --> tests/ui-toml/private-doc-errors/doc_lints.rs:2:5
+  --> tests/ui-toml/private-doc-errors/doc_lints.rs:4:5
    |
-LL |     clippy::unnecessary_safety_doc,
+LL |     clippy::unnecessary_safety_doc
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 
 error: safe function's docs have unnecessary `# Safety` section
@@ -23,7 +23,7 @@
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
 note: the lint level is defined here
-  --> tests/ui-toml/private-doc-errors/doc_lints.rs:3:5
+  --> tests/ui-toml/private-doc-errors/doc_lints.rs:2:5
    |
 LL |     clippy::missing_errors_doc,
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -46,9 +46,9 @@
 LL |         panic!();
    |         ^^^^^^^^
 note: the lint level is defined here
-  --> tests/ui-toml/private-doc-errors/doc_lints.rs:4:5
+  --> tests/ui-toml/private-doc-errors/doc_lints.rs:3:5
    |
-LL |     clippy::missing_panics_doc
+LL |     clippy::missing_panics_doc,
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^
 
 error: unsafe function's docs are missing a `# Safety` section