Skip to content

Rename PredicateKind::NormalizesTo to SelectAssocCandidate - #165191

Open
julianbraha wants to merge 2 commits into
rust-lang:mainfrom
julianbraha:rename_normalizesto
Open

julianbraha wants to merge 2 commits into
rust-lang:mainfrom
julianbraha:rename_normalizesto

Conversation

@julianbraha

Copy link
Copy Markdown

Let's rename NormalizesTo to SelectAssocCandidate, as lcnr suggested in this zulip thread.

Also, one of the comments about NormalizesTo was actually stale, so the second commit simply removes it.

Note that this PR does not make the other suggested renaming in that zulip thread: AliasKind::Projection to AliasKind::TraitAssoc[Ty|Const].

r? @lcnr

This comment about AND and RHS has been stale since:
commit 1fcbaf2 ("Handle trait projections").
@rustbot

rustbot commented Oct 30, 2026

Copy link
Copy Markdown
Collaborator

Some changes occurred to the core trait solver

cc @rust-lang/initiative-trait-system-refactor

changes to inspect_obligations.rs

cc @lcnr

This PR changes rustc_public

cc @oli-obk, @celinval, @ouz-a, @makai410

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. WG-trait-system-refactor The Rustc Trait System Refactor Initiative (-Znext-solver) labels Oct 30, 2026
@rustbot

rustbot commented Oct 30, 2026

Copy link
Copy Markdown
Collaborator

Thanks for the pull request, and welcome! The Rust Project has assigned @lcnr (or someone else) to review your changes, you should hear from them (or someone else) within the next two weeks.

Please see the contribution instructions and our LLM policy for more information.

} = root;
// If there's a normalizes-to goal, AND the evaluation result with the result of
// constraining the normalizes-to RHS and computing the nested goals.

@ShoyuVanilla ShoyuVanilla Oct 30, 2026 •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should preserve this comment with the renamed term

View changes since the review

@ShoyuVanilla ShoyuVanilla Oct 30, 2026 •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would be nice to have relevant test names updated as well

View changes since the review

@lcnr

lcnr commented Oct 30, 2026

Copy link
Copy Markdown
Contributor

r? ShoyuVanilla

@rustbot rustbot assigned ShoyuVanilla and unassigned lcnr Oct 30, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. WG-trait-system-refactor The Rustc Trait System Refactor Initiative (-Znext-solver)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants