We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 15e81a9 commit efd582cCopy full SHA for efd582c
src/stacked_borrows.rs
@@ -513,8 +513,14 @@ impl Stacks {
513
| MiriMemoryKind::Tls
514
| MiriMemoryKind::Env,
515
) => (extra.global_base_ptr(id), Permission::SharedReadWrite),
516
- // Everything else we handle like raw pointers for now.
517
- _ => {
+ // Everything else we only track precisely when raw pointers are tagged, for now.
+ MemoryKind::CallerLocation
518
+ | MemoryKind::Machine(
519
+ MiriMemoryKind::Rust
520
+ | MiriMemoryKind::C
521
+ | MiriMemoryKind::WinHeap
522
+ | MiriMemoryKind::Machine,
523
+ ) => {
524
let tag =
525
if extra.track_raw { Tag::Tagged(extra.new_ptr()) } else { Tag::Untagged };
526
(tag, Permission::SharedReadWrite)
0 commit comments