We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d1931b6 commit 72e9589Copy full SHA for 72e9589
compiler/rustc_span/src/hygiene.rs
@@ -1330,12 +1330,12 @@ fn update_disambiguator(expn_id: ExpnId) {
1330
}
1331
1332
impl<'a> crate::HashStableContext for DummyHashStableContext<'a> {
1333
+ #[inline]
1334
fn def_path_hash(&self, def_id: DefId) -> DefPathHash {
- use std::hash::Hasher;
1335
- let mut hasher = StableHasher::new();
1336
- hasher.write_u32(def_id.krate.as_u32());
1337
- hasher.write_u32(def_id.index.as_u32());
1338
- DefPathHash(hasher.finish())
+ DefPathHash(Fingerprint::new(
+ def_id.krate.as_u32().into(),
+ def_id.index.as_u32().into(),
+ ))
1339
1340
1341
fn expn_id_cache() -> &'static LocalKey<ExpnIdCache> {
0 commit comments