We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2034b6d + 938e807 commit 4b87ed9Copy full SHA for 4b87ed9
compiler/rustc_middle/src/query/mod.rs
@@ -875,7 +875,7 @@ rustc_queries! {
875
876
query typeck(key: LocalDefId) -> &'tcx ty::TypeckResults<'tcx> {
877
desc { |tcx| "type-checking `{}`", tcx.def_path_str(key) }
878
- cache_on_disk_if { true }
+ cache_on_disk_if(tcx) { !tcx.is_typeck_child(key.to_def_id()) }
879
}
880
query diagnostic_only_typeck(key: LocalDefId) -> &'tcx ty::TypeckResults<'tcx> {
881
0 commit comments