File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -728,6 +728,7 @@ impl Token {
728728}
729729
730730impl PartialEq < TokenKind > for Token {
731+ #[ inline]
731732 fn eq ( & self , rhs : & TokenKind ) -> bool {
732733 self . kind == * rhs
733734 }
Original file line number Diff line number Diff line change @@ -1704,6 +1704,7 @@ impl Ident {
17041704 /// macro (e.g., `macro` or `macro_rules!` items) and stay different if they came from different
17051705 /// non-transparent macros.
17061706 /// Technically, this operation strips all transparent marks from ident's syntactic context.
1707+ #[ inline]
17071708 pub fn normalize_to_macro_rules ( self ) -> Ident {
17081709 Ident :: new ( self . name , self . span . normalize_to_macro_rules ( ) )
17091710 }
@@ -1719,6 +1720,7 @@ impl Ident {
17191720}
17201721
17211722impl PartialEq for Ident {
1723+ #[ inline]
17221724 fn eq ( & self , rhs : & Self ) -> bool {
17231725 self . name == rhs. name && self . span . eq_ctxt ( rhs. span )
17241726 }
You can’t perform that action at this time.
0 commit comments