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
Rollup merge of #124030 - RalfJung:adjust_alloc_base_pointer, r=oli-obk
interpret: pass MemoryKind to adjust_alloc_base_pointer
Another puzzle piece for #3475.
The 2nd commit renames base_pointer -> root_pointer; that's how Tree Borrows already calls them and I think the term is more clear than "base pointer". In particular, this distinguishes it from "base address", since a root pointer can point anywhere into an allocation, not just its base address.
rust-lang/rust#124018 has been rolled up already so I couldn't add it there any more.
r? ```@oli-obk```
Copy file name to clipboardExpand all lines: tests/fail/both_borrows/invalidate_against_protector3.stack.stderr
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ LL | unsafe { *x = 0 };
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
9
-
help: <TAG> was created here, as the base tag for ALLOC
9
+
help: <TAG> was created here, as the root tag for ALLOC
10
10
--> $DIR/invalidate_against_protector3.rs:LL:CC
11
11
|
12
12
LL | let ptr = alloc(Layout::for_value(&0i32)) as *mut i32;
0 commit comments