Repository navigation
Rollup of 11 pull requests - #166654
Rollup of 11 pull requests#166654
Conversation
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.
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
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
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 differencesShow 121 test diffsStage 1
Stage 2
Additionally, 114 doctest diffs were found. These are ignored, as they are noisy. Job group index
Test dashboardRun cargo run --manifest-path src/ci/citool/Cargo.toml -- \
test-dashboard b61bfe5f22374c5570299aee056c23ad9acc81ff --output-dir test-dashboardAnd then open Job duration changes
How to interpret the job duration changes?Job durations can vary a lot, based on the actual runner instance |
|
📌 Perf builds for each rolled up PR:
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: |
|
Finished benchmarking commit (b61bfe5): comparison URL. Overall result: ✅ improvements - no action needed@rustbot label: -perf-regression Instruction countOur most reliable metric. Used to determine the overall result above. However, even this metric can be noisy.
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.
CyclesResults (primary -1.7%, secondary 1.2%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Binary sizeThis perf run didn't have relevant results for this metric. Bootstrap: 461.156s -> 462.15s (0.22%) |
|
@rust-timer triage all |
Running triage with 2 benchmarksTriage only executes the benchmarks on rollup members, that were changed significantly on the rollup.
#165836 d58ffad Use LLVM option
|
| 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.
Successful merges:
-disable-auto-upgrade-debug-info#165836 (Use LLVM option-disable-auto-upgrade-debug-info)drop_bounds,dyn_drop,trivial_boundsand const param names on items from external macros #166634 (do not lintdrop_bounds,dyn_drop,trivial_boundsand const param names on items from external macros)r? @ghost
Create a similar rollup