diff options
| author | Camille GILLOT <gillot.camille@gmail.com> | 2021-05-30 22:32:22 +0200 |
|---|---|---|
| committer | Camille GILLOT <gillot.camille@gmail.com> | 2021-06-09 20:23:46 +0200 |
| commit | a246751ca1091d883adb4348b827ef85579d8932 (patch) | |
| tree | 3decced810967e3db2ff6ec005886354bff543b3 | |
| parent | 5be514992fdeddbf56bb44c7baec3ab5e4f79e1b (diff) | |
| download | rust-a246751ca1091d883adb4348b827ef85579d8932.tar.gz rust-a246751ca1091d883adb4348b827ef85579d8932.zip | |
Do not store crate in latest_foreign_def_path_hashes.
| -rw-r--r-- | compiler/rustc_middle/src/ty/query/on_disk_cache.rs | 7 |
1 files changed, 0 insertions, 7 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 a74a40102a8..30e44e8b70a 100644 --- a/compiler/rustc_middle/src/ty/query/on_disk_cache.rs +++ b/compiler/rustc_middle/src/ty/query/on_disk_cache.rs @@ -1023,13 +1023,6 @@ where { fn encode(&self, s: &mut CacheEncoder<'a, 'tcx, E>) -> Result<(), E::Error> { let def_path_hash = s.tcx.def_path_hash(self.as_def_id()); - // Store additional information when we encode a foreign `DefId`, - // so that we can map its `DefPathHash` back to a `DefId` in the next - // compilation session. - if *self != LOCAL_CRATE { - s.latest_foreign_def_path_hashes - .insert(def_path_hash, RawDefId { krate: self.as_u32(), index: 0 }); - } def_path_hash.stable_crate_id().encode(s) } } |
