about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2022-09-28 14:45:31 +1000
committerNicholas Nethercote <n.nethercote@gmail.com>2022-09-29 07:05:34 +1000
commita8d5c00d4667b3765ba5fd9670a3343072529a5d (patch)
tree6e73ae56f663153598c1fc0e93337b7757c7e0cb
parent2aa028d30d1e59c3c4bf9c5bf31e9d9f8ec80273 (diff)
downloadrust-a8d5c00d4667b3765ba5fd9670a3343072529a5d.tar.gz
rust-a8d5c00d4667b3765ba5fd9670a3343072529a5d.zip
Inline two `Ident` methods.
-rw-r--r--compiler/rustc_span/src/symbol.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/rustc_span/src/symbol.rs b/compiler/rustc_span/src/symbol.rs
index 07f3656d086..b8c0275ea57 100644
--- a/compiler/rustc_span/src/symbol.rs
+++ b/compiler/rustc_span/src/symbol.rs
@@ -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())
     }
@@ -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)
     }