File tree 2 files changed +3
-0
lines changed
2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -728,6 +728,7 @@ impl Token {
728
728
}
729
729
730
730
impl PartialEq < TokenKind > for Token {
731
+ #[ inline]
731
732
fn eq ( & self , rhs : & TokenKind ) -> bool {
732
733
self . kind == * rhs
733
734
}
Original file line number Diff line number Diff line change @@ -1704,6 +1704,7 @@ impl Ident {
1704
1704
/// macro (e.g., `macro` or `macro_rules!` items) and stay different if they came from different
1705
1705
/// non-transparent macros.
1706
1706
/// Technically, this operation strips all transparent marks from ident's syntactic context.
1707
+ #[ inline]
1707
1708
pub fn normalize_to_macro_rules ( self ) -> Ident {
1708
1709
Ident :: new ( self . name , self . span . normalize_to_macro_rules ( ) )
1709
1710
}
@@ -1719,6 +1720,7 @@ impl Ident {
1719
1720
}
1720
1721
1721
1722
impl PartialEq for Ident {
1723
+ #[ inline]
1722
1724
fn eq ( & self , rhs : & Self ) -> bool {
1723
1725
self . name == rhs. name && self . span . eq_ctxt ( rhs. span )
1724
1726
}
You can’t perform that action at this time.
0 commit comments