diff options
| author | Camille GILLOT <gillot.camille@gmail.com> | 2021-10-02 17:35:27 +0200 |
|---|---|---|
| committer | Camille GILLOT <gillot.camille@gmail.com> | 2021-10-06 19:06:20 +0200 |
| commit | ce21756ed3acdd6bb4c222725214c24e1bc70915 (patch) | |
| tree | 94c435bd81d6623dda44ac5f6d6ccdf2e14a8641 /compiler/rustc_query_impl | |
| parent | 25ec8273855fde2d72ae877b397e054de5300e10 (diff) | |
| download | rust-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.rs | 7 |
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)] |
