Skip to content

Handle recursive TAIT item bounds - #160711

Open
amirHdev wants to merge 1 commit into
rust-lang:mainfrom
amirHdev:fix-next-solver-tait
Open

Handle recursive TAIT item bounds#160711
amirHdev wants to merge 1 commit into
rust-lang:mainfrom
amirHdev:fix-next-solver-tait

Conversation

@amirHdev

@amirHdev amirHdev commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

fixes rust-lang/trait-system-refactor-initiative#288

Avoiding normalizing the exact opaque instance currently being checked while continuing to normalize unrelated aliases and it also adds a small fast path in SolverRelating after resolving inference variables inside non-rigid aliases if both sides are identical we skip creating an unnecessary normalization goal

the next revision of the regression failed with item does not constrain Foo::{opaque#0} while the current solver accepts it

Signed-off-by: Amirhossein Akhlaghpour <m9.akhlaghpoor@gmail.com>
@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 Aug 7, 2026
@amirHdev
amirHdev marked this pull request as ready for review August 8, 2026 06:50
@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Aug 8, 2026
@rustbot rustbot removed the S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. label Aug 8, 2026
@rustbot

rustbot commented Aug 8, 2026

Copy link
Copy Markdown
Collaborator

r? @khyperia

rustbot has assigned @khyperia.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

Why was this reviewer chosen?

The reviewer was selected based on:

  • Owners of files modified in this PR: compiler
  • compiler expanded to 75 candidates
  • Random selection from 19 candidates

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.

feature(type_alias_impl_trait): error: item does not constrain Foo::{opaque#0}

3 participants