Files
rust/compiler/rustc_hir_analysis
Jonathan Brouwer 1da9319614 Rollup merge of #159665 - addiesh:turbofish-fear-me, r=oli-obk
Replace most `Ty::new_fn_def` calls with `type_of` queries directly

This is so we can reduce the amount of code and changes in rust-lang/rust#159403. It should stand on its own, but really it's meant as an extended part of 159403.

This allows getting the right `ty::FnDef` even cross-crate, as the `type_of` query results are stored in metadata, in contrast to the queries for computing the binder for various declarations. These binders are already cached via `fn_sig`, but using that is somewhat overkill and can cause cycle errors in some cases.
2026-07-28 21:07:39 +02:00
..
2026-06-24 23:18:10 +01:00
…

For high-level intro to how type checking works in rustc, see the hir typeck chapter of the rustc dev guide.