99// except according to those terms.
1010
1111use indexed_set:: IdxSetBuf ;
12- use super :: gather_moves:: { MoveData , MovePathIndex , MovePathContent , Location } ;
12+ use super :: gather_moves:: { MoveData , MovePathIndex , MovePathContent } ;
1313use super :: dataflow:: { MaybeInitializedLvals , MaybeUninitializedLvals } ;
1414use super :: dataflow:: { DataflowResults } ;
1515use super :: { drop_flag_effects_for_location, on_all_children_bits} ;
@@ -146,9 +146,9 @@ impl<'b, 'tcx> ElaborateDropsCtxt<'b, 'tcx> {
146146 dead : self . flow_uninits . sets ( ) . on_entry_set_for ( loc. block . index ( ) )
147147 . to_owned ( ) ,
148148 } ;
149- for stmt in 0 ..loc. index {
149+ for stmt in 0 ..loc. statement_index {
150150 data. apply_location ( self . tcx , self . mir , self . env ,
151- Location { block : loc. block , index : stmt } ) ;
151+ Location { block : loc. block , statement_index : stmt } ) ;
152152 }
153153 data
154154 }
@@ -226,7 +226,7 @@ impl<'b, 'tcx> ElaborateDropsCtxt<'b, 'tcx> {
226226
227227 let init_data = self . initialization_data_at ( Location {
228228 block : bb,
229- index : data. statements . len ( )
229+ statement_index : data. statements . len ( )
230230 } ) ;
231231
232232 let path = self . move_data ( ) . rev_lookup . find ( location) ;
@@ -249,7 +249,7 @@ impl<'b, 'tcx> ElaborateDropsCtxt<'b, 'tcx> {
249249 fn elaborate_drops ( & mut self )
250250 {
251251 for ( bb, data) in self . mir . basic_blocks ( ) . iter_enumerated ( ) {
252- let loc = Location { block : bb, index : data. statements . len ( ) } ;
252+ let loc = Location { block : bb, statement_index : data. statements . len ( ) } ;
253253 let terminator = data. terminator ( ) ;
254254
255255 let resume_block = self . patch . resume_block ( ) ;
@@ -359,9 +359,9 @@ impl<'b, 'tcx> ElaborateDropsCtxt<'b, 'tcx> {
359359 unwind : Some ( unwind)
360360 } , bb) ;
361361 on_all_children_bits ( self . tcx , self . mir , self . move_data ( ) , path, |child| {
362- self . set_drop_flag ( Location { block : target, index : 0 } ,
362+ self . set_drop_flag ( Location { block : target, statement_index : 0 } ,
363363 child, DropFlagState :: Present ) ;
364- self . set_drop_flag ( Location { block : unwind, index : 0 } ,
364+ self . set_drop_flag ( Location { block : unwind, statement_index : 0 } ,
365365 child, DropFlagState :: Present ) ;
366366 } ) ;
367367 }
@@ -741,7 +741,7 @@ impl<'b, 'tcx> ElaborateDropsCtxt<'b, 'tcx> {
741741 let drop_block = self . drop_block ( c) ;
742742 if update_drop_flag {
743743 self . set_drop_flag (
744- Location { block : drop_block, index : 0 } ,
744+ Location { block : drop_block, statement_index : 0 } ,
745745 c. path ,
746746 DropFlagState :: Absent
747747 ) ;
@@ -927,7 +927,7 @@ impl<'b, 'tcx> ElaborateDropsCtxt<'b, 'tcx> {
927927 }
928928
929929 fn drop_flags_on_init ( & mut self ) {
930- let loc = Location { block : START_BLOCK , index : 0 } ;
930+ let loc = Location { block : START_BLOCK , statement_index : 0 } ;
931931 let span = self . patch . source_info_for_location ( self . mir , loc) . span ;
932932 let false_ = self . constant_bool ( span, false ) ;
933933 for flag in self . drop_flags . values ( ) {
@@ -942,7 +942,7 @@ impl<'b, 'tcx> ElaborateDropsCtxt<'b, 'tcx> {
942942 } = data. terminator ( ) . kind {
943943 assert ! ( !self . patch. is_patched( bb) ) ;
944944
945- let loc = Location { block : tgt, index : 0 } ;
945+ let loc = Location { block : tgt, statement_index : 0 } ;
946946 let path = self . move_data ( ) . rev_lookup . find ( lv) ;
947947 on_all_children_bits (
948948 self . tcx , self . mir , self . move_data ( ) , path,
@@ -953,7 +953,7 @@ impl<'b, 'tcx> ElaborateDropsCtxt<'b, 'tcx> {
953953 }
954954
955955 fn drop_flags_for_args ( & mut self ) {
956- let loc = Location { block : START_BLOCK , index : 0 } ;
956+ let loc = Location { block : START_BLOCK , statement_index : 0 } ;
957957 super :: drop_flag_effects_for_function_entry (
958958 self . tcx , self . mir , self . env , |path, ds| {
959959 self . set_drop_flag ( loc, path, ds) ;
@@ -993,7 +993,7 @@ impl<'b, 'tcx> ElaborateDropsCtxt<'b, 'tcx> {
993993 }
994994 }
995995 }
996- let loc = Location { block : bb, index : i } ;
996+ let loc = Location { block : bb, statement_index : i } ;
997997 super :: drop_flag_effects_for_location (
998998 self . tcx , self . mir , self . env , loc, |path, ds| {
999999 if ds == DropFlagState :: Absent || allow_initializations {
@@ -1011,7 +1011,7 @@ impl<'b, 'tcx> ElaborateDropsCtxt<'b, 'tcx> {
10111011 } = data. terminator ( ) . kind {
10121012 assert ! ( !self . patch. is_patched( bb) ) ;
10131013
1014- let loc = Location { block : bb, index : data. statements . len ( ) } ;
1014+ let loc = Location { block : bb, statement_index : data. statements . len ( ) } ;
10151015 let path = self . move_data ( ) . rev_lookup . find ( lv) ;
10161016 on_all_children_bits (
10171017 self . tcx , self . mir , self . move_data ( ) , path,
0 commit comments