This commit is contained in:
Ralf Jung 2023-11-25 08:03:51 +01:00
parent a4a294aa8d
commit 2df4fc0e8b

View File

@ -194,10 +194,7 @@ fn remove_unreachable_tags(&mut self, tags: FxHashSet<BorTag>) {
fn remove_unreachable_allocs(&mut self, allocs: FxHashSet<AllocId>) {
let this = self.eval_context_mut();
let allocs = LiveAllocs {
ecx: this,
collected: allocs,
};
let allocs = LiveAllocs { ecx: this, collected: allocs };
this.machine.allocation_spans.borrow_mut().retain(|id, _| allocs.is_live(*id));
this.machine.intptrcast.borrow_mut().remove_unreachable_allocs(&allocs);
if let Some(borrow_tracker) = &this.machine.borrow_tracker {