File tree Expand file tree Collapse file tree 3 files changed +4
-0
lines changed
rustc_data_structures/src Expand file tree Collapse file tree 3 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -14,12 +14,14 @@ pub trait FingerprintComponent {
14
14
}
15
15
16
16
impl FingerprintComponent for Hash64 {
17
+ #[ inline]
17
18
fn as_u64 ( & self ) -> u64 {
18
19
Hash64 :: as_u64 ( * self )
19
20
}
20
21
}
21
22
22
23
impl FingerprintComponent for u64 {
24
+ #[ inline]
23
25
fn as_u64 ( & self ) -> u64 {
24
26
* self
25
27
}
Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ impl Hash64 {
36
36
}
37
37
38
38
impl BitXorAssign < u64 > for Hash64 {
39
+ #[ inline]
39
40
fn bitxor_assign ( & mut self , rhs : u64 ) {
40
41
self . inner ^= rhs;
41
42
}
Original file line number Diff line number Diff line change @@ -186,6 +186,7 @@ impl StableCrateId {
186
186
StableCrateId ( hasher. finish ( ) )
187
187
}
188
188
189
+ #[ inline]
189
190
pub fn as_u64 ( self ) -> u64 {
190
191
self . 0 . as_u64 ( )
191
192
}
You can’t perform that action at this time.
0 commit comments