Skip to content

Commit 2aa028d

Browse files
committed
Inline <Token as PartialEq<TokenKind>>::eq.
1 parent 307dd93 commit 2aa028d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

compiler/rustc_ast/src/token.rs

+1
Original file line numberDiff line numberDiff line change
@@ -728,6 +728,7 @@ impl Token {
728728
}
729729

730730
impl PartialEq<TokenKind> for Token {
731+
#[inline]
731732
fn eq(&self, rhs: &TokenKind) -> bool {
732733
self.kind == *rhs
733734
}

0 commit comments

Comments
 (0)