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: tests/fail/box-cell-alias.stderr
+5-5
Original file line number
Diff line number
Diff line change
@@ -1,11 +1,11 @@
1
1
error: Undefined Behavior: trying to reborrow <TAG> for SharedReadWrite permission at ALLOC[0x0], but that tag does not exist in the borrow stack for this location
2
2
--> $DIR/box-cell-alias.rs:LL:CC
3
3
|
4
-
LL | (*ptr).set(20);
5
-
| ^^^^^^^^^^^^^^
6
-
| |
7
-
| trying to reborrow <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 a reborrow at ALLOC[0x0..0x1]
4
+
LL | unsafe { (*ptr).set(20) };
5
+
| ^^^^^^^^^^^^^^
6
+
| |
7
+
| trying to reborrow <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 a reborrow at ALLOC[0x0..0x1]
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
Copy file name to clipboardexpand all lines: tests/fail/stacked_borrows/illegal_write2.stderr
+5-5
Original file line number
Diff line number
Diff line change
@@ -1,11 +1,11 @@
1
1
error: Undefined Behavior: attempting a write access using <untagged> at ALLOC[0x0], but that tag does not exist in the borrow stack for this location
2
2
--> $DIR/illegal_write2.rs:LL:CC
3
3
|
4
-
LL | *target2 = 13;
5
-
| ^^^^^^^^^^^^^
6
-
| |
7
-
| attempting a write access using <untagged> at ALLOC[0x0], but that tag does not exist in the borrow stack for this location
8
-
| this error occurs as part of an access at ALLOC[0x0..0x4]
4
+
LL | unsafe { *target2 = 13 };
5
+
| ^^^^^^^^^^^^^
6
+
| |
7
+
| attempting a write access using <untagged> at ALLOC[0x0], but that tag does not exist in the borrow stack for this location
8
+
| this error occurs as part of an access 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
Copy file name to clipboardexpand all lines: tests/fail/stacked_borrows/illegal_write3.stderr
+5-5
Original file line number
Diff line number
Diff line change
@@ -1,11 +1,11 @@
1
1
error: Undefined Behavior: attempting a write access using <untagged> at ALLOC[0x0], but that tag only grants SharedReadOnly permission for this location
2
2
--> $DIR/illegal_write3.rs:LL:CC
3
3
|
4
-
LL | *ptr = 42;
5
-
| ^^^^^^^^^
6
-
| |
7
-
| attempting a write access using <untagged> at ALLOC[0x0], but that tag only grants SharedReadOnly permission for this location
8
-
| this error occurs as part of an access at ALLOC[0x0..0x4]
4
+
LL | unsafe { *ptr = 42 };
5
+
| ^^^^^^^^^
6
+
| |
7
+
| attempting a write access using <untagged> at ALLOC[0x0], but that tag only grants SharedReadOnly permission for this location
8
+
| this error occurs as part of an access 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
Copy file name to clipboardexpand all lines: tests/fail/stacked_borrows/illegal_write6.stderr
+3-4
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,8 @@
1
1
error: Undefined Behavior: not granting access to tag <untagged> because incompatible item is protected: [Unique for <TAG> (call ID)]
2
2
--> $DIR/illegal_write6.rs:LL:CC
3
3
|
4
-
LL | *y = 2;
5
-
| ^^^^^^ not granting access to tag <untagged> because incompatible item is protected: [Unique for <TAG> (call ID)]
4
+
LL | unsafe { *y = 2 };
5
+
| ^^^^^^ not granting access to tag <untagged> because incompatible item is protected: [Unique for <TAG> (call ID)]
6
6
|
7
7
= help: this indicates a potential bug in the program: it performed an invalid operation, but the Stacked Borrows rules it violated are still experimental
8
8
= help: see https://github.com/rust-lang/unsafe-code-guidelines/blob/master/wip/stacked-borrows.md for further information
@@ -22,8 +22,7 @@ help: this protector is live for this call
Copy file name to clipboardexpand all lines: tests/fail/stacked_borrows/raw_tracking.stderr
+5-5
Original file line number
Diff line number
Diff line change
@@ -1,11 +1,11 @@
1
1
error: Undefined Behavior: attempting a write access using <TAG> at ALLOC[0x0], but that tag does not exist in the borrow stack for this location
2
2
--> $DIR/raw_tracking.rs:LL:CC
3
3
|
4
-
LL | *raw1 = 13;
5
-
| ^^^^^^^^^^
6
-
| |
7
-
| attempting a write access using <TAG> at ALLOC[0x0], but that tag does not exist in the borrow stack for this location
8
-
| this error occurs as part of an access at ALLOC[0x0..0x4]
4
+
LL | unsafe { *raw1 = 13 };
5
+
| ^^^^^^^^^^
6
+
| |
7
+
| attempting a write access using <TAG> at ALLOC[0x0], but that tag does not exist in the borrow stack for this location
8
+
| this error occurs as part of an access 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
Copy file name to clipboardexpand all lines: tests/fail/stacked_borrows/transmute-is-no-escape.stderr
+5-5
Original file line number
Diff line number
Diff line change
@@ -1,11 +1,11 @@
1
1
error: Undefined Behavior: attempting a write access using <untagged> at ALLOC[0x0], but that tag does not exist in the borrow stack for this location
2
2
--> $DIR/transmute-is-no-escape.rs:LL:CC
3
3
|
4
-
LL | *raw = 13;
5
-
| ^^^^^^^^^
6
-
| |
7
-
| attempting a write access using <untagged> at ALLOC[0x0], but that tag does not exist in the borrow stack for this location
8
-
| this error occurs as part of an access at ALLOC[0x0..0x4]
4
+
LL | unsafe { *raw = 13 };
5
+
| ^^^^^^^^^
6
+
| |
7
+
| attempting a write access using <untagged> at ALLOC[0x0], but that tag does not exist in the borrow stack for this location
8
+
| this error occurs as part of an access 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
0 commit comments