1
Fork 0

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:
Nicholas Nethercote 2018-12-12 10:01:08 +11:00
parent 07c12fa89e
commit e80c7ddb05
8 changed files with 30 additions and 34 deletions

View file

@ -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(),