Skip to content

Commit 27f29d1

Browse files
committed
Only cache local items, the others are already in metadata
1 parent c4e09b5 commit 27f29d1

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

compiler/rustc_middle/src/query/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -587,7 +587,7 @@ rustc_queries! {
587587
/// Cross-crate cache of `required_and_mentioned_items`. Do not call directly.
588588
query required_and_mentioned_items_of_item(key: DefId) -> &'tcx mir::RequiredAndMentionedItems<'tcx> {
589589
desc { |tcx| "computing required and mentioned items for `{}`", tcx.def_path_str(key) }
590-
cache_on_disk_if { true }
590+
cache_on_disk_if { key.is_local() }
591591
arena_cache
592592
separate_provide_extern
593593
}

0 commit comments

Comments
 (0)