diff options
| author | Takayuki Maeda <takoyaki0316@gmail.com> | 2022-03-09 12:59:46 +0900 |
|---|---|---|
| committer | Takayuki Maeda <takoyaki0316@gmail.com> | 2022-03-09 12:59:46 +0900 |
| commit | 527b1f3c2fb478cf30c9b33e945da2adaf29b6e0 (patch) | |
| tree | c0da9be2aca822b3c4f5475b1b2c40d0d6300cda /compiler/rustc_parse/src | |
| parent | 529fd2da894ff290668d6c1524909ba218d5822b (diff) | |
| download | rust-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.rs | 1 |
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) => { |
