Skip to content

Commit 0896a49

Browse files
committed
No need for empty special case anymore
1 parent b4f0e76 commit 0896a49

File tree

1 file changed

+0
-3
lines changed
  • compiler/rustc_mir_build/src/build/matches

1 file changed

+0
-3
lines changed

compiler/rustc_mir_build/src/build/matches/mod.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1272,9 +1272,6 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
12721272
start_block: BasicBlock,
12731273
fake_borrows: &mut Option<FxIndexSet<Place<'tcx>>>,
12741274
) -> BasicBlock {
1275-
if matched_candidates.is_empty() {
1276-
return start_block;
1277-
}
12781275
debug_assert!(
12791276
matched_candidates.iter().all(|c| c.subcandidates.is_empty()),
12801277
"subcandidates should be empty in select_matched_candidates",

0 commit comments

Comments
 (0)