Skip to content

Commit 878ccd2

Browse files
committed
There's nothing to bind for a wildcard
This commit was obtained by repeatedly inlining and simplifying.
1 parent cef49f7 commit 878ccd2

File tree

1 file changed

+1
-8
lines changed
  • compiler/rustc_mir_build/src/build/matches

1 file changed

+1
-8
lines changed

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

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2491,14 +2491,7 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
24912491
true,
24922492
);
24932493
// This block is for the failure case
2494-
let failure = this.bind_pattern(
2495-
this.source_info(else_block_span),
2496-
wildcard,
2497-
&[],
2498-
initializer_span,
2499-
None,
2500-
true,
2501-
);
2494+
let failure = wildcard.pre_binding_block.unwrap();
25022495

25032496
// If branch coverage is enabled, record this branch.
25042497
this.visit_coverage_conditional_let(pattern, matching, failure);

0 commit comments

Comments
 (0)