diff options
| author | Nicholas Nethercote <nnethercote@mozilla.com> | 2019-10-10 12:01:12 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <nnethercote@mozilla.com> | 2019-10-14 09:19:31 +1100 |
| commit | 1ce0347fd475424d66d4c26fb8ac70f1437982aa (patch) | |
| tree | 071446182435ffa1e8c331c51cd2238280318912 /src/libsyntax/parse | |
| parent | 5c93492da914f972fb549e95db778adcbdf70480 (diff) | |
| download | rust-1ce0347fd475424d66d4c26fb8ac70f1437982aa.tar.gz rust-1ce0347fd475424d66d4c26fb8ac70f1437982aa.zip | |
Use `TokenStream::default()` in more places.
Diffstat (limited to 'src/libsyntax/parse')
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index 4a457f5a43c..83a4acbe702 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -1548,7 +1548,7 @@ impl<'a> Parser<'a> { // This can happen due to a bad interaction of two unrelated recovery mechanisms with // mismatched delimiters *and* recovery lookahead on the likely typo `pub ident(` // (#62881). - return Ok((ret?, TokenStream::new(vec![]))); + return Ok((ret?, TokenStream::default())); } else { &mut self.token_cursor.stack[prev].last_token }; @@ -1563,7 +1563,7 @@ impl<'a> Parser<'a> { // This can happen due to a bad interaction of two unrelated recovery mechanisms // with mismatched delimiters *and* recovery lookahead on the likely typo // `pub ident(` (#62895, different but similar to the case above). - return Ok((ret?, TokenStream::new(vec![]))); + return Ok((ret?, TokenStream::default())); } }; |
