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`.
This commit is contained in:
@@ -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![
|
||||
TokenStream::new(vec![
|
||||
args.into(),
|
||||
TokenTree::Token(token_lo.to(self.prev_span), token::FatArrow).into(),
|
||||
body.into(),
|
||||
|
||||
Reference in New Issue
Block a user