@@ -26,15 +26,14 @@ use dataflow::move_paths::HasMoveData;
2626use dataflow:: Borrows ;
2727use dataflow:: { EverInitializedPlaces , MovingOutStatements } ;
2828use dataflow:: { FlowAtLocation , FlowsAtLocation } ;
29- use dataflow:: { MaybeInitializedPlaces , MaybeUninitializedPlaces } ;
29+ use dataflow:: MaybeUninitializedPlaces ;
3030use either:: Either ;
3131use std:: fmt;
3232use std:: rc:: Rc ;
3333
3434// (forced to be `pub` due to its use as an associated type below.)
3535crate struct Flows < ' b , ' gcx : ' tcx , ' tcx : ' b > {
3636 borrows : FlowAtLocation < Borrows < ' b , ' gcx , ' tcx > > ,
37- pub inits : FlowAtLocation < MaybeInitializedPlaces < ' b , ' gcx , ' tcx > > ,
3837 pub uninits : FlowAtLocation < MaybeUninitializedPlaces < ' b , ' gcx , ' tcx > > ,
3938 pub move_outs : FlowAtLocation < MovingOutStatements < ' b , ' gcx , ' tcx > > ,
4039 pub ever_inits : FlowAtLocation < EverInitializedPlaces < ' b , ' gcx , ' tcx > > ,
@@ -46,15 +45,13 @@ crate struct Flows<'b, 'gcx: 'tcx, 'tcx: 'b> {
4645impl < ' b , ' gcx , ' tcx > Flows < ' b , ' gcx , ' tcx > {
4746 crate fn new (
4847 borrows : FlowAtLocation < Borrows < ' b , ' gcx , ' tcx > > ,
49- inits : FlowAtLocation < MaybeInitializedPlaces < ' b , ' gcx , ' tcx > > ,
5048 uninits : FlowAtLocation < MaybeUninitializedPlaces < ' b , ' gcx , ' tcx > > ,
5149 move_outs : FlowAtLocation < MovingOutStatements < ' b , ' gcx , ' tcx > > ,
5250 ever_inits : FlowAtLocation < EverInitializedPlaces < ' b , ' gcx , ' tcx > > ,
5351 polonius_output : Option < Rc < Output < RegionVid , BorrowIndex , LocationIndex > > > ,
5452 ) -> Self {
5553 Flows {
5654 borrows,
57- inits,
5855 uninits,
5956 move_outs,
6057 ever_inits,
@@ -81,7 +78,6 @@ impl<'b, 'gcx, 'tcx> Flows<'b, 'gcx, 'tcx> {
8178macro_rules! each_flow {
8279 ( $this: ident, $meth: ident( $arg: ident) ) => {
8380 FlowAtLocation :: $meth( & mut $this. borrows, $arg) ;
84- FlowAtLocation :: $meth( & mut $this. inits, $arg) ;
8581 FlowAtLocation :: $meth( & mut $this. uninits, $arg) ;
8682 FlowAtLocation :: $meth( & mut $this. move_outs, $arg) ;
8783 FlowAtLocation :: $meth( & mut $this. ever_inits, $arg) ;
@@ -134,18 +130,6 @@ impl<'b, 'gcx, 'tcx> fmt::Display for Flows<'b, 'gcx, 'tcx> {
134130 } ) ;
135131 s. push_str ( "] " ) ;
136132
137- s. push_str ( "inits: [" ) ;
138- let mut saw_one = false ;
139- self . inits . each_state_bit ( |mpi_init| {
140- if saw_one {
141- s. push_str ( ", " ) ;
142- } ;
143- saw_one = true ;
144- let move_path = & self . inits . operator ( ) . move_data ( ) . move_paths [ mpi_init] ;
145- s. push_str ( & format ! ( "{}" , move_path) ) ;
146- } ) ;
147- s. push_str ( "] " ) ;
148-
149133 s. push_str ( "uninits: [" ) ;
150134 let mut saw_one = false ;
151135 self . uninits . each_state_bit ( |mpi_uninit| {
0 commit comments