Skip to content

Rollup of 8 pull requests - #163695

Merged
rust-bors[bot] merged 18 commits into
rust-lang:mainfrom
JonathanBrouwer:rollup-qSYnNoO
Oct 3, 2026
Merged

rust-bors[bot] merged 18 commits into
rust-lang:mainfrom
JonathanBrouwer:rollup-qSYnNoO

Conversation

@JonathanBrouwer

Copy link
Copy Markdown
Member

Successful merges:

Failed merges:

r? @ghost

Create a similar rollup

Tehforsch and others added 18 commits September 28, 2026 17:49
LLVM 24 got smarter and is able to mark some more things noundef, which
showed up in some of our test checks.
When building `core` with `--cfg no_io_statics`, the compiler warns:

    error: unused variable: `f`
     --> .../library/core/src/io/error/os_functions.rs:9:36
      |
    9 | pub(super) unsafe fn set_functions(f: &'static OsFunctions) {
      |                                    ^ help: if this is intentional, prefix it with an underscore: `_f`
      |
      = note: `-D unused-variables` implied by `-D warnings`
      = help: to override `-D warnings` add `#[allow(unused_variables)]`

Thus clean it up.

Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
Similar to the existing tests for other `cfg`s like `no_fp_fmt_parse`,
add one for `no_io_statics`.

This should prevent issues like the one in the parent commit.

Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
We are refactoring from a large enum where the fields of the variants
contain all the reflection info to a flat enum containing only the type
kind (struct/bool/array etc). While we removed the fields of Struct,
Enum and Union we forgot to take out the const eval code writing into
those fields. That gave an ICE. This fixes that.
…h726

add `ignore-compare-mode-next-solver` to all next-solver tests

Adds `//@ ignore-compare-mode-next-solver (explicit revisions)` to all next-solver revision tests. Used an LLM to automate this and did a self-review. Can recommend only looking at `.rs` files.
…fo, r=oli-obk

reflection: fix ICE when TypeId::info called on ADT

We are refactoring from a large enum where the fields of the variants contain all the reflection info to a flat enum containing only the type kind (struct/bool/array etc). While we removed the fields of Struct, Enum and Union we forgot to take out the const eval code writing into those fields. That gave an ICE. This fixes that.
…ype-in-generics, r=JonathanBrouwer

Improve suggestion for lifetime preceding type in generics

Closes rust-lang#59325

Specifically, this fixes cases like the 2nd example in the issue, where a lifetime precedes a type in generic args:
`Foo<'static T1>` and suggests either adding a reference, i.e. `Foo<&'static T1>` or a comma, i.e. `Foo<'static, T1>`.

In a case like `Foo<'static mut T1>`, only `Foo<&'static mut T1>` is suggested.
…nikic

tests: accept noundef in a couple more places

LLVM 24 got smarter and is able to mark some more things noundef, which showed up in some of our test checks.

@rustbot label: +llvm-main
…s, r=JohnTitor

core: io: clean `unused_variables` lint under `no_io_statics`

When building `core` with `--cfg no_io_statics`, the compiler warns:

    error: unused variable: `f`
     --> .../library/core/src/io/error/os_functions.rs:9:36
      |
    9 | pub(super) unsafe fn set_functions(f: &'static OsFunctions) {
      |                                    ^ help: if this is intentional, prefix it with an underscore: `_f`
      |
      = note: `-D unused-variables` implied by `-D warnings`
      = help: to override `-D warnings` add `#[allow(unused_variables)]`

Thus clean it up.

---

If the signature is preferred to be exactly the same one as the `os_functions_atomic.rs` one, then we could `allow` it instead.
…, r=traviscross

Make the tracking issue template better suited for experiments

The lang team's experiment docs say to create a tracking issue, but the tracking issue template isn't well suited for features that lack an RFC. These are minor changes that should streamline the process.

Thanks to @diondokter for pointing out how these could be improved.

r? lang-ops
… r=RalfJung

Avoid long iterator chain in all_rust_features

This chain creates an absolute monster type that clutters my cachegrind diffs :) This should make it simpler.

I believe we've also seen `chain` to optimize poorly, but I don't think that's a concern here. It might also compile faster, we know that deep types created with iterator chains tend to scale poorly.
…ion, r=hanna-kruppe

refactor: migrate to LLVM-C's `LLVMGetOrInsertFunction`

As the removed fixme already states we don't need to maintain our own wrapper anymore as `LLVMGetOrInsertFunction` is part of LLVM since version 22.
@rust-bors rust-bors Bot added the rollup A PR which is a rollup label Oct 3, 2026
@rustbot rustbot added 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 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. T-libs Relevant to the library team, which will review and decide on the PR/issue. WG-trait-system-refactor The Rustc Trait System Refactor Initiative (-Znext-solver) labels Oct 3, 2026
@JonathanBrouwer

Copy link
Copy Markdown
Member Author

@bors r+ p=5 force

Trying commonly failed jobs
@bors try jobs=dist-various-1,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

@rust-bors

rust-bors Bot commented Oct 3, 2026

Copy link
Copy Markdown
Contributor

📌 Commit 7e68f55 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 Oct 3, 2026
@rust-bors

This comment has been minimized.

rust-bors Bot pushed a commit that referenced this pull request Oct 3, 2026
Rollup of 8 pull requests


try-job: dist-various-1
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
@rust-bors

This comment has been minimized.

@rust-bors

rust-bors Bot commented Oct 3, 2026

Copy link
Copy Markdown
Contributor

☀️ Try build successful (CI)
Build commit: 0007cc3 (0007cc37958297607549ee07b36e664612e229fa)
Base parent: b6e4b5c (b6e4b5c4e954f26d2ac32d2fb11d92192bf905ee)

@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 Oct 3, 2026
@rust-bors

rust-bors Bot commented Oct 3, 2026

Copy link
Copy Markdown
Contributor

☀️ Test successful - CI
Approved by: JonathanBrouwer
Duration: 2h 54m 41s
Pushing db8f076 to main...

@rust-bors
rust-bors Bot merged commit db8f076 into rust-lang:main Oct 3, 2026
16 checks passed
@rustbot rustbot added this to the 1.101.0 milestone Oct 3, 2026
@github-actions

github-actions Bot commented Oct 3, 2026

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 d6b6dc7 (parent) -> db8f076 (this PR)

Test differences

Show 9 test diffs

Stage 1

  • [ui (polonius)] tests/ui/parser/lifetime-preceding-type-in-generic-args.rs: [missing] -> pass (J0)
  • [run-make] tests/run-make/core-no-io-statics: [missing] -> pass (J2)
  • [ui] tests/ui/parser/lifetime-preceding-type-in-generic-args.rs: [missing] -> pass (J3)

Stage 2

  • [run-make] tests/run-make/core-no-io-statics: [missing] -> pass (J1)
  • [ui] tests/ui/parser/lifetime-preceding-type-in-generic-args.rs: [missing] -> pass (J4)

Additionally, 4 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 db8f076d2619ce2585b0380dda06e8da25a40da4 --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-x86_64-gnu-next-trait-solver-polonius: 36m 10s -> 1h (+66.7%)
  2. dist-riscv64-linux-musl: 58m 16s -> 1h 29m (+53.4%)
  3. test-i686-gnu-2: 1h 2m -> 1h 35m (+53.0%)
  4. dist-armv7-linux: 1h 3m -> 1h 35m (+51.7%)
  5. test-x86_64-rust-for-linux: 39m 25s -> 56m 49s (+44.1%)
  6. dist-x86_64-llvm-mingw: 2h 10m -> 1h 14m (-43.4%)
  7. dist-i686-msvc: 36m 47s -> 52m 41s (+43.2%)
  8. test-various: 1h 36m -> 2h 10m (+35.4%)
  9. dist-powerpc64le-linux-musl: 1h 38m -> 1h 5m (-33.8%)
  10. optional-test-x86_64-gnu-autodiff: 40m 5s -> 53m 35s (+33.7%)
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

Finished benchmarking commit (db8f076): 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.3% [0.3%, 0.3%] 1
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) - - 0

Max RSS (memory usage)

Results (primary -2.0%, secondary 3.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)
3.9% [3.9%, 3.9%] 1
Improvements ✅
(primary)
-2.0% [-2.0%, -2.0%] 1
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) -2.0% [-2.0%, -2.0%] 1

Cycles

Results (primary 1.9%, secondary -0.5%)

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

mean range count
Regressions ❌
(primary)
1.9% [1.4%, 2.3%] 2
Regressions ❌
(secondary)
4.0% [2.7%, 6.0%] 4
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
-6.6% [-9.9%, -3.9%] 3
All ❌✅ (primary) 1.9% [1.4%, 2.3%] 2

Binary size

Results (primary 0.1%, secondary 0.1%)

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

mean range count
Regressions ❌
(primary)
0.1% [0.0%, 0.2%] 54
Regressions ❌
(secondary)
0.1% [0.0%, 0.2%] 49
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) 0.1% [0.0%, 0.2%] 54

Bootstrap: 489.814s -> 492.227s (0.49%)
Artifact size: 406.62 MiB -> 408.66 MiB (0.50%)

@rust-bors

rust-bors Bot commented Oct 3, 2026

Copy link
Copy Markdown
Contributor

📌 Perf builds for each rolled up PR:

PR# Message Perf Build Sha
#163645 add ignore-compare-mode-next-solver to all next-solver te… 4d118c0bc6211dc6cbf18bec5fe19d60bf565c46
(link)
#163663 reflection: fix ICE when TypeId::info called on ADT b6de3ce61f4dcfd6a058f523958e2be373aa323a
(link)
#163454 Improve suggestion for lifetime preceding type in generics 99b3c3a45533d52d7596cdcf1e100e96048bf2e1
(link)
#163561 tests: accept noundef in a couple more places 07f337a514395b105d5a198bbfeb73f03a17e87f
(link)
#163633 core: io: clean unused_variables lint under `no_io_static… cf54cc998881635a46ef6415d985689cc6e0119f
(link)
#163681 Make the tracking issue template better suited for experime… 82a485513a15917cb1ea3ad78892807b0cfb926f
(link)
#163685 Avoid long iterator chain in all_rust_features c5f7be65581651ee6684d7ba25f7a3237e5cd213
(link)
#163690 refactor: migrate to LLVM-C's LLVMGetOrInsertFunction 4421749e1cc38381dec5c72b9cf0abd911d86704
(link)

parent commit: d6b6dc7982

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.

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

Labels

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 merged-by-bors This PR was explicitly merged by bors. rollup A PR which is a rollup 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. 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.