Skip to content

Commit d576911

Browse files
committed
experiment query caching
1 parent c412bfb commit d576911

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
@@ -2759,9 +2759,10 @@ rustc_queries! {
27592759
}
27602760

27612761
/// Returns a list of all `externally implementable items` crate.
2762-
query externally_implementable_items(_: CrateNum) -> &'tcx FxIndexMap<DefId, (EiiDecl, FxIndexMap<DefId, EiiImpl>)> {
2762+
query externally_implementable_items(cnum: CrateNum) -> &'tcx FxIndexMap<DefId, (EiiDecl, FxIndexMap<DefId, EiiImpl>)> {
27632763
arena_cache
27642764
desc { "looking up the externally implementable items of a crate" }
2765+
cache_on_disk_if { *cnum == LOCAL_CRATE }
27652766
separate_provide_extern
27662767
}
27672768
}

0 commit comments

Comments
 (0)