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:
parent
409661936f
commit
e18d1f8d2e
7 changed files with 3 additions and 28 deletions
|
@ -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 }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue