Skip to content

Commit b90b346

Browse files
NadrierilZalathar
authored andcommitted
There's nothing to bind for a wildcard
This commit was obtained by repeatedly inlining and simplifying.
1 parent b95b7b9 commit b90b346

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
@@ -2505,14 +2505,7 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
25052505
true,
25062506
);
25072507
// This block is for the failure case
2508-
let failure = this.bind_pattern(
2509-
this.source_info(else_block_span),
2510-
wildcard,
2511-
&[],
2512-
initializer_span,
2513-
None,
2514-
true,
2515-
);
2508+
let failure = wildcard.pre_binding_block.unwrap();
25162509

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

0 commit comments

Comments
 (0)