Skip to content

Commit

Permalink
Only cache local items, the others are already in metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
oli-obk committed Apr 5, 2024
1 parent c4e09b5 commit 27f29d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/rustc_middle/src/query/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,7 @@ rustc_queries! {
/// Cross-crate cache of `required_and_mentioned_items`. Do not call directly.
query required_and_mentioned_items_of_item(key: DefId) -> &'tcx mir::RequiredAndMentionedItems<'tcx> {
desc { |tcx| "computing required and mentioned items for `{}`", tcx.def_path_str(key) }
cache_on_disk_if { true }
cache_on_disk_if { key.is_local() }
arena_cache
separate_provide_extern
}
Expand Down

0 comments on commit 27f29d1

Please sign in to comment.