Skip to content

Commit ee995d7

Browse files
authored
Revert "Inline a few functions."
1 parent 56f1325 commit ee995d7

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

compiler/rustc_ast/src/token.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -721,7 +721,6 @@ impl Token {
721721
}
722722

723723
impl PartialEq<TokenKind> for Token {
724-
#[inline]
725724
fn eq(&self, rhs: &TokenKind) -> bool {
726725
self.kind == *rhs
727726
}

compiler/rustc_span/src/symbol.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1706,7 +1706,6 @@ impl Ident {
17061706
/// macro (e.g., `macro` or `macro_rules!` items) and stay different if they came from different
17071707
/// non-transparent macros.
17081708
/// Technically, this operation strips all transparent marks from ident's syntactic context.
1709-
#[inline]
17101709
pub fn normalize_to_macro_rules(self) -> Ident {
17111710
Ident::new(self.name, self.span.normalize_to_macro_rules())
17121711
}
@@ -1722,7 +1721,6 @@ impl Ident {
17221721
}
17231722

17241723
impl PartialEq for Ident {
1725-
#[inline]
17261724
fn eq(&self, rhs: &Self) -> bool {
17271725
self.name == rhs.name && self.span.eq_ctxt(rhs.span)
17281726
}

0 commit comments

Comments
 (0)