Skip to content

Commit a51b131

Browse files
committed
Always hash spans in expn.
1 parent 41c1f39 commit a51b131

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: compiler/rustc_middle/src/ty/query/on_disk_cache.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -835,7 +835,7 @@ impl<'a, 'tcx> Decodable<CacheDecoder<'a, 'tcx>> for ExpnId {
835835
use rustc_data_structures::stable_hasher::{HashStable, StableHasher};
836836
let mut hcx = decoder.tcx.create_stable_hashing_context();
837837
let mut hasher = StableHasher::new();
838-
expn_id.expn_data().hash_stable(&mut hcx, &mut hasher);
838+
hcx.while_hashing_spans(true, |hcx| expn_id.expn_data().hash_stable(hcx, &mut hasher));
839839
let local_hash: u64 = hasher.finish();
840840
debug_assert_eq!(hash.local_hash(), local_hash);
841841
}

0 commit comments

Comments
 (0)