11error: a `const` item with interior mutability should not be borrowed
2- --> tests/ui/borrow_interior_mutable_const/others.rs:54 :5
2+ --> tests/ui/borrow_interior_mutable_const/others.rs:65 :5
33 |
44LL | ATOMIC.store(1, Ordering::SeqCst);
55 | ^^^^^^
@@ -12,103 +12,103 @@ LL | #![deny(clippy::borrow_interior_mutable_const)]
1212 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1313
1414error: a `const` item with interior mutability should not be borrowed
15- --> tests/ui/borrow_interior_mutable_const/others.rs:55 :16
15+ --> tests/ui/borrow_interior_mutable_const/others.rs:66 :16
1616 |
1717LL | assert_eq!(ATOMIC.load(Ordering::SeqCst), 5);
1818 | ^^^^^^
1919 |
2020 = help: assign this const to a local or static variable, and use the variable here
2121
2222error: a `const` item with interior mutability should not be borrowed
23- --> tests/ui/borrow_interior_mutable_const/others.rs:58 :22
23+ --> tests/ui/borrow_interior_mutable_const/others.rs:69 :22
2424 |
2525LL | let _once_ref = &ONCE_INIT;
2626 | ^^^^^^^^^
2727 |
2828 = help: assign this const to a local or static variable, and use the variable here
2929
3030error: a `const` item with interior mutability should not be borrowed
31- --> tests/ui/borrow_interior_mutable_const/others.rs:59 :25
31+ --> tests/ui/borrow_interior_mutable_const/others.rs:70 :25
3232 |
3333LL | let _once_ref_2 = &&ONCE_INIT;
3434 | ^^^^^^^^^
3535 |
3636 = help: assign this const to a local or static variable, and use the variable here
3737
3838error: a `const` item with interior mutability should not be borrowed
39- --> tests/ui/borrow_interior_mutable_const/others.rs:60 :27
39+ --> tests/ui/borrow_interior_mutable_const/others.rs:71 :27
4040 |
4141LL | let _once_ref_4 = &&&&ONCE_INIT;
4242 | ^^^^^^^^^
4343 |
4444 = help: assign this const to a local or static variable, and use the variable here
4545
4646error: a `const` item with interior mutability should not be borrowed
47- --> tests/ui/borrow_interior_mutable_const/others.rs:61 :26
47+ --> tests/ui/borrow_interior_mutable_const/others.rs:72 :26
4848 |
4949LL | let _once_mut = &mut ONCE_INIT;
5050 | ^^^^^^^^^
5151 |
5252 = help: assign this const to a local or static variable, and use the variable here
5353
5454error: a `const` item with interior mutability should not be borrowed
55- --> tests/ui/borrow_interior_mutable_const/others.rs:72 :14
55+ --> tests/ui/borrow_interior_mutable_const/others.rs:83 :14
5656 |
5757LL | let _ = &ATOMIC_TUPLE;
5858 | ^^^^^^^^^^^^
5959 |
6060 = help: assign this const to a local or static variable, and use the variable here
6161
6262error: a `const` item with interior mutability should not be borrowed
63- --> tests/ui/borrow_interior_mutable_const/others.rs:73 :14
63+ --> tests/ui/borrow_interior_mutable_const/others.rs:84 :14
6464 |
6565LL | let _ = &ATOMIC_TUPLE.0;
6666 | ^^^^^^^^^^^^
6767 |
6868 = help: assign this const to a local or static variable, and use the variable here
6969
7070error: a `const` item with interior mutability should not be borrowed
71- --> tests/ui/borrow_interior_mutable_const/others.rs:74 :19
71+ --> tests/ui/borrow_interior_mutable_const/others.rs:85 :19
7272 |
7373LL | let _ = &(&&&&ATOMIC_TUPLE).0;
7474 | ^^^^^^^^^^^^
7575 |
7676 = help: assign this const to a local or static variable, and use the variable here
7777
7878error: a `const` item with interior mutability should not be borrowed
79- --> tests/ui/borrow_interior_mutable_const/others.rs:75 :14
79+ --> tests/ui/borrow_interior_mutable_const/others.rs:86 :14
8080 |
8181LL | let _ = &ATOMIC_TUPLE.0[0];
8282 | ^^^^^^^^^^^^
8383 |
8484 = help: assign this const to a local or static variable, and use the variable here
8585
8686error: a `const` item with interior mutability should not be borrowed
87- --> tests/ui/borrow_interior_mutable_const/others.rs:76 :13
87+ --> tests/ui/borrow_interior_mutable_const/others.rs:87 :13
8888 |
8989LL | let _ = ATOMIC_TUPLE.0[0].load(Ordering::SeqCst);
9090 | ^^^^^^^^^^^^
9191 |
9292 = help: assign this const to a local or static variable, and use the variable here
9393
9494error: a `const` item with interior mutability should not be borrowed
95- --> tests/ui/borrow_interior_mutable_const/others.rs:81 :13
95+ --> tests/ui/borrow_interior_mutable_const/others.rs:92 :13
9696 |
9797LL | let _ = ATOMIC_TUPLE.0[0];
9898 | ^^^^^^^^^^^^
9999 |
100100 = help: assign this const to a local or static variable, and use the variable here
101101
102102error: a `const` item with interior mutability should not be borrowed
103- --> tests/ui/borrow_interior_mutable_const/others.rs:86 :5
103+ --> tests/ui/borrow_interior_mutable_const/others.rs:97 :5
104104 |
105105LL | CELL.set(2);
106106 | ^^^^
107107 |
108108 = help: assign this const to a local or static variable, and use the variable here
109109
110110error: a `const` item with interior mutability should not be borrowed
111- --> tests/ui/borrow_interior_mutable_const/others.rs:87 :16
111+ --> tests/ui/borrow_interior_mutable_const/others.rs:98 :16
112112 |
113113LL | assert_eq!(CELL.get(), 6);
114114 | ^^^^
0 commit comments