Skip to content

Rollup of 11 pull requests - #166654

Merged
rust-bors[bot] merged 27 commits into
rust-lang:mainfrom
JonathanBrouwer:rollup-Vw3N7eg
Nov 27, 2026
Merged

rust-bors[bot] merged 27 commits into
rust-lang:mainfrom
JonathanBrouwer:rollup-Vw3N7eg

Conversation

@JonathanBrouwer

Copy link
Copy Markdown
Member

Successful merges:

r? @ghost

Create a similar rollup

mejrs and others added 27 commits November 23, 2026 13:02
It's very bitrotty and conflict prone
This fixes ABI compatibility with nested repr(transparent) and repr(C)
types for mips64, as shown in tests/ui/abi/compatibility.rs.

This patch also fixes trivial-ABI struct member handling for return types.
`drop_bounds`, `dyn_drop`, `trivial_bounds` and `non_upper_case_globals` on const params fired a second time in derived impls because the impls reuse the spans of the derive input. an `#[expect]` on the input item was fulfilled by the lint on the item and the lint on the impl was still reported. the test records the current behaviour.
…am names on items from external macros

derived impls kept the spans of the derive input so the external macro check on the lint span missed them. the lints now skip code whose owning item comes from an external macro.
With the newer cargo build directory layout, the list of transitive dependency
paths is long enough that it risks exceeding the command-line length limit on
Windows.

That problem was already being handled by the ArgFileCommand wrapper, but that
wrapper makes it harder to clean up compiletest's command handling in other
ways.

In this case, it's sufficient to just write the run-make-support dependencies
to an argfile unconditionally.
Now that run-make tests unconditionally use argfiles to pass their
run-make-support dependencies, ArgFileCommand isn't needed.

Removing ArgFileCommand avoids the awkward split between code using Command and
code using ArgFileCommand, enabling further cleanups to command handling.

This commit also removes the shim_utils dependency from compiletest, since it
was only being used for ArgFileCommand.
The "expected a closure taking N arguments, but one taking M arguments
was given" note passed the callable's actual argument count where the
expected count belongs, and vice versa.
It's a compile-time win for builds involving debuginfo and LTO, such as
a release build with debuginfo enabled. (`ripgrep` and `bors` are two
examples of programs that use that configuration.)
While ZSTs themselves are ignored, the paddings are not, so we use
an indirection pointer to fill the argument list when a padding is
needed.
…ebug-info, r=nikic

Use LLVM option `-disable-auto-upgrade-debug-info`

It's a compile-time win for builds involving debuginfo and LTO, such as a release build with debuginfo enabled. (`ripgrep` and `bors` are two examples of programs that use that configuration.)

r? @nikic
callconv: mips64: match gcc for "alignment" of 16-byte-aligned ZSTs

While ZSTs themselves are ignored, the paddings are not, so we use an indirection pointer to fill the argument list when padding is needed.

Fix validated with abi-cafe.

r? folkertdev
…al-macro-items, r=petrochenkov

do not lint `drop_bounds`, `dyn_drop`, `trivial_bounds` and const param names on items from external macros

derived impls copy spans from the derive input so `drop_bounds`, `dyn_drop`, `trivial_bounds` and `non_upper_case_globals` on const params fired again on the generated impl and `#[expect]` on a derived struct only covered the struct. same shape as rust-lang#165818. fixed as: the lints skip code whose owning item comes from an external macro.

as suggested in rust-lang#158943 (comment)

r? @petrochenkov
…=BoxyUwU

abby dsl: minor refactor/cleanup

I've had this diff sitting on my computer for over two months, constantly transferring around WIP PRs as an unrelated cleanup to include at the start, but those PRs keep dying before I post them. So I'm just posting this diff now. Very unimportant change, I just keep being bothered when I see this code and I want to clean it up.

r? @BoxyUwU
…=beetrees

callconv: mips64: handle repr(transparent)

This fixes ABI compatibility with nested repr(transparent) and repr(C) types for mips64, as shown in tests/ui/abi/compatibility.rs.

Fixes rust-lang#115404.

r? beetrees
cc @folkertdev
Remove diagnostics import list

It's very bitrotty and conflict prone
…-obk

miri: support statx syscall

This requires adjusting our "identical C types" check to unfold `repr(transparent)` types.

I thought std uses the statx syscall sometimes because of [this](https://github.com/rust-lang/rust/blob/3481260b58faf2802ca1efb83ccc558250c7d98c/library/std/src/sys/fs/unix.rs#L157-L158), but it turns out it will use the weak symbol first. So adding the syscall isn't actually needed. But at that point I had already written the code, and this did lead me to discover an actual issue with our "identical C types" check.

r? @oli-obk
abby dsl tests: the passing test should check-pass

the file called `test-infra-works.rs` should be `//@ check-pass`, and the file called `test-infra-fails-properly.rs` should be where failures are placed. that is the whole point of the two files and their names :3 (... perhaps we should split the two files into individual tests though, they're getting a bit large/unwieldy)

rust-lang#164345 is the pr that removed `//@ check-pass` and added a `.stderr` file for `test-infra-works.rs`, cc @born-in-autumn

r? @BoxyUwU
…=beetrees

specify target CPUs in 'powerpc-types.rs' assembly test

The test currently relies on the default CPU configured for each target. This makes its behavior dependent on the target specification, which can be modified by downstream distributions.

Specifically, CentOS/RHEL 9/10 configure `powerpc64le-unknown-linux-gnu` target to use `pwr9`, and CentOS/RHEL 11 will use pwr10. This enables `power9-vector` by default and changes the code generation assumptions made by the test.

This change set the baseline CPU for each PowerPC target revision, based on upstream's target definition in `compiler/rustc_target/src/spec/targets/<target>.rs`:

* `generic` for powerpc
* `ppc64` for powerpc64
* `ppc64le` for powerpc64le

Additional target features remain enabled only in the revisions that explicitly test them.

This makes the test independent of downstream changes to default target CPUs and keeps its code generation assumptions reproducible.
compiletest: Use an explicit argfile instead of ArgFileCommand

While trying to clean up some command handling in compiletest, I was frustrated by the awkward split between code that uses stdlib Command, and code that uses the ArgFileCommand wrapper.

On closer inspection, it seems that the only reason to use ArgFileCommand at all (rust-lang@d7a58fa in rust-lang#155439) was that run-make tests need to pass a lot of absolute paths to the compiler, as a result of the newer cargo build dir layout. But in that particular case, it's reasonable to instead *always* write the dependency paths to an argfile.

I think it's simpler overall to go back to using ordinary Command in compiletest, to avoid having two different command types for a relatively unimportant reason, and to avoid the extra hassle of ArgFileCommand needing to schedule deletion of a temporary file.

In the future, I would like to make compiletest a bit more disciplined about how it creates commands for running compilers and running test executables, because currently it's all a bit of a crufty mess.
…nt-note, r=JonathanBrouwer

Fix reversed argument counts in Fn trait mismatch note

The "expected a closure taking N arguments, but one taking M arguments was given" note passed the callable's actual argument count where the expected count belongs, and vice versa.
@rust-bors rust-bors Bot added the rollup A PR which is a rollup label Nov 27, 2026
@rustbot rustbot added A-compiletest Area: The compiletest test runner A-LLVM Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues. labels Nov 27, 2026
@rustbot rustbot added A-testsuite Area: The testsuite used to check the correctness of rustc 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. labels Nov 27, 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 27, 2026

Copy link
Copy Markdown
Contributor

📌 Commit 5993bf2 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 27, 2026
rust-bors Bot pushed a commit that referenced this pull request Nov 27, 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

This comment has been minimized.

@rust-bors

This comment has been minimized.

@rust-bors

rust-bors Bot commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

☀️ Try build successful (CI)
Build commit: b99ad30 (b99ad3053fd09cd471d0de0d79aaf05ec0dcbbd0)
Base parent: b8794ab (b8794ab3b96cbe1cd0698ecec35b7ffcedc9e995)

@rust-bors rust-bors Bot added merged-by-bors This PR was explicitly merged by bors. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Nov 27, 2026
@rust-bors

rust-bors Bot commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

☀️ Test successful - CI
Approved by: JonathanBrouwer
Duration: 2h 57m 19s
Pushing b61bfe5 to main...

@rust-bors
rust-bors Bot merged commit b61bfe5 into rust-lang:main Nov 27, 2026
16 checks passed
@rustbot rustbot added this to the 1.102.0 milestone Nov 27, 2026
@github-actions

Copy link
Copy Markdown
Contributor
What is this? This is an experimental post-merge analysis report that shows differences in test outcomes between the merged PR and its parent PR.

Comparing b8794ab (parent) -> b61bfe5 (this PR)

Test differences

Show 121 test diffs

Stage 1

  • [codegen] tests/codegen-llvm/mips64-abi/aggregate-alignment.rs#mips64: [missing] -> pass (J0)
  • [codegen] tests/codegen-llvm/mips64-abi/aggregate-alignment.rs#mips64el: [missing] -> pass (J0)
  • [ui (polonius)] tests/ui/lint/rfc-2383-lint-reason/derive-expect-late-lints.rs: [missing] -> pass (J2)
  • [ui] tests/ui/lint/rfc-2383-lint-reason/derive-expect-late-lints.rs: [missing] -> pass (J3)

Stage 2

  • [codegen] tests/codegen-llvm/mips64-abi/aggregate-alignment.rs#mips64: [missing] -> pass (J1)
  • [codegen] tests/codegen-llvm/mips64-abi/aggregate-alignment.rs#mips64el: [missing] -> pass (J1)
  • [ui] tests/ui/lint/rfc-2383-lint-reason/derive-expect-late-lints.rs: [missing] -> pass (J4)

Additionally, 114 doctest diffs were found. These are ignored, as they are noisy.

Job group index

Test dashboard

Run

cargo run --manifest-path src/ci/citool/Cargo.toml -- \
    test-dashboard b61bfe5f22374c5570299aee056c23ad9acc81ff --output-dir test-dashboard

And then open test-dashboard/index.html in your browser to see an overview of all executed tests.

Job duration changes

  1. test-pr-check-1: 20m 16s -> 32m 32s (+60.5%)
  2. test-i686-gnu-2: 1h 4m -> 1h 42m (+58.5%)
  3. test-pr-check-2: 23m 44s -> 37m 26s (+57.7%)
  4. test-x86_64-gnu-distcheck: 1h 42m -> 2h 30m (+47.0%)
  5. dist-armv7-linux: 1h 8m -> 1h 39m (+45.6%)
  6. test-armhf-gnu: 1h 4m -> 1h 33m (+44.0%)
  7. test-x86_64-gnu-stdlib-semver-check: 10m 47s -> 15m 26s (+43.1%)
  8. dist-arm-linux-gnueabi: 1h 11m -> 1h 35m (+33.7%)
  9. test-tidy: 4m 59s -> 6m 39s (+33.4%)
  10. test-x86_64-mingw-2: 2h 44m -> 1h 52m (-31.9%)
How to interpret the job duration changes?

Job durations can vary a lot, based on the actual runner instance
that executed the job, system noise, invalidated caches, etc. The table above is provided
mostly for t-infra members, for simpler debugging of potential CI slow-downs.

@rust-bors

rust-bors Bot commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

📌 Perf builds for each rolled up PR:

PR# Message Perf Build Sha
#165836 Use LLVM option -disable-auto-upgrade-debug-info d58ffadbb881fb79ea903d303e0910217056087e
(link)
#164783 callconv: mips64: match gcc for "alignment" of 16-byte-alig… 0754578586aa4c4043395486ae2a47e79074d293
(link)
#166634 do not lint drop_bounds, dyn_drop, trivial_bounds and… e8a7a5d2d7cedfec5f119df1d49d9dedc5126aca
(link)
#166649 abby dsl: minor refactor/cleanup c2e5568aaa77a29071854847f573470a3867485e
(link)
#164628 callconv: mips64: handle repr(transparent) f0068ebc35146d21dedd04ac1217373be761b3e9
(link)
#166387 Remove diagnostics import list c19a6bf106125e0cdc8b12e3c48aef099d9dda35
(link)
#166564 miri: support statx syscall d0457a6c5b3ae441f3524f7b125bfe9809d6d9c6
(link)
#166583 abby dsl tests: the passing test should check-pass a56b850756fa6b308723cf0ada02dff047fd94fc
(link)
#166595 specify target CPUs in 'powerpc-types.rs' assembly test 68d8eb0483ef72d7bce07a75109c83f8fe6afaae
(link)
#166640 compiletest: Use an explicit argfile instead of ArgFileComm… e70b7ef4b19a52bf3f45902e544cb8564210d4fc
(link)
#166646 Fix reversed argument counts in Fn trait mismatch note adf92851a53b5732f1155c926fe2aa446354288f
(link)

parent commit: b8794ab3b9

In the case of a perf regression, run the following command with the SHAs of each PR you suspect might be the cause: @rust-timer triage $SHA $SHA $SHA..., or run @rust-timer triage all to benchmark all rollup members.

@rust-timer

Copy link
Copy Markdown

Finished benchmarking commit (b61bfe5): comparison URL.

Overall result: ✅ improvements - no action needed

@rustbot label: -perf-regression

Instruction count

Our most reliable metric. Used to determine the overall result above. However, even this metric can be noisy.

mean range count
Regressions ❌
(primary)
- - 0
Regressions ❌
(secondary)
- - 0
Improvements ✅
(primary)
-1.8% [-2.0%, -1.6%] 3
Improvements ✅
(secondary)
-1.8% [-2.0%, -1.6%] 3
All ❌✅ (primary) -1.8% [-2.0%, -1.6%] 3

Max RSS (memory usage)

Results (secondary 0.8%)

A less reliable metric. May be of interest, but not used to determine the overall result above.

mean range count
Regressions ❌
(primary)
- - 0
Regressions ❌
(secondary)
0.8% [0.6%, 1.0%] 5
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) - - 0

Cycles

Results (primary -1.7%, secondary 1.2%)

A less reliable metric. May be of interest, but not used to determine the overall result above.

mean range count
Regressions ❌
(primary)
- - 0
Regressions ❌
(secondary)
1.5% [0.7%, 2.9%] 7
Improvements ✅
(primary)
-1.7% [-1.7%, -1.7%] 1
Improvements ✅
(secondary)
-0.6% [-0.6%, -0.6%] 1
All ❌✅ (primary) -1.7% [-1.7%, -1.7%] 1

Binary size

This perf run didn't have relevant results for this metric.

Bootstrap: 461.156s -> 462.15s (0.22%)
Artifact size: 405.64 MiB -> 405.59 MiB (-0.01%)

@JonathanBrouwer

Copy link
Copy Markdown
Member Author

@rust-timer triage all

@rust-timer

rust-timer commented Nov 27, 2026 •

Copy link
Copy Markdown
Running triage with 2 benchmarks

Triage only executes the benchmarks on rollup members, that were changed significantly on the rollup.
For this rollup, these benchmarks are:

  • ripgrep-14.1.1
  • ripgrep-14.1.1-nll

#165836 d58ffad Use LLVM option -disable-auto-upgrade-debug-info

Instruction count

Our most reliable metric. Used to determine the overall result above. However, even this metric can be noisy.

mean range count
Regressions ❌
(primary)
- - 0
Regressions ❌
(secondary)
- - 0
Improvements ✅
(primary)
-1.8% [-2.0%, -1.6%] 3
Improvements ✅
(secondary)
-1.8% [-2.0%, -1.6%] 3
All ❌✅ (primary) -1.8% [-2.0%, -1.6%] 3

Max RSS (memory usage)

Results (primary 2.5%)

A less reliable metric. May be of interest, but not used to determine the overall result above.

mean range count
Regressions ❌
(primary)
2.5% [2.5%, 2.5%] 1
Regressions ❌
(secondary)
- - 0
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) 2.5% [2.5%, 2.5%] 1

Cycles

This perf run didn't have relevant results for this metric.

Binary size

This perf run didn't have relevant results for this metric.


#164783 0754578 callconv: mips64: match gcc for "alignment" of 16-byte-aligned ZSTs

This perf run didn't have relevant results for the `instruction count` metric.

Instruction count

This perf run didn't have relevant results for this metric.

Max RSS (memory usage)

This perf run didn't have relevant results for this metric.

Cycles

This perf run didn't have relevant results for this metric.

Binary size

This perf run didn't have relevant results for this metric.


#166634 e8a7a5d do not lint drop_bounds, dyn_drop, trivial_bounds and const param names on items from external macros

This perf run didn't have relevant results for the `instruction count` metric.

Instruction count

This perf run didn't have relevant results for this metric.

Max RSS (memory usage)

This perf run didn't have relevant results for this metric.

Cycles

This perf run didn't have relevant results for this metric.

Binary size

This perf run didn't have relevant results for this metric.


#166649 c2e5568 abby dsl: minor refactor/cleanup

This perf run didn't have relevant results for the `instruction count` metric.

Instruction count

This perf run didn't have relevant results for this metric.

Max RSS (memory usage)

This perf run didn't have relevant results for this metric.

Cycles

This perf run didn't have relevant results for this metric.

Binary size

This perf run didn't have relevant results for this metric.


#164628 f0068eb callconv: mips64: handle repr(transparent)

This perf run didn't have relevant results for the `instruction count` metric.

Instruction count

This perf run didn't have relevant results for this metric.

Max RSS (memory usage)

This perf run didn't have relevant results for this metric.

Cycles

This perf run didn't have relevant results for this metric.

Binary size

This perf run didn't have relevant results for this metric.


#166387 c19a6bf Remove diagnostics import list

This perf run didn't have relevant results for the `instruction count` metric.

Instruction count

This perf run didn't have relevant results for this metric.

Max RSS (memory usage)

This perf run didn't have relevant results for this metric.

Cycles

This perf run didn't have relevant results for this metric.

Binary size

This perf run didn't have relevant results for this metric.


#166564 d0457a6 miri: support statx syscall

This perf run didn't have relevant results for the `instruction count` metric.

Instruction count

This perf run didn't have relevant results for this metric.

Max RSS (memory usage)

Results (primary 2.4%)

A less reliable metric. May be of interest, but not used to determine the overall result above.

mean range count
Regressions ❌
(primary)
2.4% [2.4%, 2.4%] 1
Regressions ❌
(secondary)
- - 0
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) 2.4% [2.4%, 2.4%] 1

Cycles

This perf run didn't have relevant results for this metric.

Binary size

This perf run didn't have relevant results for this metric.


#166583 a56b850 abby dsl tests: the passing test should check-pass

This perf run didn't have relevant results for the `instruction count` metric.

Instruction count

This perf run didn't have relevant results for this metric.

Max RSS (memory usage)

This perf run didn't have relevant results for this metric.

Cycles

This perf run didn't have relevant results for this metric.

Binary size

This perf run didn't have relevant results for this metric.


#166595 68d8eb0 specify target CPUs in 'powerpc-types.rs' assembly test

This perf run didn't have relevant results for the `instruction count` metric.

Instruction count

This perf run didn't have relevant results for this metric.

Max RSS (memory usage)

This perf run didn't have relevant results for this metric.

Cycles

This perf run didn't have relevant results for this metric.

Binary size

This perf run didn't have relevant results for this metric.


#166640 e70b7ef compiletest: Use an explicit argfile instead of ArgFileCommand

This perf run didn't have relevant results for the `instruction count` metric.

Instruction count

This perf run didn't have relevant results for this metric.

Max RSS (memory usage)

This perf run didn't have relevant results for this metric.

Cycles

This perf run didn't have relevant results for this metric.

Binary size

This perf run didn't have relevant results for this metric.


#166646 adf9285 Fix reversed argument counts in Fn trait mismatch note

This perf run didn't have relevant results for the `instruction count` metric.

Instruction count

This perf run didn't have relevant results for this metric.

Max RSS (memory usage)

This perf run didn't have relevant results for this metric.

Cycles

Results (primary 1.3%)

A less reliable metric. May be of interest, but not used to determine the overall result above.

mean range count
Regressions ❌
(primary)
1.3% [1.3%, 1.3%] 1
Regressions ❌
(secondary)
- - 0
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) 1.3% [1.3%, 1.3%] 1

Binary size

This perf run didn't have relevant results for this metric.

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

Labels

A-compiletest Area: The compiletest test runner A-LLVM Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues. A-testsuite Area: The testsuite used to check the correctness of rustc merged-by-bors This PR was explicitly merged by bors. rollup A PR which is a rollup 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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.