about summary refs log tree commit diff
path: root/compiler/rustc_parse/src
diff options
context:
space:
mode:
authorTakayuki Maeda <takoyaki0316@gmail.com>2022-03-09 12:59:46 +0900
committerTakayuki Maeda <takoyaki0316@gmail.com>2022-03-09 12:59:46 +0900
commit527b1f3c2fb478cf30c9b33e945da2adaf29b6e0 (patch)
treec0da9be2aca822b3c4f5475b1b2c40d0d6300cda /compiler/rustc_parse/src
parent529fd2da894ff290668d6c1524909ba218d5822b (diff)
downloadrust-527b1f3c2fb478cf30c9b33e945da2adaf29b6e0.tar.gz
rust-527b1f3c2fb478cf30c9b33e945da2adaf29b6e0.zip
initialize unclosed_delims field
Diffstat (limited to 'compiler/rustc_parse/src')
-rw-r--r--compiler/rustc_parse/src/parser/path.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_parse/src/parser/path.rs b/compiler/rustc_parse/src/parser/path.rs
index 0bccf4dc2ce..750d7cce0c0 100644
--- a/compiler/rustc_parse/src/parser/path.rs
+++ b/compiler/rustc_parse/src/parser/path.rs
@@ -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) => {