@@ -11,9 +11,8 @@ use crate::elaborate_drops::DropFlagState;
1111use crate :: framework:: SwitchIntEdgeEffects ;
1212use crate :: move_paths:: { HasMoveData , InitIndex , InitKind , LookupResult , MoveData , MovePathIndex } ;
1313use crate :: {
14- Analysis , AnalysisDomain , GenKill , MaybeReachable , drop_flag_effects,
15- drop_flag_effects_for_function_entry, drop_flag_effects_for_location, lattice,
16- on_all_children_bits, on_lookup_result_bits,
14+ Analysis , GenKill , MaybeReachable , drop_flag_effects, drop_flag_effects_for_function_entry,
15+ drop_flag_effects_for_location, lattice, on_all_children_bits, on_lookup_result_bits,
1716} ;
1817
1918/// `MaybeInitializedPlaces` tracks all places that might be
@@ -270,7 +269,7 @@ impl<'tcx> HasMoveData<'tcx> for EverInitializedPlaces<'_, 'tcx> {
270269
271270impl < ' a , ' tcx > MaybeInitializedPlaces < ' a , ' tcx > {
272271 fn update_bits (
273- trans : & mut <Self as AnalysisDomain < ' tcx > >:: Domain ,
272+ trans : & mut <Self as Analysis < ' tcx > >:: Domain ,
274273 path : MovePathIndex ,
275274 state : DropFlagState ,
276275 ) {
@@ -283,7 +282,7 @@ impl<'a, 'tcx> MaybeInitializedPlaces<'a, 'tcx> {
283282
284283impl < ' tcx > MaybeUninitializedPlaces < ' _ , ' tcx > {
285284 fn update_bits (
286- trans : & mut <Self as AnalysisDomain < ' tcx > >:: Domain ,
285+ trans : & mut <Self as Analysis < ' tcx > >:: Domain ,
287286 path : MovePathIndex ,
288287 state : DropFlagState ,
289288 ) {
@@ -296,7 +295,7 @@ impl<'tcx> MaybeUninitializedPlaces<'_, 'tcx> {
296295
297296impl < ' a , ' tcx > DefinitelyInitializedPlaces < ' a , ' tcx > {
298297 fn update_bits (
299- trans : & mut <Self as AnalysisDomain < ' tcx > >:: Domain ,
298+ trans : & mut <Self as Analysis < ' tcx > >:: Domain ,
300299 path : MovePathIndex ,
301300 state : DropFlagState ,
302301 ) {
@@ -307,7 +306,7 @@ impl<'a, 'tcx> DefinitelyInitializedPlaces<'a, 'tcx> {
307306 }
308307}
309308
310- impl < ' tcx > AnalysisDomain < ' tcx > for MaybeInitializedPlaces < ' _ , ' tcx > {
309+ impl < ' tcx > Analysis < ' tcx > for MaybeInitializedPlaces < ' _ , ' tcx > {
311310 /// There can be many more `MovePathIndex` than there are locals in a MIR body.
312311 /// We use a chunked bitset to avoid paying too high a memory footprint.
313312 type Domain = MaybeReachable < ChunkedBitSet < MovePathIndex > > ;
@@ -327,9 +326,7 @@ impl<'tcx> AnalysisDomain<'tcx> for MaybeInitializedPlaces<'_, 'tcx> {
327326 state. gen_ ( path) ;
328327 } ) ;
329328 }
330- }
331329
332- impl < ' tcx > Analysis < ' tcx > for MaybeInitializedPlaces < ' _ , ' tcx > {
333330 fn apply_statement_effect (
334331 & mut self ,
335332 trans : & mut Self :: Domain ,
@@ -436,7 +433,7 @@ impl<'tcx> Analysis<'tcx> for MaybeInitializedPlaces<'_, 'tcx> {
436433 }
437434}
438435
439- impl < ' tcx > AnalysisDomain < ' tcx > for MaybeUninitializedPlaces < ' _ , ' tcx > {
436+ impl < ' tcx > Analysis < ' tcx > for MaybeUninitializedPlaces < ' _ , ' tcx > {
440437 /// There can be many more `MovePathIndex` than there are locals in a MIR body.
441438 /// We use a chunked bitset to avoid paying too high a memory footprint.
442439 type Domain = ChunkedBitSet < MovePathIndex > ;
@@ -458,9 +455,7 @@ impl<'tcx> AnalysisDomain<'tcx> for MaybeUninitializedPlaces<'_, 'tcx> {
458455 state. remove ( path) ;
459456 } ) ;
460457 }
461- }
462458
463- impl < ' tcx > Analysis < ' tcx > for MaybeUninitializedPlaces < ' _ , ' tcx > {
464459 fn apply_statement_effect (
465460 & mut self ,
466461 trans : & mut Self :: Domain ,
@@ -559,7 +554,7 @@ impl<'tcx> Analysis<'tcx> for MaybeUninitializedPlaces<'_, 'tcx> {
559554 }
560555}
561556
562- impl < ' a , ' tcx > AnalysisDomain < ' tcx > for DefinitelyInitializedPlaces < ' a , ' tcx > {
557+ impl < ' a , ' tcx > Analysis < ' tcx > for DefinitelyInitializedPlaces < ' a , ' tcx > {
563558 /// Use set intersection as the join operator.
564559 type Domain = lattice:: Dual < BitSet < MovePathIndex > > ;
565560
@@ -579,9 +574,7 @@ impl<'a, 'tcx> AnalysisDomain<'tcx> for DefinitelyInitializedPlaces<'a, 'tcx> {
579574 state. 0 . insert ( path) ;
580575 } ) ;
581576 }
582- }
583577
584- impl < ' tcx > Analysis < ' tcx > for DefinitelyInitializedPlaces < ' _ , ' tcx > {
585578 fn apply_statement_effect (
586579 & mut self ,
587580 trans : & mut Self :: Domain ,
@@ -625,7 +618,7 @@ impl<'tcx> Analysis<'tcx> for DefinitelyInitializedPlaces<'_, 'tcx> {
625618 }
626619}
627620
628- impl < ' tcx > AnalysisDomain < ' tcx > for EverInitializedPlaces < ' _ , ' tcx > {
621+ impl < ' tcx > Analysis < ' tcx > for EverInitializedPlaces < ' _ , ' tcx > {
629622 /// There can be many more `InitIndex` than there are locals in a MIR body.
630623 /// We use a chunked bitset to avoid paying too high a memory footprint.
631624 type Domain = ChunkedBitSet < InitIndex > ;
@@ -642,9 +635,7 @@ impl<'tcx> AnalysisDomain<'tcx> for EverInitializedPlaces<'_, 'tcx> {
642635 state. insert ( InitIndex :: new ( arg_init) ) ;
643636 }
644637 }
645- }
646638
647- impl < ' tcx > Analysis < ' tcx > for EverInitializedPlaces < ' _ , ' tcx > {
648639 #[ instrument( skip( self , trans) , level = "debug" ) ]
649640 fn apply_statement_effect (
650641 & mut self ,
0 commit comments