We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Ident
1 parent 2aa028d commit a8d5c00Copy full SHA for a8d5c00
compiler/rustc_span/src/symbol.rs
@@ -1703,6 +1703,7 @@ impl Ident {
1703
/// macro (e.g., `macro` or `macro_rules!` items) and stay different if they came from different
1704
/// non-transparent macros.
1705
/// Technically, this operation strips all transparent marks from ident's syntactic context.
1706
+ #[inline]
1707
pub fn normalize_to_macro_rules(self) -> Ident {
1708
Ident::new(self.name, self.span.normalize_to_macro_rules())
1709
}
@@ -1718,6 +1719,7 @@ impl Ident {
1718
1719
1720
1721
impl PartialEq for Ident {
1722
1723
fn eq(&self, rhs: &Self) -> bool {
1724
self.name == rhs.name && self.span.eq_ctxt(rhs.span)
1725
0 commit comments