about summary refs log tree commit diff
path: root/compiler/rustc_data_structures/src
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/rustc_data_structures/src')
-rw-r--r--compiler/rustc_data_structures/src/fingerprint.rs2
-rw-r--r--compiler/rustc_data_structures/src/hashes.rs1
2 files changed, 3 insertions, 0 deletions
diff --git a/compiler/rustc_data_structures/src/fingerprint.rs b/compiler/rustc_data_structures/src/fingerprint.rs
index 1c929afb1cf..6fa76981408 100644
--- a/compiler/rustc_data_structures/src/fingerprint.rs
+++ b/compiler/rustc_data_structures/src/fingerprint.rs
@@ -14,12 +14,14 @@ pub trait FingerprintComponent {
 }
 
 impl FingerprintComponent for Hash64 {
+    #[inline]
     fn as_u64(&self) -> u64 {
         Hash64::as_u64(*self)
     }
 }
 
 impl FingerprintComponent for u64 {
+    #[inline]
     fn as_u64(&self) -> u64 {
         *self
     }
diff --git a/compiler/rustc_data_structures/src/hashes.rs b/compiler/rustc_data_structures/src/hashes.rs
index f32f6912267..ad068cdbc98 100644
--- a/compiler/rustc_data_structures/src/hashes.rs
+++ b/compiler/rustc_data_structures/src/hashes.rs
@@ -36,6 +36,7 @@ impl Hash64 {
 }
 
 impl BitXorAssign<u64> for Hash64 {
+    #[inline]
     fn bitxor_assign(&mut self, rhs: u64) {
         self.inner ^= rhs;
     }