Skip to content

Rollup of 19 pull requests#155253

Merged
rust-bors[bot] merged 56 commits intorust-lang:mainfrom
JonathanBrouwer:rollup-lERdTAB
Apr 13, 2026
Merged

Rollup of 19 pull requests#155253
rust-bors[bot] merged 56 commits intorust-lang:mainfrom
JonathanBrouwer:rollup-lERdTAB

Conversation

@JonathanBrouwer
Copy link
Copy Markdown
Contributor

Successful merges:

r? @ghost

Create a similar rollup

Enselic and others added 30 commits March 16, 2026 18:39
…pable

Some optimization passes _improve_ compile times [1]. So we want to run
some passes even with `-Copt-level=0`. That means that some of the lines
in the test can be optimized away. To make regression testing more
robust, we also want to run the test with such passes disabled. The
solution is to use two revisions. One with default `-Copt-level=0`
passes, and one "even less optimized", with enough optimization passes
disabled to keep the maximum number of lines steppable.

[1]: rust-lang/compiler-team#319
Avoid two of its uses in diagnostic reporting and effective visibility collection.
The method is only supposed to be used inside the import resolution algorithm, and the removed uses happened after import resolution already converged.

Some comments are also added.
Using `self.(non_)glob_decl` directly makes it more clear.
Using `self.(non_)glob_decl` directly makes it more clear.
It is no longer needed to pass import validation, and the removal avoids some secondary errors.

Also add a couple of asserts
Fixes rust-lang#154619.

If `DerefPure` were dyn-compatible, a trait object of a subtrait of
`DerefPure` could be created by unsize-coercing an existing type that
implements `DerefPure`. But then the trait object could have its own
non-pure impl of `Deref`/`DerefMut`, which is unsound, since the trait
object would implement `DerefPure`. Thus, we make `DerefPure`
dyn-incompatible.
The refactoring in ba46286 ("std: Use more unix.rs code on WASI
targets") moved WASI from its own thread module into the shared unix.rs
module. However, it did not carry over the available_parallelism()
implementation for WASI, causing it to fall through to the unsupported
catch-all. This silently regressed the support originally added in
f0b7008.

Fix this by adding WASI to the sysconf-based cfg_select arm alongside
other platforms that use libc::sysconf(_SC_NPROCESSORS_ONLN). This
delegates to wasi-libc, which currently always returns 1 but opens up
the possibility for wasi-libc to report actual processor counts in the
future.

This requires libc to export _SC_NPROCESSORS_ONLN for WASI targets,
which has been added in libc 0.2.184.
…tput

Add a flag to control verbose subprocess output for run-make tests. When using --no-capture on panic=abort test suites like cg_clif, passing test output can flood the terminal. This flag (default true) lets users opt out via --verbose-run-make-subprocess-output=false.

Extract a private print_command_output helper in run-make-support to avoid inlining the output logic in handle_failed_output, ensuring failures always print regardless of the flag.
@rustbot rustbot added F-autodiff `#![feature(autodiff)]` 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-clippy Relevant to the Clippy team. 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-release Relevant to the release subteam, which will review and decide on the PR/issue. labels Apr 13, 2026
@JonathanBrouwer
Copy link
Copy Markdown
Contributor Author

@bors r+ rollup=never p=5

@rust-bors
Copy link
Copy Markdown
Contributor

rust-bors bot commented Apr 13, 2026

📌 Commit 9f11d53 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 Apr 13, 2026
@rust-bors

This comment has been minimized.

@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 Apr 13, 2026
@rust-bors
Copy link
Copy Markdown
Contributor

rust-bors bot commented Apr 13, 2026

☀️ Test successful - CI
Approved by: JonathanBrouwer
Duration: 3h 20m 35s
Pushing 17584a1 to main...

@rust-bors rust-bors bot merged commit 17584a1 into rust-lang:main Apr 13, 2026
12 checks passed
@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 a72e2a7 (parent) -> 17584a1 (this PR)

Test differences

Show 9475 test diffs

Stage 1

  • [codegen] tests/codegen-llvm/inject-autocast.rs: [missing] -> pass (J0)
  • [debuginfo-gdb] tests/debuginfo/basic-stepping.rs#no-SingleUseConsts-mir-pass: pass -> [missing] (J0)
  • [debuginfo-gdb] tests/debuginfo/basic-stepping.rs#opt-level-0: [missing] -> pass (J0)
  • [debuginfo-gdb] tests/debuginfo/macro-stepping.rs#default-mir-passes: pass -> [missing] (J0)
  • [debuginfo-gdb] tests/debuginfo/macro-stepping.rs#maximally-steppable: [missing] -> pass (J0)
  • [debuginfo-gdb] tests/debuginfo/macro-stepping.rs#no-SingleUseConsts-mir-pass: pass -> [missing] (J0)
  • [debuginfo-gdb] tests/debuginfo/macro-stepping.rs#opt-level-0: [missing] -> pass (J0)
  • [ui] tests/ui/auto-traits/distinct-type-tuple-by-negative-impl.rs: [missing] -> pass (J0)
  • [ui] tests/ui/binding/ref-in-let-lhs-in-field.rs: [missing] -> pass (J0)
  • [ui] tests/ui/codegen/incorrect-llvm-intrinsic-signature.rs: [missing] -> pass (J0)
  • [ui] tests/ui/codegen/unknown-llvm-intrinsic.rs: [missing] -> pass (J0)
  • [ui] tests/ui/deref/derefmut-closure-drop-order.rs: [missing] -> pass (J0)
  • [ui] tests/ui/eii/shadow_builtin.rs: [missing] -> pass (J0)
  • [ui] tests/ui/eii/static/cross_crate_decl.rs: [missing] -> pass (J0)
  • [ui] tests/ui/eii/static/cross_crate_def.rs: [missing] -> pass (J0)
  • [ui] tests/ui/eii/static/duplicate.rs: [missing] -> pass (J0)
  • [ui] tests/ui/eii/static/mismatch_fn_static.rs: [missing] -> pass (J0)
  • [ui] tests/ui/eii/static/mismatch_mut2.rs: [missing] -> pass (J0)
  • [ui] tests/ui/eii/static/mismatch_safety.rs: [missing] -> pass (J0)
  • [ui] tests/ui/eii/static/mismatch_static_fn.rs: [missing] -> pass (J0)
  • [ui] tests/ui/eii/static/multiple_decls.rs: [missing] -> pass (J0)
  • [ui] tests/ui/eii/static/multiple_impls.rs: [missing] -> pass (J0)
  • [ui] tests/ui/eii/static/mut.rs: [missing] -> pass (J0)
  • [ui] tests/ui/eii/static/wrong_ty.rs: [missing] -> pass (J0)
  • [ui] tests/ui/feature-gates/feature-gate-check-nested-macro-invocation.rs: [missing] -> pass (J0)
  • [ui] tests/ui/issues/issue-21033.rs: pass -> [missing] (J0)
  • [ui] tests/ui/issues/issue-3154.rs: pass -> [missing] (J0)
  • [ui] tests/ui/issues/issue-3874.rs: pass -> [missing] (J0)
  • [ui] tests/ui/issues/issue-5100.rs: pass -> [missing] (J0)
  • [ui] tests/ui/pattern/match-struct-var-having-boxed-field.rs: [missing] -> pass (J0)
  • [ui] tests/ui/scalable-vectors/transmute.rs: [missing] -> ignore (only executed when the architecture is aarch64) (J0)
  • [codegen] tests/codegen-llvm/inject-autocast.rs: [missing] -> ignore (only executed when the architecture is x86_64) (J5)

Stage 2

  • [ui] tests/ui/eii/static/argument_required.rs: [missing] -> ignore (ignored when the operating system is windows) (J1)
  • [ui] tests/ui/eii/static/cross_crate_decl.rs: [missing] -> ignore (ignored when the operating system is windows) (J1)
  • [ui] tests/ui/eii/static/duplicate.rs: [missing] -> ignore (ignored when the operating system is windows) (J1)
  • [ui] tests/ui/eii/static/mismatch_fn_static.rs: [missing] -> ignore (ignored when the operating system is windows) (J1)
  • [ui] tests/ui/eii/static/mismatch_mut2.rs: [missing] -> ignore (ignored when the operating system is windows) (J1)
  • [ui] tests/ui/eii/static/mismatch_static_fn.rs: [missing] -> ignore (ignored when the operating system is windows) (J1)
  • [ui] tests/ui/eii/static/simple.rs: [missing] -> ignore (ignored when the operating system is windows) (J1)
  • [ui] tests/ui/eii/static/subtype_wrong.rs: [missing] -> ignore (ignored when the operating system is windows) (J1)
  • [ui] tests/ui/eii/static/wrong_ty.rs: [missing] -> ignore (ignored when the operating system is windows) (J1)
  • [ui] tests/ui/auto-traits/distinct-type-tuple-by-negative-impl.rs: [missing] -> pass (J2)
  • [ui] tests/ui/issues/issue-21033.rs: pass -> [missing] (J2)
  • [ui] tests/ui/issues/issue-29516.rs: pass -> [missing] (J2)
  • [ui] tests/ui/issues/issue-3154.rs: pass -> [missing] (J2)
  • [ui] tests/ui/issues/issue-3874.rs: pass -> [missing] (J2)
  • [ui] tests/ui/lifetimes/missing-lifetime-in-return.rs: [missing] -> pass (J2)
  • [ui] tests/ui/pattern/match-errors-derived-error-suppression.rs: [missing] -> pass (J2)
  • [ui] tests/ui/pattern/match-struct-var-having-boxed-field.rs: [missing] -> pass (J2)
  • [ui] tests/ui/eii/shadow_builtin.rs: [missing] -> pass (J3)
  • [ui] tests/ui/eii/static/argument_required.rs: [missing] -> pass (J3)
  • [ui] tests/ui/eii/static/cross_crate_def.rs: [missing] -> pass (J3)
  • [ui] tests/ui/eii/static/duplicate.rs: [missing] -> pass (J3)
  • [ui] tests/ui/eii/static/mismatch_mut.rs: [missing] -> pass (J3)
  • [ui] tests/ui/eii/static/mismatch_mut2.rs: [missing] -> pass (J3)
  • [ui] tests/ui/eii/static/mismatch_safety2.rs: [missing] -> pass (J3)
  • [ui] tests/ui/eii/static/mismatch_static_fn.rs: [missing] -> pass (J3)
  • [ui] tests/ui/eii/static/multiple_impls.rs: [missing] -> pass (J3)
  • [ui] tests/ui/eii/static/mut.rs: [missing] -> pass (J3)
  • [ui] tests/ui/eii/static/same_address.rs: [missing] -> pass (J3)
  • [ui] tests/ui/eii/static/subtype.rs: [missing] -> pass (J3)
  • [ui] tests/ui/eii/static/wrong_ty.rs: [missing] -> pass (J3)
  • [debuginfo-gdb] tests/debuginfo/basic-stepping.rs#default-mir-passes: ignore (gcc backend is marked as ignore) -> [missing] (J4)
  • [ui] tests/ui/codegen/incorrect-arch-intrinsic.rs: [missing] -> ignore (gcc backend is marked as ignore) (J4)
  • [ui] tests/ui/codegen/unknown-llvm-intrinsic.rs: [missing] -> ignore (gcc backend is marked as ignore) (J4)
  • [ui] tests/ui/eii/shadow_builtin.rs: [missing] -> ignore (gcc backend is marked as ignore) (J4)
  • [ui] tests/ui/eii/static/cross_crate_decl.rs: [missing] -> ignore (gcc backend is marked as ignore) (J4)
  • [ui] tests/ui/eii/static/duplicate.rs: [missing] -> ignore (gcc backend is marked as ignore) (J4)
  • [ui] tests/ui/eii/static/mismatch_safety2.rs: [missing] -> ignore (gcc backend is marked as ignore) (J4)
  • [ui] tests/ui/eii/static/mismatch_static_fn.rs: [missing] -> ignore (gcc backend is marked as ignore) (J4)
  • [ui] tests/ui/eii/static/multiple_impls.rs: [missing] -> ignore (gcc backend is marked as ignore) (J4)
  • [ui] tests/ui/eii/static/mut.rs: [missing] -> ignore (gcc backend is marked as ignore) (J4)
  • [ui] tests/ui/eii/static/same_address.rs: [missing] -> ignore (gcc backend is marked as ignore) (J4)
  • [ui] tests/ui/eii/static/simple.rs: [missing] -> ignore (gcc backend is marked as ignore) (J4)
  • [ui] tests/ui/eii/static/subtype.rs: [missing] -> ignore (gcc backend is marked as ignore) (J4)
  • [debuginfo-cdb] tests/debuginfo/basic-stepping.rs#default-mir-passes: pass -> [missing] (J6)
  • [debuginfo-cdb] tests/debuginfo/macro-stepping.rs#maximally-steppable: [missing] -> pass (J6)
  • [debuginfo-lldb] tests/debuginfo/basic-stepping.rs#default-mir-passes: pass -> [missing] (J7)
  • [debuginfo-lldb] tests/debuginfo/basic-stepping.rs#maximally-steppable: [missing] -> pass (J7)
  • [debuginfo-lldb] tests/debuginfo/basic-stepping.rs#no-SingleUseConsts-mir-pass: pass -> [missing] (J7)
  • [debuginfo-lldb] tests/debuginfo/basic-stepping.rs#opt-level-0: [missing] -> pass (J7)
  • [debuginfo-lldb] tests/debuginfo/macro-stepping.rs#default-mir-passes: ignore (ignored when the debugger is lldb) -> [missing] (J7)
  • [debuginfo-lldb] tests/debuginfo/macro-stepping.rs#maximally-steppable: [missing] -> ignore (ignored when the debugger is lldb) (J7)
  • [debuginfo-lldb] tests/debuginfo/macro-stepping.rs#no-SingleUseConsts-mir-pass: ignore (ignored when the debugger is lldb) -> [missing] (J7)
  • [debuginfo-lldb] tests/debuginfo/macro-stepping.rs#opt-level-0: [missing] -> ignore (ignored when the debugger is lldb) (J7)
  • [ui] tests/ui/codegen/incorrect-llvm-intrinsic-signature.rs: [missing] -> pass (J8)
  • [ui] tests/ui/codegen/unknown-llvm-intrinsic.rs: [missing] -> pass (J8)
  • [codegen] tests/codegen-llvm/inject-autocast.rs: [missing] -> ignore (only executed when the architecture is x86_64) (J9)
  • [debuginfo-gdb (split-dwarf)] tests/debuginfo/basic-stepping.rs#default-mir-passes: pass -> [missing] (J10)
  • [debuginfo-gdb (split-dwarf)] tests/debuginfo/basic-stepping.rs#opt-level-0: [missing] -> pass (J10)
  • [debuginfo-gdb (split-dwarf)] tests/debuginfo/macro-stepping.rs#maximally-steppable: [missing] -> ignore (ignored when the GDB version is lower than 13.0) (J10)
  • [debuginfo-gdb (split-dwarf)] tests/debuginfo/macro-stepping.rs#no-SingleUseConsts-mir-pass: ignore (ignored when the GDB version is lower than 13.0) -> [missing] (J10)
  • [debuginfo-gdb (split-dwarf)] tests/debuginfo/macro-stepping.rs#opt-level-0: [missing] -> ignore (ignored when the GDB version is lower than 13.0) (J10)
  • [debuginfo-gdb] tests/debuginfo/macro-stepping.rs#maximally-steppable: [missing] -> pass (J11)
  • [debuginfo-gdb] tests/debuginfo/macro-stepping.rs#default-mir-passes: ignore (ignored when the GDB version is lower than 13.0) -> [missing] (J12)
  • [debuginfo-gdb] tests/debuginfo/macro-stepping.rs#maximally-steppable: [missing] -> ignore (ignored when the GDB version is lower than 13.0) (J12)
  • [debuginfo-gdb] tests/debuginfo/macro-stepping.rs#no-SingleUseConsts-mir-pass: ignore (ignored when the GDB version is lower than 13.0) -> [missing] (J12)
  • [debuginfo-gdb] tests/debuginfo/basic-stepping.rs#no-SingleUseConsts-mir-pass: pass -> [missing] (J13)
  • [debuginfo-gdb] tests/debuginfo/basic-stepping.rs#opt-level-0: [missing] -> pass (J13)
  • [ui] tests/ui/scalable-vectors/transmute.rs: [missing] -> pass (J14)

(and 69 additional test diffs)

Additionally, 9306 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 17584a181979f04f2aaad867332c22db1caa511a --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. pr-check-1: 32m 39s -> 42m 2s (+28.8%)
  2. x86_64-msvc-ext1: 2h 11m -> 1h 41m (-22.5%)
  3. dist-apple-various: 1h 38m -> 1h 23m (-15.6%)
  4. dist-android: 28m 39s -> 32m 16s (+12.6%)
  5. x86_64-gnu-llvm-22-2: 1h 31m -> 1h 42m (+12.5%)
  6. dist-powerpc64-linux-gnu: 1h 28m -> 1h 37m (+10.2%)
  7. dist-aarch64-apple: 2h 22m -> 2h 8m (-9.9%)
  8. aarch64-msvc-2: 1h 54m -> 1h 44m (-8.6%)
  9. x86_64-gnu-llvm-21-3: 1h 49m -> 1h 58m (+8.5%)
  10. test-various: 1h 49m -> 1h 59m (+8.3%)
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-timer
Copy link
Copy Markdown
Collaborator

📌 Perf builds for each rolled up PR:

PR# Message Perf Build Sha
#140763 Change codegen of LLVM intrinsics to be name-based, and add… 7e7d5afea1e05859a9df8ac528dd6a532e3c1468 (link)
#153604 Fix thread::available_parallelism on WASI targets with thre… 2de02f7ee5a505c34a7befd6a84ebc25ae8e0517 (link)
#153941 tests/debuginfo/basic-stepping.rs: Explain why all lines ar… 7407f9251f1188a9198c54124c9854b8839bbf82 (link)
#154193 Implement EII for statics 42270077bd802aabdea052e977170cae9a02fb09 (link)
#154389 Add more robust handling of nested query cycles 308aaaf85060a4545624535d43248fbb54d2c7b9 (link)
#154435 resolve: Some import resolution cleanups 5c6c8544fbff0b3b131b02ca39947698ff3027fc (link)
#154587 Add --verbose-run-make-subprocess-output flag to suppress v… 39a07ed20a4c5aaa55775f3f38cee787c8c86046 (link)
#154624 Make DerefPure dyn-incompatible 7e319a2d3831b27b4d2aa1730416f791c87dcbc3 (link)
#154929 Add const Default impls for LazyCell and LazyLock 75162d0a0eee813a3af57c095460e95b69da7aa6 (link)
#154944 Small refactor of arena_cache query values 306c03c8ad91f2f8ee82bba93de000ee6dcb6644 (link)
#155055 UI automation a5fe24b570d7e00a24056873bd265fa290ac882d (link)
#155062 Move tests from tests/ui/issues/ to appropriate directori… ff937bd07d15855ee19c7451d31f4c1d88a8c1bd (link)
#155131 Stabilize feature uint_bit_width 90b3efb7cc88ddd52da299f0d8d180dd7324e4a8 (link)
#155147 Stabilize feature int_lowest_highest_one 379bd301ee8866a1af4f99cc4cf9b1ec8a9eb05d (link)
#155162 relnotes for 1.95 f68f242073e6994183a543984ba0b744fd91922d (link)
#155174 Improve emission of UnknownDiagnosticAttribute lint 3cd396850ee941cd8b35e85ef0e6ae3c5e5b5fe6 (link)
#155194 Fix manpage version replacement and use verbose version 739f63e5ca79bcd2653a36da688e71d0322ac87b (link)
#155236 Normalize individual predicate of InstantiatedPredicates 4d336a430e12b9fa8885fc1a7fa831fa28c960d1 (link)
#155243 cg_ssa: transmute between scalable vectors 06d89fa160d8c23e75e42e6984e5e9a7e4fec2a8 (link)

previous master: a72e2a71d8

In the case of a perf regression, run the following command for each PR you suspect might be the cause: @rust-timer build $SHA

@rust-timer
Copy link
Copy Markdown
Collaborator

Finished benchmarking commit (17584a1): comparison URL.

Overall result: ❌ regressions - 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.6% [0.3%, 0.7%] 3
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) - - 0

Max RSS (memory usage)

Results (primary 2.1%, secondary 1.8%)

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

mean range count
Regressions ❌
(primary)
2.9% [0.5%, 4.6%] 5
Regressions ❌
(secondary)
2.9% [1.3%, 5.1%] 3
Improvements ✅
(primary)
-2.1% [-2.1%, -2.1%] 1
Improvements ✅
(secondary)
-1.3% [-1.3%, -1.3%] 1
All ❌✅ (primary) 2.1% [-2.1%, 4.6%] 6

Cycles

Results (secondary -20.9%)

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
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
-20.9% [-20.9%, -20.9%] 1
All ❌✅ (primary) - - 0

Binary size

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

Bootstrap: 499.915s -> 489.468s (-2.09%)
Artifact size: 394.16 MiB -> 394.17 MiB (0.00%)

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

Labels

A-attributes Area: Attributes (`#[…]`, `#![…]`) A-compiletest Area: The compiletest test runner A-LLVM Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues. A-query-system Area: The rustc query system (https://rustc-dev-guide.rust-lang.org/query.html) A-run-make Area: port run-make Makefiles to rmake.rs A-rustc-dev-guide Area: rustc-dev-guide A-testsuite Area: The testsuite used to check the correctness of rustc F-autodiff `#![feature(autodiff)]` 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-clippy Relevant to the Clippy team. 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-release Relevant to the release subteam, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.