about summary refs log tree commit diff
path: root/compiler/rustc_metadata
diff options
context:
space:
mode:
authorCamille GILLOT <gillot.camille@gmail.com>2021-06-28 21:12:01 +0200
committerCamille GILLOT <gillot.camille@gmail.com>2021-07-18 11:14:07 +0200
commit81241cbf3ae39db6188b7965b34e444f48e7ebbd (patch)
tree01ad9c9362f8a592a049d20178a9d520799233a0 /compiler/rustc_metadata
parent68511b574ffe019a5cb3e9fa92605f80d39167bc (diff)
downloadrust-81241cbf3ae39db6188b7965b34e444f48e7ebbd.tar.gz
rust-81241cbf3ae39db6188b7965b34e444f48e7ebbd.zip
Move OnDiskCache to rustc_query_impl.
Diffstat (limited to 'compiler/rustc_metadata')
-rw-r--r--compiler/rustc_metadata/src/creader.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/compiler/rustc_metadata/src/creader.rs b/compiler/rustc_metadata/src/creader.rs
index 70b3efa1d16..5373169bda7 100644
--- a/compiler/rustc_metadata/src/creader.rs
+++ b/compiler/rustc_metadata/src/creader.rs
@@ -131,7 +131,10 @@ impl<'a> std::fmt::Debug for CrateDump<'a> {
 
 impl CStore {
     pub fn from_tcx(tcx: TyCtxt<'_>) -> &CStore {
-        tcx.cstore_as_any().downcast_ref::<CStore>().expect("`tcx.cstore` is not a `CStore`")
+        tcx.cstore_untracked()
+            .as_any()
+            .downcast_ref::<CStore>()
+            .expect("`tcx.cstore` is not a `CStore`")
     }
 
     fn alloc_new_crate_num(&mut self) -> CrateNum {