Skip to content

Commit f3bc691

Browse files
committed
Inline DefId hash implementation
1 parent f8abed9 commit f3bc691

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

compiler/rustc_span/src/def_id.rs

+1
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,7 @@ pub struct DefId {
247247
// faster than another `FxHash` round.
248248
#[cfg(target_pointer_width = "64")]
249249
impl Hash for DefId {
250+
#[inline]
250251
fn hash<H: Hasher>(&self, h: &mut H) {
251252
(((self.krate.as_u32() as u64) << 32) | (self.index.as_u32() as u64)).hash(h)
252253
}

0 commit comments

Comments
 (0)