From ede41ab4d6dbd56f62021c4951fea8f3278e5030 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20K=C3=A5re=20Alsaker?= Date: Wed, 26 Jun 2019 10:16:56 +0200 Subject: [PATCH] Keep caching for non-promoted queries --- src/librustc/query/mod.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/librustc/query/mod.rs b/src/librustc/query/mod.rs index 74114533faa..d2082ab87e7 100644 --- a/src/librustc/query/mod.rs +++ b/src/librustc/query/mod.rs @@ -496,6 +496,7 @@ rustc_queries! { query symbol_name(key: ty::Instance<'tcx>) -> ty::SymbolName { no_force desc { "computing the symbol for `{}`", key } + cache_on_disk_if { true } } query def_kind(_: DefId) -> Option {} @@ -562,6 +563,7 @@ rustc_queries! { key: (ty::ParamEnv<'tcx>, ty::PolyTraitRef<'tcx>) ) -> Vtable<'tcx, ()> { no_force + cache_on_disk_if { true } desc { |tcx| "checking if `{}` fulfills its obligations", tcx.def_path_str(key.1.def_id())