about summary refs log tree commit diff
path: root/compiler/rustc_query_impl
diff options
context:
space:
mode:
authorCamille GILLOT <gillot.camille@gmail.com>2021-10-02 17:35:27 +0200
committerCamille GILLOT <gillot.camille@gmail.com>2021-10-06 19:06:20 +0200
commitce21756ed3acdd6bb4c222725214c24e1bc70915 (patch)
tree94c435bd81d6623dda44ac5f6d6ccdf2e14a8641 /compiler/rustc_query_impl
parent25ec8273855fde2d72ae877b397e054de5300e10 (diff)
downloadrust-ce21756ed3acdd6bb4c222725214c24e1bc70915.tar.gz
rust-ce21756ed3acdd6bb4c222725214c24e1bc70915.zip
Access Session while decoding expn_id.
Diffstat (limited to 'compiler/rustc_query_impl')
-rw-r--r--compiler/rustc_query_impl/src/on_disk_cache.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/compiler/rustc_query_impl/src/on_disk_cache.rs b/compiler/rustc_query_impl/src/on_disk_cache.rs
index d8cff0bd188..f93623e445c 100644
--- a/compiler/rustc_query_impl/src/on_disk_cache.rs
+++ b/compiler/rustc_query_impl/src/on_disk_cache.rs
@@ -667,7 +667,12 @@ impl<'a, 'tcx> Decodable<CacheDecoder<'a, 'tcx>> for ExpnId {
             rustc_span::hygiene::register_local_expn_id(data, hash)
         } else {
             let index_guess = decoder.foreign_expn_data[&hash];
-            decoder.tcx.cstore_untracked().expn_hash_to_expn_id(krate, index_guess, hash)
+            decoder.tcx.cstore_untracked().expn_hash_to_expn_id(
+                decoder.tcx.sess,
+                krate,
+                index_guess,
+                hash,
+            )
         };
 
         #[cfg(debug_assertions)]