Only declare bindings for if-let guards once per arm
This commit is contained in:
parent
911cbf8e46
commit
baa59d1a77
5 changed files with 27 additions and 17 deletions
|
@ -924,7 +924,7 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
|
|||
scope,
|
||||
expr.span,
|
||||
&pat,
|
||||
matches::ArmHasGuard(false),
|
||||
None,
|
||||
Some((Some(&place), span)),
|
||||
);
|
||||
let place_builder = PlaceBuilder::from(local);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue