Skip to content

Commit a8d5c00

Browse files
committed
Inline two Ident methods.
1 parent 2aa028d commit a8d5c00

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

compiler/rustc_span/src/symbol.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1703,6 +1703,7 @@ impl Ident {
17031703
/// macro (e.g., `macro` or `macro_rules!` items) and stay different if they came from different
17041704
/// non-transparent macros.
17051705
/// Technically, this operation strips all transparent marks from ident's syntactic context.
1706+
#[inline]
17061707
pub fn normalize_to_macro_rules(self) -> Ident {
17071708
Ident::new(self.name, self.span.normalize_to_macro_rules())
17081709
}
@@ -1718,6 +1719,7 @@ impl Ident {
17181719
}
17191720

17201721
impl PartialEq for Ident {
1722+
#[inline]
17211723
fn eq(&self, rhs: &Self) -> bool {
17221724
self.name == rhs.name && self.span.eq_ctxt(rhs.span)
17231725
}

0 commit comments

Comments
 (0)