diff options
| author | Camille GILLOT <gillot.camille@gmail.com> | 2021-06-28 21:12:01 +0200 |
|---|---|---|
| committer | Camille GILLOT <gillot.camille@gmail.com> | 2021-07-18 11:14:07 +0200 |
| commit | 81241cbf3ae39db6188b7965b34e444f48e7ebbd (patch) | |
| tree | 01ad9c9362f8a592a049d20178a9d520799233a0 /compiler/rustc_metadata | |
| parent | 68511b574ffe019a5cb3e9fa92605f80d39167bc (diff) | |
| download | rust-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.rs | 5 |
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 { |
