11error: borrow of a named constant with interior mutability
2- --> tests/ui/borrow_interior_mutable_const.rs:35 :17
2+ --> tests/ui/borrow_interior_mutable_const.rs:36 :17
33 |
44LL | let _ = &C;
55 | ^^
@@ -12,7 +12,7 @@ LL | #![deny(clippy::borrow_interior_mutable_const)]
1212 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1313
1414error: borrow of a named constant with interior mutability
15- --> tests/ui/borrow_interior_mutable_const.rs:37 :17
15+ --> tests/ui/borrow_interior_mutable_const.rs:38 :17
1616 |
1717LL | let _ = C.get();
1818 | ^
@@ -21,23 +21,23 @@ LL | let _ = C.get();
2121 = help: this lint can be silenced by assigning the value to a local variable before borrowing
2222
2323error: borrow of a named constant with interior mutability
24- --> tests/ui/borrow_interior_mutable_const.rs:42 :17
24+ --> tests/ui/borrow_interior_mutable_const.rs:43 :17
2525 |
2626LL | let _ = &C;
2727 | ^^
2828 |
2929 = help: this lint can be silenced by assigning the value to a local variable before borrowing
3030
3131error: borrow of a named constant with interior mutability
32- --> tests/ui/borrow_interior_mutable_const.rs:43 :17
32+ --> tests/ui/borrow_interior_mutable_const.rs:44 :17
3333 |
3434LL | let _ = &mut C;
3535 | ^^^^^^
3636 |
3737 = help: this lint can be silenced by assigning the value to a local variable before borrowing
3838
3939error: borrow of a named constant with interior mutability
40- --> tests/ui/borrow_interior_mutable_const.rs:47 :9
40+ --> tests/ui/borrow_interior_mutable_const.rs:48 :9
4141 |
4242LL | C.swap(&local)
4343 | ^
@@ -46,31 +46,31 @@ LL | C.swap(&local)
4646 = help: this lint can be silenced by assigning the value to a local variable before borrowing
4747
4848error: borrow of a named constant with interior mutability
49- --> tests/ui/borrow_interior_mutable_const.rs:52 :17
49+ --> tests/ui/borrow_interior_mutable_const.rs:53 :17
5050 |
5151LL | let _ = &C;
5252 | ^^
5353 |
5454 = help: this lint can be silenced by assigning the value to a local variable before borrowing
5555
5656error: borrow of a named constant with interior mutability
57- --> tests/ui/borrow_interior_mutable_const.rs:53 :17
57+ --> tests/ui/borrow_interior_mutable_const.rs:54 :17
5858 |
5959LL | let _ = &C[0];
6060 | ^^^^^
6161 |
6262 = help: this lint can be silenced by assigning the value to a local variable before borrowing
6363
6464error: borrow of a named constant with interior mutability
65- --> tests/ui/borrow_interior_mutable_const.rs:54 :17
65+ --> tests/ui/borrow_interior_mutable_const.rs:55 :17
6666 |
6767LL | let _ = &C[0].0;
6868 | ^^^^^^^
6969 |
7070 = help: this lint can be silenced by assigning the value to a local variable before borrowing
7171
7272error: borrow of a named constant with interior mutability
73- --> tests/ui/borrow_interior_mutable_const.rs:55 :9
73+ --> tests/ui/borrow_interior_mutable_const.rs:56 :9
7474 |
7575LL | C[0].0.set(1);
7676 | ^^^^^^
@@ -79,23 +79,23 @@ LL | C[0].0.set(1);
7979 = help: this lint can be silenced by assigning the value to a local variable before borrowing
8080
8181error: borrow of a named constant with interior mutability
82- --> tests/ui/borrow_interior_mutable_const.rs:70 :17
82+ --> tests/ui/borrow_interior_mutable_const.rs:71 :17
8383 |
8484LL | let _ = &S::C;
8585 | ^^^^^
8686 |
8787 = help: this lint can be silenced by assigning the value to a local variable before borrowing
8888
8989error: borrow of a named constant with interior mutability
90- --> tests/ui/borrow_interior_mutable_const.rs:71 :17
90+ --> tests/ui/borrow_interior_mutable_const.rs:72 :17
9191 |
9292LL | let _ = &S::C.0;
9393 | ^^^^^^^
9494 |
9595 = help: this lint can be silenced by assigning the value to a local variable before borrowing
9696
9797error: borrow of a named constant with interior mutability
98- --> tests/ui/borrow_interior_mutable_const.rs:72 :9
98+ --> tests/ui/borrow_interior_mutable_const.rs:73 :9
9999 |
100100LL | S::C.set(1);
101101 | ^^^^
@@ -104,7 +104,7 @@ LL | S::C.set(1);
104104 = help: this lint can be silenced by assigning the value to a local variable before borrowing
105105
106106error: borrow of a named constant with interior mutability
107- --> tests/ui/borrow_interior_mutable_const.rs:73 :18
107+ --> tests/ui/borrow_interior_mutable_const.rs:74 :18
108108 |
109109LL | let _ = &*S::C;
110110 | ^^^^^
@@ -113,7 +113,7 @@ LL | let _ = &*S::C;
113113 = help: this lint can be silenced by assigning the value to a local variable before borrowing
114114
115115error: borrow of a named constant with interior mutability
116- --> tests/ui/borrow_interior_mutable_const.rs:74 :9
116+ --> tests/ui/borrow_interior_mutable_const.rs:75 :9
117117 |
118118LL | (*S::C).set(1);
119119 | ^^^^^^^
@@ -122,39 +122,39 @@ LL | (*S::C).set(1);
122122 = help: this lint can be silenced by assigning the value to a local variable before borrowing
123123
124124error: borrow of a named constant with interior mutability
125- --> tests/ui/borrow_interior_mutable_const.rs:85 :17
125+ --> tests/ui/borrow_interior_mutable_const.rs:86 :17
126126 |
127127LL | let _ = &CELL;
128128 | ^^^^^
129129 |
130130 = help: this lint can be silenced by assigning the value to a local variable before borrowing
131131
132132error: borrow of a named constant with interior mutability
133- --> tests/ui/borrow_interior_mutable_const.rs:109 :25
133+ --> tests/ui/borrow_interior_mutable_const.rs:110 :25
134134 |
135135LL | let _ = &Self::C;
136136 | ^^^^^^^^
137137 |
138138 = help: this lint can be silenced by assigning the value to a local variable before borrowing
139139
140140error: borrow of a named constant with interior mutability
141- --> tests/ui/borrow_interior_mutable_const.rs:112 :25
141+ --> tests/ui/borrow_interior_mutable_const.rs:113 :25
142142 |
143143LL | let _ = &Self::C.cell;
144144 | ^^^^^^^^^^^^^
145145 |
146146 = help: this lint can be silenced by assigning the value to a local variable before borrowing
147147
148148error: borrow of a named constant with interior mutability
149- --> tests/ui/borrow_interior_mutable_const.rs:113 :25
149+ --> tests/ui/borrow_interior_mutable_const.rs:114 :25
150150 |
151151LL | let _ = &Self::C.cell.0;
152152 | ^^^^^^^^^^^^^^^
153153 |
154154 = help: this lint can be silenced by assigning the value to a local variable before borrowing
155155
156156error: borrow of a named constant with interior mutability
157- --> tests/ui/borrow_interior_mutable_const.rs:114 :17
157+ --> tests/ui/borrow_interior_mutable_const.rs:115 :17
158158 |
159159LL | Self::C.cell.0.set(T::DEFAULT);
160160 | ^^^^^^^^^^^^^^
@@ -163,31 +163,31 @@ LL | Self::C.cell.0.set(T::DEFAULT);
163163 = help: this lint can be silenced by assigning the value to a local variable before borrowing
164164
165165error: borrow of a named constant with interior mutability
166- --> tests/ui/borrow_interior_mutable_const.rs:128 :17
166+ --> tests/ui/borrow_interior_mutable_const.rs:129 :17
167167 |
168168LL | let _ = &u32::VALUE;
169169 | ^^^^^^^^^^^
170170 |
171171 = help: this lint can be silenced by assigning the value to a local variable before borrowing
172172
173173error: borrow of a named constant with interior mutability
174- --> tests/ui/borrow_interior_mutable_const.rs:145 :21
174+ --> tests/ui/borrow_interior_mutable_const.rs:146 :21
175175 |
176176LL | let _ = &<u32 as Trait<T>>::VALUE;
177177 | ^^^^^^^^^^^^^^^^^^^^^^^^^
178178 |
179179 = help: this lint can be silenced by assigning the value to a local variable before borrowing
180180
181181error: borrow of a named constant with interior mutability
182- --> tests/ui/borrow_interior_mutable_const.rs:172 :17
182+ --> tests/ui/borrow_interior_mutable_const.rs:173 :17
183183 |
184184LL | let _ = &C;
185185 | ^^
186186 |
187187 = help: this lint can be silenced by assigning the value to a local variable before borrowing
188188
189189error: borrow of a named constant with interior mutability
190- --> tests/ui/borrow_interior_mutable_const.rs:173 :18
190+ --> tests/ui/borrow_interior_mutable_const.rs:174 :18
191191 |
192192LL | let _ = &C[0];
193193 | ^^^^
@@ -196,47 +196,47 @@ LL | let _ = &C[0];
196196 = help: this lint can be silenced by assigning the value to a local variable before borrowing
197197
198198error: borrow of a named constant with interior mutability
199- --> tests/ui/borrow_interior_mutable_const.rs:174 :17
199+ --> tests/ui/borrow_interior_mutable_const.rs:175 :17
200200 |
201201LL | let _ = &C.0[0];
202202 | ^^^^^^^
203203 |
204204 = help: this lint can be silenced by assigning the value to a local variable before borrowing
205205
206206error: borrow of a named constant with interior mutability
207- --> tests/ui/borrow_interior_mutable_const.rs:190 :17
207+ --> tests/ui/borrow_interior_mutable_const.rs:191 :17
208208 |
209209LL | let _ = &C[1];
210210 | ^^^^^
211211 |
212212 = help: this lint can be silenced by assigning the value to a local variable before borrowing
213213
214214error: borrow of a named constant with interior mutability
215- --> tests/ui/borrow_interior_mutable_const.rs:194 :21
215+ --> tests/ui/borrow_interior_mutable_const.rs:195 :21
216216 |
217217LL | let _ = &C[i];
218218 | ^^^^^
219219 |
220220 = help: this lint can be silenced by assigning the value to a local variable before borrowing
221221
222222error: borrow of a named constant with interior mutability
223- --> tests/ui/borrow_interior_mutable_const.rs:198 :17
223+ --> tests/ui/borrow_interior_mutable_const.rs:199 :17
224224 |
225225LL | let _ = &interior_mutable_const::WRAPPED_PRIVATE_UNFROZEN_VARIANT;
226226 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
227227 |
228228 = help: this lint can be silenced by assigning the value to a local variable before borrowing
229229
230230error: borrow of a named constant with interior mutability
231- --> tests/ui/borrow_interior_mutable_const.rs:216 :17
231+ --> tests/ui/borrow_interior_mutable_const.rs:217 :17
232232 |
233233LL | let _ = &S::VALUE;
234234 | ^^^^^^^^^
235235 |
236236 = help: this lint can be silenced by assigning the value to a local variable before borrowing
237237
238238error: borrow of a named constant with interior mutability
239- --> tests/ui/borrow_interior_mutable_const.rs:218 :17
239+ --> tests/ui/borrow_interior_mutable_const.rs:219 :17
240240 |
241241LL | let _ = &S::VALUE.1;
242242 | ^^^^^^^^^^^
0 commit comments