Files
rust/compiler/rustc_traits
Jonathan Brouwer e6b92f8830 Rollup merge of #162126 - jdonszelmann:rename-resolving, r=lcnr,BoxyUwU
Rename various resolving functions for consistency, and document them

r? @lcnr or anyone in @rust-lang/initiative-trait-system-refactor

This is all changes from https://github.com/rust-lang/rust/pull/160913/changes that are *just* renames. Updating that PR to be *just* the logic changes

All interesting changes happened in `rustc_infer/src/infer/mod.rs` across all commits. Everything else is renames propagating through other files.

The functions are now called:

| before    |   after  | note |
|---|---|---|
| `shallow_resolve_*` | (unchanged) `shallow_resolve_*` | Now with newly added docs. |
| `resolve_vars_if_possible_*` | `deeply_resolve_ignoring_regions_*` | |
| `eager_resolve_vars` | `deeply_resolve_via_unification_table` | moved onto the `InferCtxtLike` as an inherent method with default body. |
| `fully_resolve` |`deeply_resolve_via_region_graph` | Resolves *with* regions and asserts that all variables are resolved at the end. Note, we only use this function 3x so the long name is ok, it shouldn't be your go-to anyway. |
| `opportunistic_resolve_var` | | gone, same as `shalllow_resolve` now that we resolve to roots |

> [!NOTE]
> I've not used an LLM for any part of this PR, or any other PR I make. This includes any related work like research.
2026-09-11 15:42:16 +02:00
..