Skip to content

Commit 564a024

Browse files
committed
experiment query caching
1 parent 2cf1d57 commit 564a024

File tree

1 file changed

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

1 file changed

+2
-1
lines changed

compiler/rustc_middle/src/query/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2746,9 +2746,10 @@ rustc_queries! {
27462746
}
27472747

27482748
/// Returns a list of all `externally implementable items` crate.
2749-
query externally_implementable_items(_: CrateNum) -> &'tcx FxIndexMap<DefId, (EiiDecl, FxIndexMap<DefId, EiiImpl>)> {
2749+
query externally_implementable_items(cnum: CrateNum) -> &'tcx FxIndexMap<DefId, (EiiDecl, FxIndexMap<DefId, EiiImpl>)> {
27502750
arena_cache
27512751
desc { "looking up the externally implementable items of a crate" }
2752+
cache_on_disk_if { *cnum == LOCAL_CRATE }
27522753
separate_provide_extern
27532754
}
27542755
}

0 commit comments

Comments
 (0)