@@ -26,15 +26,14 @@ use dataflow::move_paths::HasMoveData;
26
26
use dataflow:: Borrows ;
27
27
use dataflow:: { EverInitializedPlaces , MovingOutStatements } ;
28
28
use dataflow:: { FlowAtLocation , FlowsAtLocation } ;
29
- use dataflow:: { MaybeInitializedPlaces , MaybeUninitializedPlaces } ;
29
+ use dataflow:: MaybeUninitializedPlaces ;
30
30
use either:: Either ;
31
31
use std:: fmt;
32
32
use std:: rc:: Rc ;
33
33
34
34
// (forced to be `pub` due to its use as an associated type below.)
35
35
crate struct Flows < ' b , ' gcx : ' tcx , ' tcx : ' b > {
36
36
borrows : FlowAtLocation < Borrows < ' b , ' gcx , ' tcx > > ,
37
- pub inits : FlowAtLocation < MaybeInitializedPlaces < ' b , ' gcx , ' tcx > > ,
38
37
pub uninits : FlowAtLocation < MaybeUninitializedPlaces < ' b , ' gcx , ' tcx > > ,
39
38
pub move_outs : FlowAtLocation < MovingOutStatements < ' b , ' gcx , ' tcx > > ,
40
39
pub ever_inits : FlowAtLocation < EverInitializedPlaces < ' b , ' gcx , ' tcx > > ,
@@ -46,15 +45,13 @@ crate struct Flows<'b, 'gcx: 'tcx, 'tcx: 'b> {
46
45
impl < ' b , ' gcx , ' tcx > Flows < ' b , ' gcx , ' tcx > {
47
46
crate fn new (
48
47
borrows : FlowAtLocation < Borrows < ' b , ' gcx , ' tcx > > ,
49
- inits : FlowAtLocation < MaybeInitializedPlaces < ' b , ' gcx , ' tcx > > ,
50
48
uninits : FlowAtLocation < MaybeUninitializedPlaces < ' b , ' gcx , ' tcx > > ,
51
49
move_outs : FlowAtLocation < MovingOutStatements < ' b , ' gcx , ' tcx > > ,
52
50
ever_inits : FlowAtLocation < EverInitializedPlaces < ' b , ' gcx , ' tcx > > ,
53
51
polonius_output : Option < Rc < Output < RegionVid , BorrowIndex , LocationIndex > > > ,
54
52
) -> Self {
55
53
Flows {
56
54
borrows,
57
- inits,
58
55
uninits,
59
56
move_outs,
60
57
ever_inits,
@@ -81,7 +78,6 @@ impl<'b, 'gcx, 'tcx> Flows<'b, 'gcx, 'tcx> {
81
78
macro_rules! each_flow {
82
79
( $this: ident, $meth: ident( $arg: ident) ) => {
83
80
FlowAtLocation :: $meth( & mut $this. borrows, $arg) ;
84
- FlowAtLocation :: $meth( & mut $this. inits, $arg) ;
85
81
FlowAtLocation :: $meth( & mut $this. uninits, $arg) ;
86
82
FlowAtLocation :: $meth( & mut $this. move_outs, $arg) ;
87
83
FlowAtLocation :: $meth( & mut $this. ever_inits, $arg) ;
@@ -134,18 +130,6 @@ impl<'b, 'gcx, 'tcx> fmt::Display for Flows<'b, 'gcx, 'tcx> {
134
130
} ) ;
135
131
s. push_str ( "] " ) ;
136
132
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
-
149
133
s. push_str ( "uninits: [" ) ;
150
134
let mut saw_one = false ;
151
135
self . uninits . each_state_bit ( |mpi_uninit| {
0 commit comments