]> git.lizzy.rs Git - rust.git/commitdiff
port to new Location
authorScott A Carr <s.carr1024@gmail.com>
Thu, 18 Aug 2016 20:54:20 +0000 (16:54 -0400)
committerScott A Carr <s.carr1024@gmail.com>
Thu, 18 Aug 2016 20:54:20 +0000 (16:54 -0400)
src/librustc_borrowck/borrowck/mir/gather_moves.rs

index 15153bc861bca4432335530195f11a26b9ba76f0..01bf8ed0e4b57679a379adf8854a6ad1cd5c1b1c 100644 (file)
@@ -616,7 +616,7 @@ fn gather_moves<'a, 'tcx>(mir: &Mir<'tcx>, tcx: TyCtxt<'a, 'tcx, 'tcx>) -> MoveD
 
             TerminatorKind::Return => {
                 let source = Location { block: bb,
-                                        index: bb_data.statements.len() };
+                                        statement_index: bb_data.statements.len() };
                 debug!("gather_moves Return on_move_out_lval return {:?}", source);
                 bb_ctxt.on_move_out_lval(SK::Return, &Lvalue::ReturnPointer, source);
             }