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:
parent
07c12fa89e
commit
e80c7ddb05
8 changed files with 30 additions and 34 deletions
|
@ -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(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue