1- use rustc_index:: bit_set:: { BitSet , ChunkedBitSet } ;
1+ use rustc_index:: bit_set:: BitSet ;
22use rustc_index:: Idx ;
33use rustc_middle:: mir:: { self , Body , CallReturnPlaces , Location , TerminatorEdges } ;
44use rustc_middle:: ty:: { self , TyCtxt } ;
@@ -68,7 +68,7 @@ impl<'a, 'tcx> MaybeInitializedPlaces<'a, 'tcx> {
6868 pub fn is_unwind_dead (
6969 & self ,
7070 place : mir:: Place < ' tcx > ,
71- state : & MaybeReachable < ChunkedBitSet < MovePathIndex > > ,
71+ state : & MaybeReachable < BitSet < MovePathIndex > > ,
7272 ) -> bool {
7373 if let LookupResult :: Exact ( path) = self . move_data ( ) . rev_lookup . find ( place. as_ref ( ) ) {
7474 let mut maybe_live = false ;
@@ -308,7 +308,7 @@ impl<'a, 'tcx> DefinitelyInitializedPlaces<'a, 'tcx> {
308308}
309309
310310impl < ' tcx > AnalysisDomain < ' tcx > for MaybeInitializedPlaces < ' _ , ' tcx > {
311- type Domain = MaybeReachable < ChunkedBitSet < MovePathIndex > > ;
311+ type Domain = MaybeReachable < BitSet < MovePathIndex > > ;
312312 const NAME : & ' static str = "maybe_init" ;
313313
314314 fn bottom_value ( & self , _: & mir:: Body < ' tcx > ) -> Self :: Domain {
@@ -317,8 +317,7 @@ impl<'tcx> AnalysisDomain<'tcx> for MaybeInitializedPlaces<'_, 'tcx> {
317317 }
318318
319319 fn initialize_start_block ( & self , _: & mir:: Body < ' tcx > , state : & mut Self :: Domain ) {
320- * state =
321- MaybeReachable :: Reachable ( ChunkedBitSet :: new_empty ( self . move_data ( ) . move_paths . len ( ) ) ) ;
320+ * state = MaybeReachable :: Reachable ( BitSet :: new_empty ( self . move_data ( ) . move_paths . len ( ) ) ) ;
322321 drop_flag_effects_for_function_entry ( self . tcx , self . body , self . mdpe , |path, s| {
323322 assert ! ( s == DropFlagState :: Present ) ;
324323 state. gen ( path) ;
@@ -444,13 +443,13 @@ impl<'tcx> GenKillAnalysis<'tcx> for MaybeInitializedPlaces<'_, 'tcx> {
444443}
445444
446445impl < ' tcx > AnalysisDomain < ' tcx > for MaybeUninitializedPlaces < ' _ , ' tcx > {
447- type Domain = ChunkedBitSet < MovePathIndex > ;
446+ type Domain = BitSet < MovePathIndex > ;
448447
449448 const NAME : & ' static str = "maybe_uninit" ;
450449
451450 fn bottom_value ( & self , _: & mir:: Body < ' tcx > ) -> Self :: Domain {
452451 // bottom = initialized (start_block_effect counters this at outset)
453- ChunkedBitSet :: new_empty ( self . move_data ( ) . move_paths . len ( ) )
452+ BitSet :: new_empty ( self . move_data ( ) . move_paths . len ( ) )
454453 }
455454
456455 // sets on_entry bits for Arg places
@@ -649,13 +648,13 @@ impl<'tcx> GenKillAnalysis<'tcx> for DefinitelyInitializedPlaces<'_, 'tcx> {
649648}
650649
651650impl < ' tcx > AnalysisDomain < ' tcx > for EverInitializedPlaces < ' _ , ' tcx > {
652- type Domain = ChunkedBitSet < InitIndex > ;
651+ type Domain = BitSet < InitIndex > ;
653652
654653 const NAME : & ' static str = "ever_init" ;
655654
656655 fn bottom_value ( & self , _: & mir:: Body < ' tcx > ) -> Self :: Domain {
657656 // bottom = no initialized variables by default
658- ChunkedBitSet :: new_empty ( self . move_data ( ) . inits . len ( ) )
657+ BitSet :: new_empty ( self . move_data ( ) . inits . len ( ) )
659658 }
660659
661660 fn initialize_start_block ( & self , body : & mir:: Body < ' tcx > , state : & mut Self :: Domain ) {
0 commit comments