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/tree_borrows/reservedim_spurious_write.with.stderr
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -15,15 +15,15 @@ Thread 2 executing: write y
15
15
error: Undefined Behavior: write access through <TAG> at ALLOC[0x0] is forbidden
16
16
--> $DIR/reservedim_spurious_write.rs:LL:CC
17
17
|
18
-
LL | unsafe { *y.wrapping_sub(1) = 13 }
19
-
| ^^^^^^^^^^^^^^^^^^^^^^^ write access through <TAG> at ALLOC[0x0] is forbidden
18
+
LL | unsafe { *y = 13 }
19
+
| ^^^^^^^ write access through <TAG> at ALLOC[0x0] is forbidden
20
20
|
21
21
= help: this indicates a potential bug in the program: it performed an invalid operation, but the Tree Borrows rules it violated are still experimental
22
22
= help: the accessed tag <TAG> has state Disabled which forbids this child write access
23
23
help: the accessed tag <TAG> was created here, in the initial state Reserved
Copy file name to clipboardExpand all lines: src/tools/miri/tests/fail/tree_borrows/reservedim_spurious_write.without.stderr
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -15,15 +15,15 @@ Thread 2 executing: write y
15
15
error: Undefined Behavior: write access through <TAG> at ALLOC[0x0] is forbidden
16
16
--> $DIR/reservedim_spurious_write.rs:LL:CC
17
17
|
18
-
LL | unsafe { *y.wrapping_sub(1) = 13 }
19
-
| ^^^^^^^^^^^^^^^^^^^^^^^ write access through <TAG> at ALLOC[0x0] is forbidden
18
+
LL | unsafe { *y = 13 }
19
+
| ^^^^^^^ write access through <TAG> at ALLOC[0x0] is forbidden
20
20
|
21
21
= help: this indicates a potential bug in the program: it performed an invalid operation, but the Tree Borrows rules it violated are still experimental
22
22
= help: the accessed tag <TAG> has state Disabled which forbids this child write access
23
23
help: the accessed tag <TAG> was created here, in the initial state Reserved
help: the accessed tag <TAG> later transitioned to Disabled due to a protector release (acting as a foreign write access) on every location previously accessed by this tag
0 commit comments