Skip to content

Commit

Permalink
initialize unclosed_delims field
Browse files Browse the repository at this point in the history
  • Loading branch information
TaKO8Ki committed Mar 9, 2022
1 parent 529fd2d commit 527b1f3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions compiler/rustc_parse/src/parser/path.rs
Original file line number Diff line number Diff line change
Expand Up @@ -626,6 +626,7 @@ impl<'a> Parser<'a> {
// 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) => {
Expand Down

0 comments on commit 527b1f3

Please sign in to comment.