@@ -228,7 +228,7 @@ struct TransformVisitor<'tcx> {
228228 suspension_points : Vec < SuspensionPoint < ' tcx > > ,
229229
230230 // The set of locals that have no `StorageLive`/`StorageDead` annotations.
231- always_live_locals : storage :: AlwaysLiveLocals ,
231+ always_live_locals : BitSet < Local > ,
232232
233233 // The original RETURN_PLACE local
234234 new_ret_local : Local ,
@@ -450,7 +450,7 @@ struct LivenessInfo {
450450fn locals_live_across_suspend_points < ' tcx > (
451451 tcx : TyCtxt < ' tcx > ,
452452 body : & Body < ' tcx > ,
453- always_live_locals : & storage :: AlwaysLiveLocals ,
453+ always_live_locals : & BitSet < Local > ,
454454 movable : bool ,
455455) -> LivenessInfo {
456456 let body_ref: & Body < ' _ > = & body;
@@ -615,7 +615,7 @@ impl ops::Deref for GeneratorSavedLocals {
615615fn compute_storage_conflicts < ' mir , ' tcx > (
616616 body : & ' mir Body < ' tcx > ,
617617 saved_locals : & GeneratorSavedLocals ,
618- always_live_locals : storage :: AlwaysLiveLocals ,
618+ always_live_locals : BitSet < Local > ,
619619 requires_storage : rustc_mir_dataflow:: Results < ' tcx , MaybeRequiresStorage < ' mir , ' tcx > > ,
620620) -> BitMatrix < GeneratorSavedLocal , GeneratorSavedLocal > {
621621 assert_eq ! ( body. local_decls. len( ) , saved_locals. domain_size( ) ) ;
@@ -625,7 +625,7 @@ fn compute_storage_conflicts<'mir, 'tcx>(
625625
626626 // Locals that are always live or ones that need to be stored across
627627 // suspension points are not eligible for overlap.
628- let mut ineligible_locals = always_live_locals. into_inner ( ) ;
628+ let mut ineligible_locals = always_live_locals;
629629 ineligible_locals. intersect ( & * * saved_locals) ;
630630
631631 // Compute the storage conflicts for all eligible locals.
@@ -1300,7 +1300,7 @@ impl<'tcx> MirPass<'tcx> for StateTransform {
13001300 } ,
13011301 ) ;
13021302
1303- let always_live_locals = storage:: AlwaysLiveLocals :: new ( & body) ;
1303+ let always_live_locals = storage:: always_live_locals ( & body) ;
13041304
13051305 let liveness_info =
13061306 locals_live_across_suspend_points ( tcx, body, & always_live_locals, movable) ;
0 commit comments