1
Fork 0

Only declare bindings for if-let guards once per arm

This commit is contained in:
Léo Lanteri Thauvin 2022-11-21 12:45:29 +01:00
parent 911cbf8e46
commit baa59d1a77
5 changed files with 27 additions and 17 deletions

View file

@ -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);