about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFelix S. Klock II <pnkfelix@pnkfx.org>2016-05-20 15:44:30 +0200
committerFelix S. Klock II <pnkfelix@pnkfx.org>2016-05-20 15:44:30 +0200
commit59008cbd71e0d8725d314d60b90ca9f66ee69064 (patch)
tree2eb7635bd433c953f6f161e30b206c3509478e13
parent581195090a6c1609aa03abfabdb20e11f3b833ed (diff)
downloadrust-59008cbd71e0d8725d314d60b90ca9f66ee69064.tar.gz
rust-59008cbd71e0d8725d314d60b90ca9f66ee69064.zip
review feedback: fix some index-mismatch bugs pointed out by arielb1.
-rw-r--r--src/librustc_borrowck/borrowck/mir/dataflow/mod.rs3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/librustc_borrowck/borrowck/mir/dataflow/mod.rs b/src/librustc_borrowck/borrowck/mir/dataflow/mod.rs
index 00589e05ffd..09abbb6af68 100644
--- a/src/librustc_borrowck/borrowck/mir/dataflow/mod.rs
+++ b/src/librustc_borrowck/borrowck/mir/dataflow/mod.rs
@@ -734,8 +734,6 @@ impl<'a, 'tcx> BitDenotation for MovingOutStatements<'a, 'tcx> {
                 // MoveOuts from it, and *also* all MoveOuts
                 // for children and associated fragment sets.
                 let move_path_index = rev_lookup.find(lvalue);
-
-                sets.kill_set.set_bit(move_path_index.idx());
                 super::on_all_children_bits(tcx,
                                             mir,
                                             move_data,
@@ -777,7 +775,6 @@ impl<'a, 'tcx> BitDenotation for MovingOutStatements<'a, 'tcx> {
         let move_path_index = move_data.rev_lookup.find(dest_lval);
         let bits_per_block = self.bits_per_block(ctxt);
 
-        in_out.clear_bit(move_path_index.idx());
         let path_map = &move_data.path_map;
         super::on_all_children_bits(ctxt.0,
                                     ctxt.1,