@@ -134,7 +134,7 @@ impl LivenessResults<'me, 'typeck, 'flow, 'tcx> {
134134
135135 // FIXME: this is temporary until we can generate our own initialization
136136 if self . cx . typeck . borrowck_context . all_facts . is_some ( ) {
137- self . add_polonius_var_initialized_on_exit_for ( local)
137+ self . add_polonius_var_maybe_initialized_on_exit_for ( local)
138138 }
139139
140140 self . compute_use_live_points_for ( local) ;
@@ -161,14 +161,14 @@ impl LivenessResults<'me, 'typeck, 'flow, 'tcx> {
161161 //
162162 // FIXME: this analysis (the initialization tracking) should be
163163 // done in Polonius, but isn't yet.
164- fn add_polonius_var_initialized_on_exit_for ( & mut self , local : Local ) {
164+ fn add_polonius_var_maybe_initialized_on_exit_for ( & mut self , local : Local ) {
165165 let move_path = self . cx . move_data . rev_lookup . find_local ( local) ;
166166 let facts = self . cx . typeck . borrowck_context . all_facts . as_mut ( ) . unwrap ( ) ;
167167 for block in self . cx . body . basic_blocks ( ) . indices ( ) {
168168 debug ! ( "polonius: generating initialization facts for {:?} in {:?}" , local, block) ;
169169
170170 // iterate through the block, applying the effects of each statement
171- // up to and including location, and populate `var_initialized_on_exit `
171+ // up to and including location, and populate `var_maybe_initialized_on_exit `
172172 self . cx . flow_inits . reset_to_entry_of ( block) ;
173173 let start_location = Location { block, statement_index : 0 } ;
174174 self . cx . flow_inits . apply_local_effect ( start_location) ;
@@ -181,7 +181,7 @@ impl LivenessResults<'me, 'typeck, 'flow, 'tcx> {
181181 // statement has not yet taken effect:
182182 if self . cx . flow_inits . has_any_child_of ( move_path) . is_some ( ) {
183183 facts
184- . var_initialized_on_exit
184+ . var_maybe_initialized_on_exit
185185 . push ( ( local, self . cx . location_table . start_index ( current_location) ) ) ;
186186 }
187187
@@ -190,7 +190,7 @@ impl LivenessResults<'me, 'typeck, 'flow, 'tcx> {
190190
191191 if self . cx . flow_inits . has_any_child_of ( move_path) . is_some ( ) {
192192 facts
193- . var_initialized_on_exit
193+ . var_maybe_initialized_on_exit
194194 . push ( ( local, self . cx . location_table . mid_index ( current_location) ) ) ;
195195 }
196196 }
@@ -199,7 +199,7 @@ impl LivenessResults<'me, 'typeck, 'flow, 'tcx> {
199199
200200 if self . cx . flow_inits . has_any_child_of ( move_path) . is_some ( ) {
201201 facts
202- . var_initialized_on_exit
202+ . var_maybe_initialized_on_exit
203203 . push ( ( local, self . cx . location_table . start_index ( terminator_location) ) ) ;
204204 }
205205
@@ -208,7 +208,7 @@ impl LivenessResults<'me, 'typeck, 'flow, 'tcx> {
208208
209209 if self . cx . flow_inits . has_any_child_of ( move_path) . is_some ( ) {
210210 facts
211- . var_initialized_on_exit
211+ . var_maybe_initialized_on_exit
212212 . push ( ( local, self . cx . location_table . mid_index ( terminator_location) ) ) ;
213213 }
214214 }
0 commit comments