@@ -157,15 +157,13 @@ pub struct LiveAllocs<'a, 'mir, 'tcx> {
157157
158158impl LiveAllocs < ' _ , ' _ , ' _ > {
159159 pub fn is_live ( & self , id : AllocId ) -> bool {
160- self . collected . contains ( & id) ||
161- self . ecx . is_alloc_live ( id)
160+ self . collected . contains ( & id) || self . ecx . is_alloc_live ( id)
162161 }
163162}
164163
165164impl < ' mir , ' tcx : ' mir > EvalContextExt < ' mir , ' tcx > for crate :: MiriInterpCx < ' mir , ' tcx > { }
166165pub trait EvalContextExt < ' mir , ' tcx : ' mir > : MiriInterpCxExt < ' mir , ' tcx > {
167166 fn run_provenance_gc ( & mut self ) {
168-
169167 // We collect all tags from various parts of the interpreter, but also
170168 let this = self . eval_context_mut ( ) ;
171169
@@ -196,10 +194,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: MiriInterpCxExt<'mir, 'tcx> {
196194
197195 fn remove_unreachable_allocs ( & mut self , allocs : FxHashSet < AllocId > ) {
198196 let this = self . eval_context_ref ( ) ;
199- let allocs = LiveAllocs {
200- ecx : this,
201- collected : allocs,
202- } ;
197+ let allocs = LiveAllocs { ecx : this, collected : allocs } ;
203198 this. machine . allocation_spans . borrow_mut ( ) . retain ( |id, _| allocs. is_live ( * id) ) ;
204199 this. machine . intptrcast . borrow_mut ( ) . remove_unreachable_allocs ( & allocs) ;
205200 if let Some ( borrow_tracker) = & this. machine . borrow_tracker {
0 commit comments