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,
|
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);
|
||||||
|
Loading…
Reference in New Issue
Block a user