Skip to content

Rollup of 11 pull requests - #166495

Open
JonathanBrouwer wants to merge 31 commits into
rust-lang:mainfrom
JonathanBrouwer:rollup-T6GG64L
Open

JonathanBrouwer wants to merge 31 commits into
rust-lang:mainfrom
JonathanBrouwer:rollup-T6GG64L

Conversation

@JonathanBrouwer

@JonathanBrouwer JonathanBrouwer commented Nov 24, 2026 •

Copy link
Copy Markdown
Member

Successful merges:

r? @ghost

Create a similar rollup

machinedramon and others added 30 commits October 18, 2026 19:16
It's not needed until much later.
It was duplicated from the one in `trait_goals.rs` but isn't needed.
(And the corresponding `consider_impl_candidate` method in
`normalizes_to.rs` doesn't have it.)
It's now repeated at two call sites instead of within three callees.
Still not ideal, but an improvement.
This deduplicates code between most callconv computation
implementations. 32bit x86 has some postprocessing going on that makes
it non-trivial to use this abstraction, but for all other archs it works
fine.
And make sure Rust ZSTs are always ignored. Previously they incorrectly
got passed by-ref on SPARC.
ExternAbi distinguishes between ABIs that should have identical
callconvs.
Signed-off-by: Amirhossein Akhlaghpour <m9.akhlaghpoor@gmail.com>
Signed-off-by: Amirhossein Akhlaghpour <m9.akhlaghpoor@gmail.com>
Signed-off-by: Amirhossein Akhlaghpour <m9.akhlaghpoor@gmail.com>
…-eq-and-eq-trace2, r=fee1-dead,lcnr

Remove the 'eq', 'eq_trace', and 'goals_to_obligations' methods from 'At'

Continuation of rust-lang#164244, rust-lang#164244 etc.
…normalized, r=ShoyuVanilla

Supertraits returns Unnormalized

part of rust-lang#155345.

It gets thorny pretty quickly. I kept the changes minimal to make them easier to review, but it'll take some time to streamline everything.

r? @ShoyuVanilla
…e, r=jdonszelmann

`consider_impl_candidate` tweaks

Cleans up the code a little. Also speeds up the new solver a bit, because putting the fast-reject tests (which almost always trigger an early return) before the calls to `consider_impl_candidate` avoids the cost of the function calls.

r? @jdonszelmann
…ce, r=lcnr

Avoid inference constraints from opaque blanket impls

partially addresses trait system refactor initiative issue 229

this avoids constraining unrelated trait arguments when matching blanket impls for opaque types that are not yet defined while still allowing inference from their bounds
…Jung

add `scalbn` and `ilogb` methods on floats

tracking issue: rust-lang#163184
…15, r=lcnr

Add regression test for rust-lang#152415

Adds a regression test for rust-lang#152415.

The ICE (`assertion failed: !origin.span.is_dummy()` in `need_type_info.rs`)
was fixed by rust-lang#156619. I checked it with builds that have debug assertions:

- on 89a9993 (the parent of rust-lang#156619) the test ICEs
- on c712ea9 (rust-lang#156619) and on current master it only reports E0207

I also tried a few variations of the example (dyn, `where Self:`, two const
params, an impl of the trait). Six of them ICE before rust-lang#156619, none after.

Closes rust-lang#152415

r? @lcnr

### LLM disclosure
The task itself came from the issue (find the fixing PR and add a test).
I used an LLM to run the bisect and the before/after builds of rust-lang#156619,
and to help write the test and draft some texts. I reviewed the test and
the results myself, so I understand the change.
…16, r=lcnr

Add regression test for rust-lang#151316

Adds a regression test for rust-lang#151316, covering the three examples from the issue.

A plain bisect points at rust-lang#156976, but that PR only hides the ICE behind the
E0277 error: with `-Zeagerly-emit-delayed-bugs` the `could not normalize`
delayed bug is still emitted until rust-lang#159649, and bisecting with that flag lands
exactly on rust-lang#159649. This is the same as what happened in rust-lang#156700.

This is similar to the test added in rust-lang#164272 for rust-lang#155977 (which also keeps the
delayed bug until rust-lang#159649), but the examples here also cover `FnOnce`
projections and `non_lifetime_binders`.

The test ICEs on nightly-2026-07-01 and only reports E0277 on current master.

Closes rust-lang#151316 closes rust-lang#156700

r? @lcnr

### LLM disclosure
The task itself came from the issue (find the fixing PR and add tests).
I used an LLM to run the bisects (including the one with
`-Zeagerly-emit-delayed-bugs` that points at rust-lang#159649), and to help write the
test and draft some texts. I reviewed the test and the results myself, so I
understand the change.
Introduce compute_abi helper and ComputeCallConv trait

This deduplicates code between most callconv computation implementations. 32bit x86 has some postprocessing going on that makes it non-trivial to use this abstraction, but for all other archs it works fine.

After that deduplicate ZST arg/ret handling and make sure Rust ZSTs are always ignored. Previously they incorrectly
got passed by-ref on SPARC.

This will help a bit with rust-lang#119183 by marking it easier to ensure code like the `repr(transparent)` handling is done consistently across all targets.
… r=fmease

Move `rustdoc-ui` tests in the right folder

Since you mentioned it [here](rust-lang#166246 (review)) that we should cleanup this folder too, here you go @fmease. ;)

r? @fmease
… r=notriddle

[rustdoc] Fix search index generation: if crate content didn't change, it should generate the same search index

Fixes rust-lang#166236.

The problem was that we didn't process items with index lower than the crate's name. For performance reason maybe? Not sure.

r? @notriddle
…thanBrouwer

Allow passing `--exact-match` and `--purge` to `x perf`

r? @JonathanBrouwer
@rust-bors rust-bors Bot added the rollup A PR which is a rollup label Nov 24, 2026
@rustbot rustbot added A-compiler-builtins Area: compiler-builtins (https://github.com/rust-lang/compiler-builtins) A-LLVM Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues. A-run-make Area: port run-make Makefiles to rmake.rs PG-exploit-mitigations Project group: Exploit mitigations S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-libs Relevant to the library team, which will review and decide on the PR/issue. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. T-rustdoc-frontend Relevant to the rustdoc-frontend team, which will review and decide on the web UI/UX output. WG-trait-system-refactor The Rustc Trait System Refactor Initiative (-Znext-solver) labels Nov 24, 2026
@JonathanBrouwer

Copy link
Copy Markdown
Member Author

@bors r+ p=5 force

Trying commonly failed jobs
@bors try jobs=dist-various-1,dist-various-2,test-various,test-x86_64-gnu-aux,test-x86_64-msvc-1,test-aarch64-apple-1,test-aarch64-apple-2,test-x86_64-mingw-1,test-i686-msvc,test-armhf-gnu,test-x86_64-gnu-llvm-22-3,test-aarch64-msvc-2

@rust-bors

rust-bors Bot commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

📌 Commit 1cb01cd has been approved by JonathanBrouwer

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 Nov 24, 2026
rust-bors Bot pushed a commit that referenced this pull request Nov 24, 2026
Rollup of 11 pull requests


try-job: dist-various-1
try-job: dist-various-2
try-job: test-various
try-job: test-x86_64-gnu-aux
try-job: test-x86_64-msvc-1
try-job: test-aarch64-apple-1
try-job: test-aarch64-apple-2
try-job: test-x86_64-mingw-1
try-job: test-i686-msvc
try-job: test-armhf-gnu
try-job: test-x86_64-gnu-llvm-22-3
try-job: test-aarch64-msvc-2
@rust-bors

rust-bors Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

⌛ Trying commit 1cb01cd with merge bd37acb…

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

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

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-compiler-builtins Area: compiler-builtins (https://github.com/rust-lang/compiler-builtins) A-LLVM Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues. A-run-make Area: port run-make Makefiles to rmake.rs PG-exploit-mitigations Project group: Exploit mitigations 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-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-libs Relevant to the library team, which will review and decide on the PR/issue. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. T-rustdoc-frontend Relevant to the rustdoc-frontend team, which will review and decide on the web UI/UX output. 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.