]> git.lizzy.rs Git - rust.git/commit
Fixes for shallow borrows
authorMatthew Jasper <mjjasper1@gmail.com>
Sun, 31 Mar 2019 14:14:50 +0000 (15:14 +0100)
committerMatthew Jasper <mjjasper1@gmail.com>
Sun, 31 Mar 2019 14:14:50 +0000 (15:14 +0100)
commit16ee042100d252d1c59c80c797a481be340151b3
tree12d45a157ac3ae578922877e284e9d8133b79c95
parentcee58fdc12bea8cc373366bd84fc786277729b1c
Fixes for shallow borrows

* Don't promote these borrows if we're going to remove them before
  codegen
* Correctly mark unreachable code
src/librustc_mir/borrow_check/error_reporting.rs
src/librustc_mir/transform/qualify_consts.rs
src/test/mir-opt/match_false_edges.rs