1
1
error: 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
3
3
|
4
4
LL | ATOMIC.store(1, Ordering::SeqCst);
5
5
| ^^^^^^
@@ -12,103 +12,103 @@ LL | #![deny(clippy::borrow_interior_mutable_const)]
12
12
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
13
13
14
14
error: 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
16
16
|
17
17
LL | assert_eq!(ATOMIC.load(Ordering::SeqCst), 5);
18
18
| ^^^^^^
19
19
|
20
20
= help: assign this const to a local or static variable, and use the variable here
21
21
22
22
error: 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
24
24
|
25
25
LL | let _once_ref = &ONCE_INIT;
26
26
| ^^^^^^^^^
27
27
|
28
28
= help: assign this const to a local or static variable, and use the variable here
29
29
30
30
error: 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
32
32
|
33
33
LL | let _once_ref_2 = &&ONCE_INIT;
34
34
| ^^^^^^^^^
35
35
|
36
36
= help: assign this const to a local or static variable, and use the variable here
37
37
38
38
error: 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
40
40
|
41
41
LL | let _once_ref_4 = &&&&ONCE_INIT;
42
42
| ^^^^^^^^^
43
43
|
44
44
= help: assign this const to a local or static variable, and use the variable here
45
45
46
46
error: 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
48
48
|
49
49
LL | let _once_mut = &mut ONCE_INIT;
50
50
| ^^^^^^^^^
51
51
|
52
52
= help: assign this const to a local or static variable, and use the variable here
53
53
54
54
error: 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
56
56
|
57
57
LL | let _ = &ATOMIC_TUPLE;
58
58
| ^^^^^^^^^^^^
59
59
|
60
60
= help: assign this const to a local or static variable, and use the variable here
61
61
62
62
error: 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
64
64
|
65
65
LL | let _ = &ATOMIC_TUPLE.0;
66
66
| ^^^^^^^^^^^^
67
67
|
68
68
= help: assign this const to a local or static variable, and use the variable here
69
69
70
70
error: 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
72
72
|
73
73
LL | let _ = &(&&&&ATOMIC_TUPLE).0;
74
74
| ^^^^^^^^^^^^
75
75
|
76
76
= help: assign this const to a local or static variable, and use the variable here
77
77
78
78
error: 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
80
80
|
81
81
LL | let _ = &ATOMIC_TUPLE.0[0];
82
82
| ^^^^^^^^^^^^
83
83
|
84
84
= help: assign this const to a local or static variable, and use the variable here
85
85
86
86
error: 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
88
88
|
89
89
LL | let _ = ATOMIC_TUPLE.0[0].load(Ordering::SeqCst);
90
90
| ^^^^^^^^^^^^
91
91
|
92
92
= help: assign this const to a local or static variable, and use the variable here
93
93
94
94
error: 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
96
96
|
97
97
LL | let _ = ATOMIC_TUPLE.0[0];
98
98
| ^^^^^^^^^^^^
99
99
|
100
100
= help: assign this const to a local or static variable, and use the variable here
101
101
102
102
error: 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
104
104
|
105
105
LL | CELL.set(2);
106
106
| ^^^^
107
107
|
108
108
= help: assign this const to a local or static variable, and use the variable here
109
109
110
110
error: 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
112
112
|
113
113
LL | assert_eq!(CELL.get(), 6);
114
114
| ^^^^
0 commit comments