Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

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

Lines changed: 1 addition & 0 deletions
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)