We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f8abed9 commit f3bc691Copy full SHA for f3bc691
compiler/rustc_span/src/def_id.rs
@@ -247,6 +247,7 @@ pub struct DefId {
247
// faster than another `FxHash` round.
248
#[cfg(target_pointer_width = "64")]
249
impl Hash for DefId {
250
+ #[inline]
251
fn hash<H: Hasher>(&self, h: &mut H) {
252
(((self.krate.as_u32() as u64) << 32) | (self.index.as_u32() as u64)).hash(h)
253
}
0 commit comments