Leave it to the query system to invoke the typeck query instead of invoking it eagerly.

Later queries that are run on all body owners will invoke typeck as they need information from its result to perform their own logic
This commit is contained in:
Oli Scherer 2023-02-16 15:28:29 +00:00
parent 409661936f
commit e18d1f8d2e
7 changed files with 3 additions and 28 deletions

View file

@ -871,10 +871,6 @@ rustc_queries! {
separate_provide_extern
}
query typeck_item_bodies(_: ()) -> () {
desc { "type-checking all item bodies" }
}
query typeck(key: LocalDefId) -> &'tcx ty::TypeckResults<'tcx> {
desc { |tcx| "type-checking `{}`", tcx.def_path_str(key.to_def_id()) }
cache_on_disk_if { true }