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 :) |
This comment has been minimized.
This comment has been minimized.
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
This comment has been minimized.
This comment has been minimized.
|
@rustbot author (conflicts) |
|
Reminder, once the PR becomes ready for a review, use |
9ccba2c to
f460ebb
Compare
|
This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed. Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers. |
f460ebb to
add7372
Compare
|
@rustbot review |
add7372 to
77a00bd
Compare
|
The job Click to see the possible cause of the failure (guessed by this bot) |
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.