initialize unclosed_delims field
This commit is contained in:
parent
529fd2da89
commit
527b1f3c2f
@ -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) => {
|
||||
|
Loading…
Reference in New Issue
Block a user