There's nothing to bind for a wildcard
This commit was obtained by repeatedly inlining and simplifying.
This commit is contained in:
parent
cef49f73e7
commit
878ccd22fa
@ -2491,14 +2491,7 @@ pub(crate) fn ast_let_else(
|
||||
true,
|
||||
);
|
||||
// This block is for the failure case
|
||||
let failure = this.bind_pattern(
|
||||
this.source_info(else_block_span),
|
||||
wildcard,
|
||||
&[],
|
||||
initializer_span,
|
||||
None,
|
||||
true,
|
||||
);
|
||||
let failure = wildcard.pre_binding_block.unwrap();
|
||||
|
||||
// If branch coverage is enabled, record this branch.
|
||||
this.visit_coverage_conditional_let(pattern, matching, failure);
|
||||
|
Loading…
Reference in New Issue
Block a user