mirror of
https://github.com/rust-lang/rust.git
synced 2025-11-18 23:56:35 +00:00
Rework HIR API to make invocations of the hir_crate query harder. `hir_crate` forces the recomputation of queries that depend on it. This PR aims at avoiding useless invocations of `hir_crate` by making dependent code go through `tcx.hir()`.