Rename various resolving functions for consistency, and document them - #162126
Rename various resolving functions for consistency, and document them#162126jdonszelmann wants to merge 5 commits into
Conversation
e7c7eb0 to
c502d33
Compare
|
bikeshed: fully_resolve to |
|
hm, I do like that, lemme change that @BoxyUwU :) |
|
The job Click to see the possible cause of the failure (guessed by this bot) |
| // | ||
| // We *want* this folder to live in `rustc_type_ir`. Our best way to call into it is | ||
| // through `InferCtxtLike` and it is not defined as an inherent method on `InferCtxt`. | ||
| #[allow(rustc::usage_of_type_ir_traits)] |
There was a problem hiding this comment.
worth moving the trait import to inside this function so we dont actually use other stuff in other functions? 🤔
There was a problem hiding this comment.
Seems reasonable enough 🤔 It feels a little unfortunate that we lose "var" being in the name of resolve_vars_if_possible. It's also a little unfortunate that deeply_resolve has naming similarities with deeply_normalize which errors if it can't normalize sth, whereas deeply_normalize is fine if it can't resolve something 🤔
I do like the new names more though since they feel more internally consistent with eachother
|
☔ The latest upstream changes (presumably #162229) made this pull request unmergeable. Please resolve the merge conflicts by rebasing. |
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.rsacross all commits. Everything else is renames propagating through other files.The functions are now called:
shallow_resolve_*shallow_resolve_*resolve_vars_if_possible_*deeply_resolve_ignoring_regions_*deeply_resolveinstead.eager_resolve_varsdeeply_resolveInferCtxtLikeas an inherent method with default body.fully_resolvedeeply_resolve_and_assert_fully_resolvedopportunistic_resolve_varshalllow_resolvenow that we resolve to rootsNote
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.