Skip to content

-Znext-solver Eager normalization outside of solver #155767

Draft
adwinwhite wants to merge 9 commits intorust-lang:mainfrom
adwinwhite:eager-norm-outside
Draft

-Znext-solver Eager normalization outside of solver #155767
adwinwhite wants to merge 9 commits intorust-lang:mainfrom
adwinwhite:eager-norm-outside

Conversation

@adwinwhite
Copy link
Copy Markdown
Contributor

@adwinwhite adwinwhite commented Apr 25, 2026

This PR adds a normalization routine for the next solver that behaves the same as the normalization in the old solver.
And it's used to normalize eagerly outside of the next solver.

This is part 2 of modifying the next solver to support eager normalization.

Those test changes are all wording changes, duplicating some errors or reducing some duplicates. But I could have overlooked something.
Notably it fixes the first example of rust-lang/trait-system-refactor-initiative#191, but not the remaining cases.

It's probably easier to review commit by commit.

WIP: maybe remove old deeply_normalize

r? @ghost

@rustbot rustbot added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. 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 Apr 25, 2026
@matthiaskrgr
Copy link
Copy Markdown
Member

does this fix #151308 ?

@rust-log-analyzer

This comment has been minimized.

@adwinwhite
Copy link
Copy Markdown
Contributor Author

adwinwhite commented Apr 25, 2026

does this fix #151308 ?

Yes, it probably fixes a bunch of issues. And unfix some issues fixed by the next solver? Unsure about that.
Seems tedious to re-triage those labelled fixed-by-the-next-solver 🤔

@adwinwhite
Copy link
Copy Markdown
Contributor Author

@bors try @rust-timer queue

@rust-timer
Copy link
Copy Markdown
Collaborator

Awaiting bors try build completion.

@rustbot label: +S-waiting-on-perf

@rust-bors
Copy link
Copy Markdown
Contributor

rust-bors Bot commented Apr 25, 2026

⌛ Trying commit e4b9746 with merge 59cc905

To cancel the try build, run the command @bors try cancel.

Workflow: https://github.com/rust-lang/rust/actions/runs/24928820877

rust-bors Bot pushed a commit that referenced this pull request Apr 25, 2026
`-Znext-solver` Eager normalization outside of solver
@rustbot rustbot added the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Apr 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. S-waiting-on-perf Status: Waiting on a perf run to be completed. 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.

5 participants