Skip to content

Commit 8da754e

Browse files
committed
Don't use a custom disk loader for diagnostic_only_typeck
This uses exactly the same types for query results as `typeck`, which doesn't have custom code. It's not clear to me why this code exists (it goes back even before queries used a proc macro), but it compiles fine without the custom loader. Remove it for simplicity.
1 parent b7c9687 commit 8da754e

File tree

1 file changed

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

1 file changed

+0
-7
lines changed

compiler/rustc_middle/src/query/mod.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -883,13 +883,6 @@ rustc_queries! {
883883
query diagnostic_only_typeck(key: LocalDefId) -> &'tcx ty::TypeckResults<'tcx> {
884884
desc { |tcx| "type-checking `{}`", tcx.def_path_str(key.to_def_id()) }
885885
cache_on_disk_if { true }
886-
load_cached(tcx, id) {
887-
let typeck_results: Option<ty::TypeckResults<'tcx>> = tcx
888-
.on_disk_cache().as_ref()
889-
.and_then(|c| c.try_load_query_result(*tcx, id));
890-
891-
typeck_results.map(|x| &*tcx.arena.alloc(x))
892-
}
893886
}
894887

895888
query used_trait_imports(key: LocalDefId) -> &'tcx FxHashSet<LocalDefId> {

0 commit comments

Comments
 (0)