From 4628133d504738632ca89082f90fe291924c5c07 Mon Sep 17 00:00:00 2001 From: Oli Scherer Date: Fri, 23 Feb 2024 15:02:43 +0000 Subject: [PATCH] Try caching query to disk to save some incremental loading of larger queries --- compiler/rustc_middle/src/query/mod.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/compiler/rustc_middle/src/query/mod.rs b/compiler/rustc_middle/src/query/mod.rs index 8357c21a3c2be..99c6ba6a4ba5f 100644 --- a/compiler/rustc_middle/src/query/mod.rs +++ b/compiler/rustc_middle/src/query/mod.rs @@ -1762,6 +1762,7 @@ rustc_queries! { /// Whether the function is an intrinsic query intrinsic(def_id: DefId) -> Option { desc { |tcx| "fetch intrinsic name if `{}` is an intrinsic", tcx.def_path_str(def_id) } + cache_on_disk_if { def_id.is_local() } separate_provide_extern } /// Returns the lang items defined in another crate by loading it from metadata.