Skip to content

Regression test for trait-system-refactor#7#156120

Merged
rust-bors[bot] merged 2 commits intorust-lang:mainfrom
inq:test-alias-relate-7
May 4, 2026
Merged

Regression test for trait-system-refactor#7#156120
rust-bors[bot] merged 2 commits intorust-lang:mainfrom
inq:test-alias-relate-7

Conversation

@inq
Copy link
Copy Markdown
Contributor

@inq inq commented May 3, 2026

Adds a regression test for AliasRelate hides info in transitive cases.

The example previously errored under the new solver but compiles cleanly now thanks to eager normalization (post-rust-lang/rust#119106). Verified on both the old and next revisions.

The issue body has an older TODO suggesting a goal-proving variant test; per lcnr's recent note in #t-types/trait-system-refactor ("this isn't an issue as we eagerly normalize"), the underlying mechanism is now resolved across both inference and goal-proving paths, so this single regression test is sufficient. Closing the upstream issue manually after merge.

r? @lcnr

@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 May 3, 2026
Comment thread tests/ui/traits/next-solver/alias-relate/transitive-inference.rs Outdated
@lcnr
Copy link
Copy Markdown
Contributor

lcnr commented May 4, 2026

@bors delegate+

@rust-bors
Copy link
Copy Markdown
Contributor

rust-bors Bot commented May 4, 2026

✌️ @inq, you can now approve this pull request!

If @lcnr told you to "r=me" after making some further change, then please make that change and post @bors r=lcnr.

View changes since this delegation.

@lcnr
Copy link
Copy Markdown
Contributor

lcnr commented May 4, 2026

@bors rollup

@lcnr
Copy link
Copy Markdown
Contributor

lcnr commented May 4, 2026

Thank you!

Co-authored-by: lcnr <rust@lcnr.de>
@inq
Copy link
Copy Markdown
Contributor Author

inq commented May 4, 2026

Thank you!

@inq
Copy link
Copy Markdown
Contributor Author

inq commented May 4, 2026

@bors r=lcnr

@rust-bors
Copy link
Copy Markdown
Contributor

rust-bors Bot commented May 4, 2026

📌 Commit d4c413e has been approved by lcnr

It is now in the queue for this repository.

@rust-bors rust-bors Bot added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels May 4, 2026
rust-bors Bot pushed a commit that referenced this pull request May 4, 2026
Rollup of 3 pull requests

Successful merges:

 - #156120 (Regression test for trait-system-refactor#7)
 - #156125 (refactor using ExprParenthesesNeeded where possible)
 - #156132 (More lifting tweaks)
@rust-bors rust-bors Bot merged commit 19fbc62 into rust-lang:main May 4, 2026
11 checks passed
@rustbot rustbot added this to the 1.97.0 milestone May 4, 2026
rust-timer added a commit that referenced this pull request May 4, 2026
Rollup merge of #156120 - inq:test-alias-relate-7, r=lcnr

Regression test for trait-system-refactor#7

Adds a regression test for [`AliasRelate` hides info in transitive cases](rust-lang/trait-system-refactor-initiative#7).

The example previously errored under the new solver but compiles cleanly now thanks to eager normalization (post-rust-lang/rust#119106). Verified on both the `old` and `next` revisions.

The issue body has an older TODO suggesting a goal-proving variant test; per lcnr's recent note in `#t-types/trait-system-refactor` ("this isn't an issue as we eagerly normalize"), the underlying mechanism is now resolved across both inference and goal-proving paths, so this single regression test is sufficient. Closing the upstream issue manually after merge.

r? @lcnr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. 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.

3 participants