diff options
| author | Nicholas Nethercote <nnethercote@mozilla.com> | 2018-12-12 10:01:08 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <nnethercote@mozilla.com> | 2018-12-12 20:36:00 +1100 |
| commit | e80c7ddb05ee584c12131a4713173a3eafc49f4a (patch) | |
| tree | 20bcd4aa3ddb48334f1d872e1a1e8c26afcc7398 /src/libsyntax/parse/parser.rs | |
| parent | 07c12fa89e297bf5940f903dea8186a0a33f9d82 (diff) | |
| download | rust-e80c7ddb05ee584c12131a4713173a3eafc49f4a.tar.gz rust-e80c7ddb05ee584c12131a4713173a3eafc49f4a.zip | |
Rename `TokenStream::concat` and remove `TokenStream::concat_rc_vec`.
`TokenStream::new` is a better name for the former, and the latter is now just equivalent to `TokenStream::Stream`.
Diffstat (limited to 'src/libsyntax/parse/parser.rs')
| -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 ded6da9f3ad..4e209f58024 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -2928,7 +2928,7 @@ impl<'a> Parser<'a> { _ => result.push(self.parse_token_tree().into()), } } - TokenStream::concat(result) + TokenStream::new(result) } /// Parse a prefix-unary-operator expr @@ -4624,7 +4624,7 @@ impl<'a> Parser<'a> { self.unexpected()?; unreachable!() }; - TokenStream::concat(vec