]> git.lizzy.rs Git - rust.git/commit
Add a MIR transform to remove fake reads
authorMatthew Jasper <mjjasper1@gmail.com>
Sun, 23 Sep 2018 09:43:14 +0000 (10:43 +0100)
committerMatthew Jasper <mjjasper1@gmail.com>
Mon, 24 Sep 2018 22:33:13 +0000 (23:33 +0100)
commitf71f733d482d892b5bff021b3955435e7b3eee25
tree163045eabfcf8451464b38fef4495c6ae3ef1a3b
parent1a6ed0271e7cc8864e6030d945b92aaa850e4afe
Add a MIR transform to remove fake reads

As we are now creating borrows of places that may not be valid for
borrow checking matches, these have to be removed to avoid generating
broken code.
src/librustc_mir/lib.rs
src/librustc_mir/transform/cleanup_post_borrowck.rs
src/librustc_mir/transform/mod.rs
src/test/mir-opt/remove_fake_borrows.rs [new file with mode: 0644]