Inline TokenStreamBuilder::push
.
Because it's small and hot.
This commit is contained in:
parent
c01a36d5e4
commit
ddf62b5bd4
1 changed files with 1 additions and 0 deletions
|
@ -277,6 +277,7 @@ struct TokenStreamBuilder {
|
|||
}
|
||||
|
||||
impl TokenStreamBuilder {
|
||||
#[inline(always)]
|
||||
fn push(&mut self, tree: TokenTree) {
|
||||
if let Some(TokenTree::Token(prev_token, Spacing::Joint)) = self.buf.last()
|
||||
&& let TokenTree::Token(token, joint) = &tree
|
||||
|
|
Loading…
Add table
Reference in a new issue