Do not recover from Ty?
in macro parsing
Follow up to #92746. Address #94510.
This commit is contained in:
parent
32cbc7630b
commit
004f2ed219
5 changed files with 50 additions and 15 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue