close
Skip to content

stepping into NormalizesTo where-clauses may be productive#155388

Open
lcnr wants to merge 1 commit intorust-lang:mainfrom
lcnr:norm-where-bounds-may-be-productive
Open

stepping into NormalizesTo where-clauses may be productive#155388
lcnr wants to merge 1 commit intorust-lang:mainfrom
lcnr:norm-where-bounds-may-be-productive

Conversation

@lcnr
Copy link
Copy Markdown
Contributor

@lcnr lcnr commented Apr 16, 2026

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

Whether stepping into a where-clause is productive depends not on whether we're proving a NormalizesTo or Trait goal, but instead on how both the impl and the cycle rely on it.

In the example in tests/ui/traits/next-solver/cycles/normalizes-to-is-not-productive-2.rs this is just a productive use given the way @Nadrieril and I are thinking about it right now.

We're changing such cycles to be ambiguous for now, so this does not commit us to anything

r? @BoxyUwU or @nikomatsakis

@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 Apr 16, 2026
@rust-log-analyzer

This comment has been minimized.

@lcnr lcnr force-pushed the norm-where-bounds-may-be-productive branch from 7e15d0a to 7149592 Compare April 17, 2026 07:58
@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented Apr 17, 2026

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.

@rust-log-analyzer

This comment has been minimized.

@lcnr lcnr force-pushed the norm-where-bounds-may-be-productive branch from 7149592 to 45934b8 Compare April 17, 2026 09:33
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.

entering normalization where-bounds incorrectly considered non-productive

4 participants