From 2aa028d30d1e59c3c4bf9c5bf31e9d9f8ec80273 Mon Sep 17 00:00:00 2001 From: Nicholas Nethercote Date: Wed, 28 Sep 2022 13:55:00 +1000 Subject: [PATCH] Inline `>::eq`. --- compiler/rustc_ast/src/token.rs | 1 + 1 file changed, 1 insertion(+) 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 for Token { + #[inline] fn eq(&self, rhs: &TokenKind) -> bool { self.kind == *rhs }