Skip to content

Commit 59008cb

Browse files
committed
review feedback: fix some index-mismatch bugs pointed out by arielb1.
1 parent 5811950 commit 59008cb

File tree

1 file changed

+0
-3
lines changed
  • src/librustc_borrowck/borrowck/mir/dataflow

1 file changed

+0
-3
lines changed

src/librustc_borrowck/borrowck/mir/dataflow/mod.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -734,8 +734,6 @@ impl<'a, 'tcx> BitDenotation for MovingOutStatements<'a, 'tcx> {
734734
// MoveOuts from it, and *also* all MoveOuts
735735
// for children and associated fragment sets.
736736
let move_path_index = rev_lookup.find(lvalue);
737-
738-
sets.kill_set.set_bit(move_path_index.idx());
739737
super::on_all_children_bits(tcx,
740738
mir,
741739
move_data,
@@ -777,7 +775,6 @@ impl<'a, 'tcx> BitDenotation for MovingOutStatements<'a, 'tcx> {
777775
let move_path_index = move_data.rev_lookup.find(dest_lval);
778776
let bits_per_block = self.bits_per_block(ctxt);
779777

780-
in_out.clear_bit(move_path_index.idx());
781778
let path_map = &move_data.path_map;
782779
super::on_all_children_bits(ctxt.0,
783780
ctxt.1,

0 commit comments

Comments
 (0)