mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-19 11:28:19 +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()`.
For high-level intro to how type checking works in rustc, see the type checking chapter of the rustc dev guide.