Skip to content

Commit b5643f1

Browse files
committed
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`.
1 parent 0f50724 commit b5643f1

File tree

1 file changed

+1
-1
lines changed
  • src/librustc_mir/build/matches

1 file changed

+1
-1
lines changed

src/librustc_mir/build/matches/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -870,7 +870,7 @@ impl<'a, 'gcx, 'tcx> Builder<'a, 'gcx, 'tcx> {
870870
span,
871871
untested_candidates,
872872
join_block,
873-
&mut None,
873+
fake_borrows,
874874
)
875875
}
876876

0 commit comments

Comments
 (0)