about summary refs log tree commit diff
diff options
context:
space:
mode:
authorCamille GILLOT <gillot.camille@gmail.com>2021-06-27 21:30:20 +0200
committerCamille GILLOT <gillot.camille@gmail.com>2021-07-17 19:41:11 +0200
commita51b131fd186ffef240835e18eae3a73501f3090 (patch)
treeba1aa85abd9d24dedb801029df658059c4769fc0
parent41c1f39fa8317fc16779ceda7536fe93f1c89c34 (diff)
downloadrust-a51b131fd186ffef240835e18eae3a73501f3090.tar.gz
rust-a51b131fd186ffef240835e18eae3a73501f3090.zip
Always hash spans in expn.
-rw-r--r--compiler/rustc_middle/src/ty/query/on_disk_cache.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_middle/src/ty/query/on_disk_cache.rs b/compiler/rustc_middle/src/ty/query/on_disk_cache.rs
index 03e3ca5ec6b..c4847ea16c5 100644
--- a/compiler/rustc_middle/src/ty/query/on_disk_cache.rs
+++ b/compiler/rustc_middle/src/ty/query/on_disk_cache.rs
@@ -835,7 +835,7 @@ impl<'a, 'tcx> Decodable<CacheDecoder<'a, 'tcx>> for ExpnId {
             use rustc_data_structures::stable_hasher::{HashStable, StableHasher};
             let mut hcx = decoder.tcx.create_stable_hashing_context();
             let mut hasher = StableHasher::new();
-            expn_id.expn_data().hash_stable(&mut hcx, &mut hasher);
+            hcx.while_hashing_spans(true, |hcx| expn_id.expn_data().hash_stable(hcx, &mut hasher));
             let local_hash: u64 = hasher.finish();
             debug_assert_eq!(hash.local_hash(), local_hash);
         }