Rename various resolving functions for consistency, and document them - #162126
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 comment has been minimized.
This comment has been minimized.
f460ebb to
add7372
Compare
|
@rustbot review |
add7372 to
77a00bd
Compare
This comment has been minimized.
This comment has been minimized.
|
This pull request was unapproved. This PR was contained in a rollup (#162629), which was unapproved. |
532134e to
f4fd639
Compare
|
ugh, I think this should fix it. @bors r=lcnr, BoxyUwU |
|
@bors r- |
|
@bors r=lcnr,BoxyUwU |
|
This pull request was unapproved. |
…cnr,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.
…uwer Rollup of 5 pull requests Successful merges: - #162126 (Rename various resolving functions for consistency, and document them) - #160681 (Respect `--all-targets` flag when checking the compiler) - #162580 (Parallel frontend: reproducible coroutine_by_move_body_def_id ) - #162614 (add regression test for RPITIT fulfillment error) - #162626 (Move `riscv64im-unknown-none-elf` to Tier 3 table)
|
⌛ Testing commit f4fd639 with merge 9d0a292... Workflow: https://github.com/rust-lang/rust/actions/runs/34615212472 |
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.
|
@bors yield |
|
Auto build was cancelled. Cancelled workflows: The next pull request likely to be tested is #162640. |
…uwer Rollup of 5 pull requests Successful merges: - #162126 (Rename various resolving functions for consistency, and document them) - #160681 (Respect `--all-targets` flag when checking the compiler) - #162580 (Parallel frontend: reproducible coroutine_by_move_body_def_id ) - #162614 (add regression test for RPITIT fulfillment error) - #162626 (Move `riscv64im-unknown-none-elf` to Tier 3 table)
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.
View all comments
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_*eager_resolve_varsdeeply_resolve_via_unification_tableInferCtxtLikeas an inherent method with default body.fully_resolvedeeply_resolve_via_region_graphopportunistic_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.