Do not recover from Ty? in macro parsing

Follow up to #92746. Address #94510.
This commit is contained in:
Esteban Kuber 2022-03-04 02:03:55 +00:00
parent 32cbc7630b
commit 004f2ed219
5 changed files with 50 additions and 15 deletions

View file

@ -140,7 +140,7 @@ impl<'a> Parser<'a> {
}
NonterminalKind::Ty => {
token::NtTy(self.collect_tokens_no_attrs(|this| this.parse_ty())?)
token::NtTy(self.collect_tokens_no_attrs(|this| this.parse_no_question_mark_recover())?)
}
// this could be handled like a token, since it is one
NonterminalKind::Ident