rust/compiler/rustc_hir_analysis
Matthias Krüger 7fa00aa75f
Rollup merge of #143258 - compiler-errors:disambiguator-state, r=oli-obk
Don't recompute `DisambiguatorState` for every RPITIT in trait definition

The `associated_type_for_impl_trait_in_trait` currently needs to rerun the `RPITVisitor` for every RPITIT to compute its disambiguator.

Instead of synthesizing all of the RPITITs def ids one at a time in different queries, just synthesize them inside of the `associated_types_for_impl_traits_in_associated_fn` query. There we can just share the same `DisambiguatorState` for all the RPITITs in one function signature.

r? ``````@Zoxc`````` or ``````@oli-obk`````` cc rust-lang/rust#140453
2025-07-02 19:28:08 +02:00
..
src Rollup merge of #143258 - compiler-errors:disambiguator-state, r=oli-obk 2025-07-02 19:28:08 +02:00
Cargo.toml introduce new lint infra 2025-06-12 09:56:47 +02:00
messages.ftl hir_analysis: prohibit dyn PointeeSized 2025-06-27 17:01:47 +00:00
README.md rustc_typeck to rustc_hir_analysis 2022-09-27 10:37:23 +02:00

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