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/zst_slice.stderr
+6-14
Original file line number
Diff line number
Diff line change
@@ -1,20 +1,12 @@
1
-
error: Undefined Behavior: trying to retag from <TAG> for SharedReadOnly permission at ALLOC[0x4], but that tag does not exist in the borrow stack for this location
= 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
-
= help: see https://github.com/rust-lang/unsafe-code-guidelines/blob/master/wip/stacked-borrows.md for further information
12
-
help: <TAG> would have been created here, but this is a zero-size retag ([0x0..0x0]) so the tag in question does not exist anywhere
13
-
--> $DIR/zst_slice.rs:LL:CC
14
-
|
15
-
LL | assert_eq!(*s.get_unchecked(1), 2);
16
-
| ^^^^^^^^^^^^^^^^^^
17
-
= note: BACKTRACE (of the first span):
7
+
= help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
8
+
= help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
9
+
= note: BACKTRACE:
18
10
= note: inside `core::slice::<impl [i32]>::get_unchecked::<usize>` at RUSTLIB/core/src/slice/mod.rs:LL:CC
0 commit comments