initialize unclosed_delims field

This commit is contained in:
Takayuki Maeda 2022-03-09 12:59:46 +09:00
parent 529fd2da89
commit 527b1f3c2f

View File

@ -626,6 +626,7 @@ pub(super) fn parse_generic_arg(
// Parse type argument.
let is_const_fn = self.look_ahead(1, |t| t.kind == token::OpenDelim(token::Paren));
let mut snapshot = self.clone();
snapshot.unclosed_delims = vec![];
match self.parse_ty() {
Ok(ty) => GenericArg::Type(ty),
Err(err) => {