about summary refs log tree commit diff
path: root/compiler/rustc_macros/src
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_macros/src
parent68511b574ffe019a5cb3e9fa92605f80d39167bc (diff)
downloadrust-81241cbf3ae39db6188b7965b34e444f48e7ebbd.tar.gz
rust-81241cbf3ae39db6188b7965b34e444f48e7ebbd.zip
Move OnDiskCache to rustc_query_impl.
Diffstat (limited to 'compiler/rustc_macros/src')
-rw-r--r--compiler/rustc_macros/src/query.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_macros/src/query.rs b/compiler/rustc_macros/src/query.rs
index 291e7ef045e..dcd36d61bc6 100644
--- a/compiler/rustc_macros/src/query.rs
+++ b/compiler/rustc_macros/src/query.rs
@@ -367,7 +367,7 @@ fn add_query_description_impl(
                     tcx: QueryCtxt<'tcx>,
                     id: SerializedDepNodeIndex
                 ) -> Option<Self::Value> {
-                    tcx.on_disk_cache.as_ref()?.try_load_query_result(*tcx, id)
+                    tcx.on_disk_cache().as_ref()?.try_load_query_result(*tcx, id)
                 }
             }
         };