]> git.lizzy.rs Git - rust.git/commit
Clean up MIR match lowering
authorMatthew Jasper <mjjasper1@gmail.com>
Sat, 2 Feb 2019 10:56:55 +0000 (10:56 +0000)
committerMatthew Jasper <mjjasper1@gmail.com>
Thu, 21 Feb 2019 19:03:34 +0000 (19:03 +0000)
commitd51b5cdd82ec0e36212fc75b83652372980d56ca
treee1acb0489f9aee67b26bd05dc9e54395659dedb2
parentc15437c0c6beb2b7be4b86569e124c8b2ccd03bb
Clean up MIR match lowering

* Adjust fake borrows to only be live over guards.
* Remove unused `slice_len_checked` field.
* Split the methods on builder into those for matches and those for all
  kinds of pattern bindings.
src/librustc_mir/build/matches/mod.rs
src/librustc_mir/build/matches/test.rs
src/librustc_mir/build/matches/util.rs
src/test/mir-opt/issue-49232.rs
src/test/mir-opt/match_false_edges.rs
src/test/mir-opt/match_test.rs
src/test/mir-opt/remove_fake_borrows.rs