Skip to content

Rollup of 3 pull requests#156134

Open
jhpratt wants to merge 9 commits intorust-lang:mainfrom
jhpratt:rollup-79KaBC4
Open

Rollup of 3 pull requests#156134
jhpratt wants to merge 9 commits intorust-lang:mainfrom
jhpratt:rollup-79KaBC4

Conversation

@jhpratt
Copy link
Copy Markdown
Member

@jhpratt jhpratt commented May 4, 2026

Successful merges:

r? @ghost

Create a similar rollup

inq and others added 9 commits May 4, 2026 04:00
found multiple instances where the equivalent of ExprParenthesesNeeded
was done 'manually'.
replaced them with a `ExprParenthesesNeeded::surrounding` call
Several printing functions (e.g. `short_string`) take a liftable
parameter. This commit changes the call sites to do the lifting instead.
This simplifies the type signatures and puts the `lift` calls inside
`tls::with` calls which is where they usually appear, and the minor cost
of having more `lift` call sites.
This doesn't match any of the other uses.
Co-authored-by: lcnr <rust@lcnr.de>
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
…eeded, r=ShoyuVanilla

refactor using ExprParenthesesNeeded where possible

Found multiple instances where the equivalent of `ExprParenthesesNeeded` was done 'manually'.
Replaced them with an `ExprParenthesesNeeded::surrounding` call.
…=oli-obk

More lifting tweaks

Details in individual commits.

r? @oli-obk
@rust-bors rust-bors Bot added the rollup A PR which is a rollup label May 4, 2026
@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 4, 2026
@jhpratt
Copy link
Copy Markdown
Member Author

jhpratt commented May 4, 2026

@bors r+ rollup=never p=5

@rust-bors
Copy link
Copy Markdown
Contributor

rust-bors Bot commented May 4, 2026

📌 Commit 037e2b0 has been approved by jhpratt

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
Copy link
Copy Markdown
Contributor

rust-bors Bot commented May 4, 2026

⌛ Testing commit 037e2b0 with merge 1d72d7e...

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

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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

rollup A PR which is a rollup 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.

5 participants