Recover from some macros

This commit is contained in:
Catherine Flores 2023-07-24 17:05:10 +00:00
parent 287db04636
commit dece622ee4
9 changed files with 127 additions and 105 deletions

View file

@ -181,11 +181,7 @@ impl<'a> Parser<'a> {
err
})?;
if rc == RecoverComma::Yes {
self.maybe_recover_unexpected_comma(
pat.span,
matches!(pat.kind, PatKind::MacCall(_)),
rt,
)?;
self.maybe_recover_unexpected_comma(pat.span, false, rt)?;
}
pats.push(pat);
}