There's nothing to bind for a wildcard

This commit was obtained by repeatedly inlining and simplifying.
This commit is contained in:
Nadrieril 2024-06-17 19:46:07 +02:00
parent cef49f73e7
commit 878ccd22fa

View File

@ -2491,14 +2491,7 @@ pub(crate) fn ast_let_else(
true, true,
); );
// This block is for the failure case // This block is for the failure case
let failure = this.bind_pattern( let failure = wildcard.pre_binding_block.unwrap();
this.source_info(else_block_span),
wildcard,
&[],
initializer_span,
None,
true,
);
// If branch coverage is enabled, record this branch. // If branch coverage is enabled, record this branch.
this.visit_coverage_conditional_let(pattern, matching, failure); this.visit_coverage_conditional_let(pattern, matching, failure);