We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 70fba90 commit 00ce6dcCopy full SHA for 00ce6dc
compiler/rustc_middle/src/query/mod.rs
@@ -522,7 +522,7 @@ rustc_queries! {
522
}
523
query adt_def(key: DefId) -> &'tcx ty::AdtDef {
524
desc { |tcx| "computing ADT definition for `{}`", tcx.def_path_str(key) }
525
- cache_on_disk_if { true }
+ cache_on_disk_if { key.is_local() }
526
separate_provide_extern
527
528
query adt_destructor(key: DefId) -> Option<ty::Destructor> {
0 commit comments