11error: a `const` item should not be interior mutable
2- --> tests/ui/declare_interior_mutable_const/others.rs:9 :1
2+ --> tests/ui/declare_interior_mutable_const/others.rs:10 :1
33 |
44LL | const ATOMIC: AtomicUsize = AtomicUsize::new(5);
55 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -9,23 +9,23 @@ LL | const ATOMIC: AtomicUsize = AtomicUsize::new(5);
99 = help: to override `-D warnings` add `#[allow(clippy::declare_interior_mutable_const)]`
1010
1111error: a `const` item should not be interior mutable
12- --> tests/ui/declare_interior_mutable_const/others.rs:10 :1
12+ --> tests/ui/declare_interior_mutable_const/others.rs:11 :1
1313 |
1414LL | const CELL: Cell<usize> = Cell::new(6);
1515 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1616 |
1717 = help: consider making this `Sync` so that it can go in a static item or using a `thread_local`
1818
1919error: a `const` item should not be interior mutable
20- --> tests/ui/declare_interior_mutable_const/others.rs:11 :1
20+ --> tests/ui/declare_interior_mutable_const/others.rs:12 :1
2121 |
2222LL | const ATOMIC_TUPLE: ([AtomicUsize; 1], Vec<AtomicUsize>, u8) = ([ATOMIC], Vec::new(), 7);
2323 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2424 |
2525 = help: consider making this a static item
2626
2727error: a `const` item should not be interior mutable
28- --> tests/ui/declare_interior_mutable_const/others.rs:16 :9
28+ --> tests/ui/declare_interior_mutable_const/others.rs:17 :9
2929 |
3030LL | const $name: $ty = $e;
3131 | ^^^^^^^^^^^^^^^^^^^^^^
@@ -36,7 +36,7 @@ LL | declare_const!(_ONCE: Once = Once::new());
3636 = note: this error originates in the macro `declare_const` (in Nightly builds, run with -Z macro-backtrace for more info)
3737
3838error: a `const` item should not be interior mutable
39- --> tests/ui/declare_interior_mutable_const/others.rs:44 :13
39+ --> tests/ui/declare_interior_mutable_const/others.rs:45 :13
4040 |
4141LL | const _BAZ: Cell<usize> = Cell::new(0);
4242 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
0 commit comments