Skip to content

Commit eebe0fe

Browse files
committed
stop caching typeck
I would naively assume that if the inputs to typeck are unchanged, the inputs of the dependendents of typeck would also stay unchanged, making the caching redundant. I have no data to back this up, so let's try getting some.
1 parent 98c33e4 commit eebe0fe

File tree

1 file changed

+0
-2
lines changed
  • compiler/rustc_middle/src/query

1 file changed

+0
-2
lines changed

compiler/rustc_middle/src/query/mod.rs

-2
Original file line numberDiff line numberDiff line change
@@ -875,11 +875,9 @@ rustc_queries! {
875875

876876
query typeck(key: LocalDefId) -> &'tcx ty::TypeckResults<'tcx> {
877877
desc { |tcx| "type-checking `{}`", tcx.def_path_str(key) }
878-
cache_on_disk_if(tcx) { !tcx.is_typeck_child(key.to_def_id()) }
879878
}
880879
query diagnostic_only_typeck(key: LocalDefId) -> &'tcx ty::TypeckResults<'tcx> {
881880
desc { |tcx| "type-checking `{}`", tcx.def_path_str(key) }
882-
cache_on_disk_if { true }
883881
}
884882

885883
query used_trait_imports(key: LocalDefId) -> &'tcx UnordSet<LocalDefId> {

0 commit comments

Comments
 (0)