Skip to content

Commit

Permalink
Try caching query to disk to save some incremental loading of larger …
Browse files Browse the repository at this point in the history
…queries
  • Loading branch information
oli-obk committed Mar 4, 2024
1 parent c04f0ca commit 7bb8077
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions compiler/rustc_middle/src/query/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1762,6 +1762,7 @@ rustc_queries! {
/// Whether the function is an intrinsic
query intrinsic(def_id: DefId) -> Option<rustc_middle::ty::IntrinsicDef> {
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.
Expand Down

0 comments on commit 7bb8077

Please sign in to comment.