]> git.lizzy.rs Git - rust.git/commit
Emit fake borrows for all tests
authorMatthew Jasper <mjjasper1@gmail.com>
Wed, 3 Apr 2019 19:54:23 +0000 (20:54 +0100)
committerMatthew Jasper <mjjasper1@gmail.com>
Tue, 21 May 2019 18:37:38 +0000 (19:37 +0100)
commitb5643f1a490d6aa5f90fc45fd92ac34d6e8a05d8
tree15a99ce7ab61a3896d451053f8963575ea377ff7
parent0f507246e732c302fbfde83296c03c69fafdf4ad
Emit fake borrows for all tests

I was incorrectly under the impression that this would only lead to
duplicates. See `mir-opt/match-arm-scope.rs` (upcomming commit) for a
case where we didn't emit a fake borrow of `items.1`.
src/librustc_mir/build/matches/mod.rs