11warning: mutation of an interior mutable `const` item with call to `force`
2- --> $DIR/const-item-interior-mutations-const-cell.rs:16 :13
2+ --> $DIR/const-item-interior-mutations-const-cell.rs:15 :13
33 |
44LL | let _ = LazyCell::force(&A);
55 | ^^^^^^^^^^^^^^^^^-^
@@ -17,7 +17,7 @@ LL + static A: LazyCell<i32> = LazyCell::new(|| 0);
1717 |
1818
1919warning: mutation of an interior mutable `const` item with call to `set`
20- --> $DIR/const-item-interior-mutations-const-cell.rs:23 :13
20+ --> $DIR/const-item-interior-mutations-const-cell.rs:22 :13
2121 |
2222LL | let _ = A.set(10);
2323 | -^^^^^^^^
@@ -34,7 +34,7 @@ LL + static A: OnceCell<i32> = OnceCell::new();
3434 |
3535
3636warning: mutation of an interior mutable `const` item with call to `try_insert`
37- --> $DIR/const-item-interior-mutations-const-cell.rs:26 :13
37+ --> $DIR/const-item-interior-mutations-const-cell.rs:25 :13
3838 |
3939LL | let _ = A.try_insert(20);
4040 | -^^^^^^^^^^^^^^^
@@ -51,7 +51,7 @@ LL + static A: OnceCell<i32> = OnceCell::new();
5151 |
5252
5353warning: mutation of an interior mutable `const` item with call to `get_or_init`
54- --> $DIR/const-item-interior-mutations-const-cell.rs:29 :13
54+ --> $DIR/const-item-interior-mutations-const-cell.rs:28 :13
5555 |
5656LL | let _ = A.get_or_init(|| 30);
5757 | -^^^^^^^^^^^^^^^^^^^
@@ -68,7 +68,7 @@ LL + static A: OnceCell<i32> = OnceCell::new();
6868 |
6969
7070warning: mutation of an interior mutable `const` item with call to `get_or_try_init`
71- --> $DIR/const-item-interior-mutations-const-cell.rs:32 :13
71+ --> $DIR/const-item-interior-mutations-const-cell.rs:31 :13
7272 |
7373LL | let _ = A.get_or_try_init(|| Ok::<_, ()>(40));
7474 | -^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -85,7 +85,7 @@ LL + static A: OnceCell<i32> = OnceCell::new();
8585 |
8686
8787warning: mutation of an interior mutable `const` item with call to `set`
88- --> $DIR/const-item-interior-mutations-const-cell.rs:39 :13
88+ --> $DIR/const-item-interior-mutations-const-cell.rs:38 :13
8989 |
9090LL | let _ = A.set(1);
9191 | -^^^^^^^
@@ -102,7 +102,7 @@ LL + static A: Cell<i32> = Cell::new(0);
102102 |
103103
104104warning: mutation of an interior mutable `const` item with call to `swap`
105- --> $DIR/const-item-interior-mutations-const-cell.rs:42 :13
105+ --> $DIR/const-item-interior-mutations-const-cell.rs:41 :13
106106 |
107107LL | let _ = A.swap(&A);
108108 | -^^^^^^^^^
@@ -119,7 +119,7 @@ LL + static A: Cell<i32> = Cell::new(0);
119119 |
120120
121121warning: mutation of an interior mutable `const` item with call to `replace`
122- --> $DIR/const-item-interior-mutations-const-cell.rs:45 :13
122+ --> $DIR/const-item-interior-mutations-const-cell.rs:44 :13
123123 |
124124LL | let _ = A.replace(2);
125125 | -^^^^^^^^^^^
@@ -136,7 +136,7 @@ LL + static A: Cell<i32> = Cell::new(0);
136136 |
137137
138138warning: mutation of an interior mutable `const` item with call to `get`
139- --> $DIR/const-item-interior-mutations-const-cell.rs:48 :13
139+ --> $DIR/const-item-interior-mutations-const-cell.rs:47 :13
140140 |
141141LL | let _ = A.get();
142142 | -^^^^^^
@@ -153,7 +153,7 @@ LL + static A: Cell<i32> = Cell::new(0);
153153 |
154154
155155warning: mutation of an interior mutable `const` item with call to `update`
156- --> $DIR/const-item-interior-mutations-const-cell.rs:51 :13
156+ --> $DIR/const-item-interior-mutations-const-cell.rs:50 :13
157157 |
158158LL | let _ = A.update(|x| x + 1);
159159 | -^^^^^^^^^^^^^^^^^^
@@ -170,7 +170,7 @@ LL + static A: Cell<i32> = Cell::new(0);
170170 |
171171
172172warning: mutation of an interior mutable `const` item with call to `replace`
173- --> $DIR/const-item-interior-mutations-const-cell.rs:58 :13
173+ --> $DIR/const-item-interior-mutations-const-cell.rs:57 :13
174174 |
175175LL | let _ = A.replace(1);
176176 | -^^^^^^^^^^^
@@ -187,7 +187,7 @@ LL + static A: RefCell<i32> = RefCell::new(0);
187187 |
188188
189189warning: mutation of an interior mutable `const` item with call to `replace_with`
190- --> $DIR/const-item-interior-mutations-const-cell.rs:61 :13
190+ --> $DIR/const-item-interior-mutations-const-cell.rs:60 :13
191191 |
192192LL | let _ = A.replace_with(|x| *x + 2);
193193 | -^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -204,7 +204,7 @@ LL + static A: RefCell<i32> = RefCell::new(0);
204204 |
205205
206206warning: mutation of an interior mutable `const` item with call to `swap`
207- --> $DIR/const-item-interior-mutations-const-cell.rs:64 :13
207+ --> $DIR/const-item-interior-mutations-const-cell.rs:63 :13
208208 |
209209LL | let _ = A.swap(&A);
210210 | -^^^^^^^^^
@@ -221,7 +221,7 @@ LL + static A: RefCell<i32> = RefCell::new(0);
221221 |
222222
223223warning: mutation of an interior mutable `const` item with call to `borrow`
224- --> $DIR/const-item-interior-mutations-const-cell.rs:67 :13
224+ --> $DIR/const-item-interior-mutations-const-cell.rs:66 :13
225225 |
226226LL | let _ = A.borrow();
227227 | -^^^^^^^^^
@@ -238,7 +238,7 @@ LL + static A: RefCell<i32> = RefCell::new(0);
238238 |
239239
240240warning: mutation of an interior mutable `const` item with call to `try_borrow`
241- --> $DIR/const-item-interior-mutations-const-cell.rs:70 :13
241+ --> $DIR/const-item-interior-mutations-const-cell.rs:69 :13
242242 |
243243LL | let _ = A.try_borrow();
244244 | -^^^^^^^^^^^^^
@@ -255,7 +255,7 @@ LL + static A: RefCell<i32> = RefCell::new(0);
255255 |
256256
257257warning: mutation of an interior mutable `const` item with call to `borrow_mut`
258- --> $DIR/const-item-interior-mutations-const-cell.rs:73 :13
258+ --> $DIR/const-item-interior-mutations-const-cell.rs:72 :13
259259 |
260260LL | let _ = A.borrow_mut();
261261 | -^^^^^^^^^^^^^
@@ -272,7 +272,7 @@ LL + static A: RefCell<i32> = RefCell::new(0);
272272 |
273273
274274warning: mutation of an interior mutable `const` item with call to `try_borrow_mut`
275- --> $DIR/const-item-interior-mutations-const-cell.rs:76 :13
275+ --> $DIR/const-item-interior-mutations-const-cell.rs:75 :13
276276 |
277277LL | let _ = A.try_borrow_mut();
278278 | -^^^^^^^^^^^^^^^^^
@@ -289,7 +289,7 @@ LL + static A: RefCell<i32> = RefCell::new(0);
289289 |
290290
291291warning: mutation of an interior mutable `const` item with call to `replace`
292- --> $DIR/const-item-interior-mutations-const-cell.rs:83 :22
292+ --> $DIR/const-item-interior-mutations-const-cell.rs:82 :22
293293 |
294294LL | let _ = unsafe { A.replace(1) };
295295 | -^^^^^^^^^^^
@@ -306,7 +306,7 @@ LL + static A: UnsafeCell<i32> = UnsafeCell::new(0);
306306 |
307307
308308warning: mutation of an interior mutable `const` item with call to `get`
309- --> $DIR/const-item-interior-mutations-const-cell.rs:86 :13
309+ --> $DIR/const-item-interior-mutations-const-cell.rs:85 :13
310310 |
311311LL | let _ = A.get();
312312 | -^^^^^^
@@ -323,7 +323,7 @@ LL + static A: UnsafeCell<i32> = UnsafeCell::new(0);
323323 |
324324
325325warning: mutation of an interior mutable `const` item with call to `as_ref_unchecked`
326- --> $DIR/const-item-interior-mutations-const-cell.rs:90 :17
326+ --> $DIR/const-item-interior-mutations-const-cell.rs:89 :17
327327 |
328328LL | let _ = A.as_ref_unchecked();
329329 | -^^^^^^^^^^^^^^^^^^^
@@ -340,7 +340,7 @@ LL + static A: UnsafeCell<i32> = UnsafeCell::new(0);
340340 |
341341
342342warning: mutation of an interior mutable `const` item with call to `as_mut_unchecked`
343- --> $DIR/const-item-interior-mutations-const-cell.rs:93 :17
343+ --> $DIR/const-item-interior-mutations-const-cell.rs:92 :17
344344 |
345345LL | let _ = A.as_mut_unchecked();
346346 | -^^^^^^^^^^^^^^^^^^^
@@ -357,7 +357,7 @@ LL + static A: UnsafeCell<i32> = UnsafeCell::new(0);
357357 |
358358
359359warning: mutation of an interior mutable `const` item with call to `get`
360- --> $DIR/const-item-interior-mutations-const-cell.rs:101 :13
360+ --> $DIR/const-item-interior-mutations-const-cell.rs:100 :13
361361 |
362362LL | let _ = A.get();
363363 | -^^^^^^
0 commit comments