Skip to content

Commit 4628133

Browse files
committed
Try caching query to disk to save some incremental loading of larger queries
1 parent 62ba9d4 commit 4628133

File tree

1 file changed

+1
-0
lines changed
  • compiler/rustc_middle/src/query

1 file changed

+1
-0
lines changed

compiler/rustc_middle/src/query/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1762,6 +1762,7 @@ rustc_queries! {
17621762
/// Whether the function is an intrinsic
17631763
query intrinsic(def_id: DefId) -> Option<rustc_middle::ty::IntrinsicDef> {
17641764
desc { |tcx| "fetch intrinsic name if `{}` is an intrinsic", tcx.def_path_str(def_id) }
1765+
cache_on_disk_if { def_id.is_local() }
17651766
separate_provide_extern
17661767
}
17671768
/// Returns the lang items defined in another crate by loading it from metadata.

0 commit comments

Comments
 (0)