Skip to content

Commit a246751

Browse files
committed
Do not store crate in latest_foreign_def_path_hashes.
1 parent 5be5149 commit a246751

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

compiler/rustc_middle/src/ty/query/on_disk_cache.rs

-7
Original file line numberDiff line numberDiff line change
@@ -1023,13 +1023,6 @@ where
10231023
{
10241024
fn encode(&self, s: &mut CacheEncoder<'a, 'tcx, E>) -> Result<(), E::Error> {
10251025
let def_path_hash = s.tcx.def_path_hash(self.as_def_id());
1026-
// Store additional information when we encode a foreign `DefId`,
1027-
// so that we can map its `DefPathHash` back to a `DefId` in the next
1028-
// compilation session.
1029-
if *self != LOCAL_CRATE {
1030-
s.latest_foreign_def_path_hashes
1031-
.insert(def_path_hash, RawDefId { krate: self.as_u32(), index: 0 });
1032-
}
10331026
def_path_hash.stable_crate_id().encode(s)
10341027
}
10351028
}

0 commit comments

Comments
 (0)