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.
2 parents 3dddf6a + a3623e0 commit 31ee872Copy full SHA for 31ee872
compiler/rustc_span/src/lib.rs
@@ -1925,9 +1925,7 @@ impl<CTX: HashStableContext> HashStable<CTX> for ExpnId {
1925
return;
1926
}
1927
1928
- TAG_NOT_ROOT.hash_stable(ctx, hasher);
1929
let index = self.as_u32() as usize;
1930
-
1931
let res = CACHE.with(|cache| cache.borrow().get(index).copied().flatten());
1932
1933
if let Some(res) = res {
@@ -1936,6 +1934,7 @@ impl<CTX: HashStableContext> HashStable<CTX> for ExpnId {
1936
1934
let new_len = index + 1;
1937
1935
1938
let mut sub_hasher = StableHasher::new();
+ TAG_NOT_ROOT.hash_stable(ctx, &mut sub_hasher);
1939
self.expn_data().hash_stable(ctx, &mut sub_hasher);
1940
let sub_hash: Fingerprint = sub_hasher.finish();
1941
0 commit comments