You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/tools/miri/tests/fail/stacked_borrows/interior_mut2.stderr
+8-8Lines changed: 8 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -1,11 +1,11 @@
1
1
error: Undefined Behavior: trying to retag from <TAG> for SharedReadWrite permission at ALLOC[0x0], but that tag does not exist in the borrow stack for this location
| trying to retag from <TAG> for SharedReadWrite permission at ALLOC[0x0], but that tag does not exist in the borrow stack for this location
8
-
| this error occurs as part of retag at ALLOC[0x0..0x4]
4
+
LL | let _val = *unsafe_cell_get(inner_shr);
5
+
| ^^^^^^^^^
6
+
| |
7
+
| trying to retag from <TAG> for SharedReadWrite permission at ALLOC[0x0], but that tag does not exist in the borrow stack for this location
8
+
| this error occurs as part of retag at ALLOC[0x0..0x4]
9
9
|
10
10
= help: this indicates a potential bug in the program: it performed an invalid operation, but the Stacked Borrows rules it violated are still experimental
11
11
= help: see https://github.com/rust-lang/unsafe-code-guidelines/blob/master/wip/stacked-borrows.md for further information
@@ -14,11 +14,11 @@ help: <TAG> was created by a SharedReadWrite retag at offsets [0x0..0x4]
14
14
|
15
15
LL | let inner_shr = &*inner_uniq;
16
16
| ^^^^^^^^^^^^
17
-
help: <TAG> was later invalidated at offsets [0x0..0x4] by a write access
17
+
help: <TAG> was later invalidated at offsets [0x0..0x4] by a read access
0 commit comments