about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2022-09-28 13:55:00 +1000
committerNicholas Nethercote <n.nethercote@gmail.com>2022-09-29 07:05:34 +1000
commit2aa028d30d1e59c3c4bf9c5bf31e9d9f8ec80273 (patch)
treecc052669787d64eb7a8fd833b15a6c16e09c62c2
parent307dd938d7937c93dc7a880e81a2383b82f30ad0 (diff)
downloadrust-2aa028d30d1e59c3c4bf9c5bf31e9d9f8ec80273.tar.gz
rust-2aa028d30d1e59c3c4bf9c5bf31e9d9f8ec80273.zip
Inline `<Token as PartialEq<TokenKind>>::eq`.
-rw-r--r--compiler/rustc_ast/src/token.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_ast/src/token.rs b/compiler/rustc_ast/src/token.rs
index fa6162c5184..96089d36b6f 100644
--- a/compiler/rustc_ast/src/token.rs
+++ b/compiler/rustc_ast/src/token.rs
@@ -728,6 +728,7 @@ impl Token {
 }
 
 impl PartialEq<TokenKind> for Token {
+    #[inline]
     fn eq(&self, rhs: &TokenKind) -> bool {
         self.kind == *rhs
     }