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`.
This commit is contained in:
Matthew Jasper 2019-04-03 20:54:23 +01:00
parent 0f507246e7
commit b5643f1a49

View file

@ -870,7 +870,7 @@ impl<'a, 'gcx, 'tcx> Builder<'a, 'gcx, 'tcx> {
span,
untested_candidates,
join_block,
&mut None,
fake_borrows,
)
}