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 ) ;
@@ -924,7 +924,7 @@ impl<'b, 'tcx> ElaborateDropsCtxt<'b, 'tcx> {
924924 }
925925
926926 fn drop_flags_on_init ( & mut self ) {
927- let loc = Location { block : START_BLOCK , index : 0 } ;
927+ let loc = Location { block : START_BLOCK , statement_index : 0 } ;
928928 let span = self . patch . source_info_for_location ( self . mir , loc) . span ;
929929 let false_ = self . constant_bool ( span, false ) ;
930930 for flag in self . drop_flags . values ( ) {
@@ -939,7 +939,7 @@ impl<'b, 'tcx> ElaborateDropsCtxt<'b, 'tcx> {
939939 } = data. terminator ( ) . kind {
940940 assert ! ( !self . patch. is_patched( bb) ) ;
941941
942- let loc = Location { block : tgt, index : 0 } ;
942+ let loc = Location { block : tgt, statement_index : 0 } ;
943943 let path = self . move_data ( ) . rev_lookup . find ( lv) ;
944944 on_all_children_bits (
945945 self . tcx , self . mir , self . move_data ( ) , path,
@@ -950,7 +950,7 @@ impl<'b, 'tcx> ElaborateDropsCtxt<'b, 'tcx> {
950950 }
951951
952952 fn drop_flags_for_args ( & mut self ) {
953- let loc = Location { block : START_BLOCK , index : 0 } ;
953+ let loc = Location { block : START_BLOCK , statement_index : 0 } ;
954954 super :: drop_flag_effects_for_function_entry (
955955 self . tcx , self . mir , self . env , |path, ds| {
956956 self . set_drop_flag ( loc, path, ds) ;
@@ -990,7 +990,7 @@ impl<'b, 'tcx> ElaborateDropsCtxt<'b, 'tcx> {
990990 }
991991 }
992992 }
993- let loc = Location { block : bb, index : i } ;
993+ let loc = Location { block : bb, statement_index : i } ;
994994 super :: drop_flag_effects_for_location (
995995 self . tcx , self . mir , self . env , loc, |path, ds| {
996996 if ds == DropFlagState :: Absent || allow_initializations {
@@ -1008,7 +1008,7 @@ impl<'b, 'tcx> ElaborateDropsCtxt<'b, 'tcx> {
10081008 } = data. terminator ( ) . kind {
10091009 assert ! ( !self . patch. is_patched( bb) ) ;
10101010
1011- let loc = Location { block : bb, index : data. statements . len ( ) } ;
1011+ let loc = Location { block : bb, statement_index : data. statements . len ( ) } ;
10121012 let path = self . move_data ( ) . rev_lookup . find ( lv) ;
10131013 on_all_children_bits (
10141014 self . tcx , self . mir , self . move_data ( ) , path,
0 commit comments