Skip to content

Commit

Permalink
Inline two Ident methods.
Browse files Browse the repository at this point in the history
  • Loading branch information
nnethercote committed Sep 28, 2022
1 parent 2aa028d commit a8d5c00
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions compiler/rustc_span/src/symbol.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1703,6 +1703,7 @@ impl Ident {
/// macro (e.g., `macro` or `macro_rules!` items) and stay different if they came from different
/// non-transparent macros.
/// Technically, this operation strips all transparent marks from ident's syntactic context.
#[inline]
pub fn normalize_to_macro_rules(self) -> Ident {
Ident::new(self.name, self.span.normalize_to_macro_rules())
}
Expand All @@ -1718,6 +1719,7 @@ impl Ident {
}

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

0 comments on commit a8d5c00

Please sign in to comment.