Skip to content

Rollup of 11 pull requests - #166426

Merged
rust-bors[bot] merged 27 commits into
rust-lang:mainfrom
jhpratt:rollup-SnL7v36
Nov 24, 2026
Merged

rust-bors[bot] merged 27 commits into
rust-lang:mainfrom
jhpratt:rollup-SnL7v36

Conversation

@jhpratt

@jhpratt jhpratt commented Nov 23, 2026

Copy link
Copy Markdown
Member

Successful merges:

r? @ghost

Create a similar rollup

zmodem and others added 27 commits November 17, 2026 11:34
This adapts to llvm/llvm-project#241314

The idea seems to be to pass the same arguments as for
runCodeGenPipeline.
Like other BSD systems, GNU/Hurd can change the permissions of the symlinks
themselves.
GNU/Hurd supports locking downgrade from EX to SH, but on the same file
handle only.
…ny-intrinsic, r=RalfJung

Fix invalid instantiation of fake intrinsic bodies

fixes rust-lang#164984

In rust-lang#122037 I created those fake bodies because we wanted to avoid all the checks I added here, and the intrinsics are always overridden anyway. Well, so we thought. If you're creative you can get at them, and it's possible there are cases that could be exposed on stable. Seems generally nicer to make it more robust
…=mejrs

Undo accidental duplication checking for attributes on macro calls

one of r? @mejrs @GuillaumeGomez
…zelmann

Replace manual `AttributeParser` construction by `parse_limited_all`

It's interesting to see this old code, of when attribute parsers were just introduced, hihi :3

r? @jdonszelmann because this has your FIXMEs
…th, r=mejrs

Add `c_buffer_length` lint helper

An initianl implementation for rust-lang#148664
Tracking issue: rust-lang#162563
r? estebank
llvm-wrapper: Pass more arguments to PreCodeGenCallback

This adapts to llvm/llvm-project#241314

The idea seems to be to pass the same arguments as for runCodeGenPipeline.
std: fix positioned read/write on VxWorks

rust-lang#160031 fixed an import error on VxWorks by shimming `pread`/`pwrite`. The added shims unconditionally returned -1, indicating an error, but failed to set `errno` to something like `ENOSYS`. This is problematic because it means the indicated error condition will be the value of whatever `errno` was last set to. A function like `write_all_at` that retries on `EINTR` might therefore loop indefinitely.

This PR removes the shims and instead returns an `UNSUPPORTED_PLATFORM` error – I think that makes it clearer that VxWorks does not define these functions at all.

CC @Darksonn @JohnTitor
… r=clarfonthey

Change `ChildExt::kill_process_group` to be `&self`
…-ice, r=camelid

Check for errors before encoding metadata

Fixes rust-lang#166278

pr rust-lang#165524 moved the `has_errors_or_delayed_bugs` check from before metadata encoding to after it. Then, for a lib crate, metadata encoding runs `exported_generic_symbols`, which runs mono item collection on bodies that failed const eval, like `[(); loop {}]`, and it ICEs because `mentioned_items` was never set.

I moved the check back into `finish_and_emit_metadata`, after the test hook and before encoding, so the order is the same as before rust-lang#165524. Now we only get the normal error, no panic.

Added a UI test.

cc @blyxyas @bjorn3
std: Fix locking test on GNU/Hurd

GNU/Hurd supports locking downgrade from EX to SH, but on the same file handle only.
std: Fix symlink chmod test on GNU/Hurd

Like other BSD systems, GNU/Hurd can change the permissions of the symlinks themselves.
core: Stabilize `float_bits_const`

Tracking issue: rust-lang#151073
Closes: rust-lang#151073
Closes: rust-lang#154065

---

Taking over from rust-lang#154065 since its gone stale

r? tgross35
@rust-bors rust-bors Bot added the rollup A PR which is a rollup label Nov 23, 2026
@rustbot rustbot added A-attributes Area: Attributes (`#[…]`, `#![…]`) A-compiler-builtins Area: compiler-builtins (https://github.com/rust-lang/compiler-builtins) labels Nov 23, 2026
@rustbot rustbot added A-filesystem Area: `std::fs` A-LLVM Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues. O-unix Operating system: Unix-like S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. 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. labels Nov 23, 2026
@jhpratt

jhpratt commented Nov 23, 2026

Copy link
Copy Markdown
Member Author

@bors r+ p=5 force

@rust-bors

rust-bors Bot commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

📌 Commit 8381ebb has been approved by jhpratt

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 23, 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 Nov 24, 2026
@rust-bors

rust-bors Bot commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

☀️ Test successful - CI
Approved by: jhpratt
Duration: 3h 18m 26s
Pushing 058c701 to main...

@rust-bors
rust-bors Bot merged commit 058c701 into rust-lang:main Nov 24, 2026
15 checks passed
@rustbot rustbot added this to the 1.102.0 milestone Nov 24, 2026
@jhpratt
jhpratt deleted the rollup-SnL7v36 branch November 24, 2026 05:40
@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 f7da9a4 (parent) -> 058c701 (this PR)

Test differences

Show 948 test diffs

Stage 1

  • [ui (polonius)] tests/ui/consts/const-eval/long-running-const-eval-no-mono-collection.rs: [missing] -> pass (J0)
  • [ui (polonius)] tests/ui/feature-gates/feature-gate-lint-c-buffer-length.rs: [missing] -> pass (J0)
  • [ui (polonius)] tests/ui/intrinsics/intrinsic_dummy_body.rs: [missing] -> pass (J0)
  • [ui (polonius)] tests/ui/lint_helper_namespace/c_buffer_length/duplicate.rs: [missing] -> pass (J0)
  • [ui (polonius)] tests/ui/lint_helper_namespace/c_buffer_length/hygiene.rs: [missing] -> pass (J0)
  • [ui (polonius)] tests/ui/lint_helper_namespace/c_buffer_length/invalid_parameters.rs: [missing] -> pass (J0)
  • [ui (polonius)] tests/ui/lint_helper_namespace/c_buffer_length/malformed_attr.rs: [missing] -> pass (J0)
  • [ui (polonius)] tests/ui/lint_helper_namespace/c_buffer_length/misplaced_attr.rs: [missing] -> pass (J0)
  • [ui (polonius)] tests/ui/lint_helper_namespace/c_buffer_length/unregistered.rs: [missing] -> pass (J0)
  • [ui (polonius)] tests/ui/lint_helper_namespace/c_buffer_length/valid.rs: [missing] -> pass (J0)
  • [ui] tests/ui/consts/const-eval/long-running-const-eval-no-mono-collection.rs: [missing] -> pass (J2)
  • [ui] tests/ui/feature-gates/feature-gate-lint-c-buffer-length.rs: [missing] -> pass (J2)
  • [ui] tests/ui/intrinsics/intrinsic_dummy_body.rs: [missing] -> pass (J2)
  • [ui] tests/ui/lint_helper_namespace/c_buffer_length/duplicate.rs: [missing] -> pass (J2)
  • [ui] tests/ui/lint_helper_namespace/c_buffer_length/hygiene.rs: [missing] -> pass (J2)
  • [ui] tests/ui/lint_helper_namespace/c_buffer_length/invalid_parameters.rs: [missing] -> pass (J2)
  • [ui] tests/ui/lint_helper_namespace/c_buffer_length/malformed_attr.rs: [missing] -> pass (J2)
  • [ui] tests/ui/lint_helper_namespace/c_buffer_length/misplaced_attr.rs: [missing] -> pass (J2)
  • [ui] tests/ui/lint_helper_namespace/c_buffer_length/unregistered.rs: [missing] -> pass (J2)
  • [ui] tests/ui/lint_helper_namespace/c_buffer_length/valid.rs: [missing] -> pass (J2)

Stage 2

  • [ui] tests/ui/consts/const-eval/long-running-const-eval-no-mono-collection.rs: [missing] -> pass (J1)
  • [ui] tests/ui/feature-gates/feature-gate-lint-c-buffer-length.rs: [missing] -> pass (J1)
  • [ui] tests/ui/intrinsics/intrinsic_dummy_body.rs: [missing] -> pass (J1)
  • [ui] tests/ui/lint_helper_namespace/c_buffer_length/duplicate.rs: [missing] -> pass (J1)
  • [ui] tests/ui/lint_helper_namespace/c_buffer_length/hygiene.rs: [missing] -> pass (J1)
  • [ui] tests/ui/lint_helper_namespace/c_buffer_length/invalid_parameters.rs: [missing] -> pass (J1)
  • [ui] tests/ui/lint_helper_namespace/c_buffer_length/malformed_attr.rs: [missing] -> pass (J1)
  • [ui] tests/ui/lint_helper_namespace/c_buffer_length/misplaced_attr.rs: [missing] -> pass (J1)
  • [ui] tests/ui/lint_helper_namespace/c_buffer_length/unregistered.rs: [missing] -> pass (J1)
  • [ui] tests/ui/lint_helper_namespace/c_buffer_length/valid.rs: [missing] -> pass (J1)

Additionally, 918 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 058c701055c4b6f60f622d616afc0349911c38c3 --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-gcc-core-tests: 10m 3s -> 17m 38s (+75.5%)
  2. test-x86_64-gnu-stdlib-semver-check: 9m 22s -> 16m 8s (+72.2%)
  3. test-arm-android: 1h 11m -> 1h 55m (+60.7%)
  4. dist-powerpc-linux: 1h 3m -> 1h 37m (+54.1%)
  5. test-x86_64-gnu-miri: 1h 1m -> 1h 32m (+51.3%)
  6. dist-loongarch64-musl: 1h 22m -> 2h 4m (+51.3%)
  7. test-x86_64-gnu-nopt: 2h 41m -> 1h 26m (-46.3%)
  8. dist-x86_64-netbsd: 1h 4m -> 1h 34m (+45.1%)
  9. test-x86_64-msvc-ext2: 1h 39m -> 59m 54s (-39.6%)
  10. test-i686-gnu-1: 1h 45m -> 2h 26m (+39.5%)
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 (058c701): comparison URL.

Overall result: ❌✅ regressions and improvements - please read:

Our benchmarks found a performance regression caused by this PR.
This might be an actual regression, but it can also be just noise.

Next Steps:

  • If the regression was expected or you think it can be justified,
    please write a comment with sufficient written justification, and add
    @rustbot label: +perf-regression-triaged to it, to mark the regression as triaged.
  • If you think that you know of a way to resolve the regression, try to create
    a new PR with a fix for the regression.
  • If you do not understand the regression or you think that it is just noise,
    you can ask the @rust-lang/wg-compiler-performance working group for help (members of this group
    were already notified of this PR).

@rustbot label: +perf-regression
cc @rust-lang/wg-compiler-performance

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.2% [0.1%, 0.3%] 10
Regressions ❌
(secondary)
0.3% [0.2%, 0.5%] 10
Improvements ✅
(primary)
-0.3% [-0.3%, -0.2%] 6
Improvements ✅
(secondary)
-0.2% [-0.2%, -0.2%] 3
All ❌✅ (primary) 0.0% [-0.3%, 0.3%] 16

Max RSS (memory usage)

Results (primary 1.7%, secondary -4.3%)

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

mean range count
Regressions ❌
(primary)
1.7% [1.7%, 1.7%] 1
Regressions ❌
(secondary)
- - 0
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
-4.3% [-6.0%, -2.7%] 5
All ❌✅ (primary) 1.7% [1.7%, 1.7%] 1

Cycles

Results (primary -4.9%, secondary 3.0%)

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)
13.2% [13.2%, 13.2%] 1
Improvements ✅
(primary)
-4.9% [-8.0%, -2.2%] 9
Improvements ✅
(secondary)
-2.0% [-2.1%, -2.0%] 2
All ❌✅ (primary) -4.9% [-8.0%, -2.2%] 9

Binary size

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

Bootstrap: 463.456s -> 462.461s (-0.21%)
Artifact size: 406.38 MiB -> 405.65 MiB (-0.18%)

@rustbot rustbot added the perf-regression Performance regression. label Nov 24, 2026
@rust-bors

rust-bors Bot commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

📌 Perf builds for each rolled up PR:

PR# Message Perf Build Sha
#165769 Fix invalid instantiation of fake intrinsic bodies 0de6426d204636d5ca608345881d3efaf435c0a1
(link)
#166374 Undo accidental duplication checking for attributes on macr… 359f812191172a1e53ec95cf1d1884b433f9160e
(link)
#166386 Replace manual AttributeParser construction by `parse_lim… 67d2e65918e5b8bb851f43f3cb6960078f3bc42a
(link)
#162565 Add c_buffer_length lint helper 50d64cba687134e00eb52e87aefcb797d2bb9df1
(link)
#166096 llvm-wrapper: Pass more arguments to PreCodeGenCallback 48660abb10081c8c338b0bcfcca679d55568af6d
(link)
#166395 std: fix positioned read/write on VxWorks ce83af50c2e35c3e0c500200b28616798c07355e
(link)
#166404 Change ChildExt::kill_process_group to be &self ecd414ce2d9529cbba6438d80f42cbb43a48b86d
(link)
#166405 Check for errors before encoding metadata 99721c49ff20e33f5fe94d12900922945c4da8b9
(link)
#166412 std: Fix locking test on GNU/Hurd 305dc001c6055cc7771a74efb412e4cdf3bd8d70
(link)
#166413 std: Fix symlink chmod test on GNU/Hurd c70cd28bb2b85897edcae14b2e2d354bf2b3d60c
(link)
#166421 core: Stabilize float_bits_const bb152b95443d94e49660ff80545e5f9214a9b93d
(link)

parent commit: f7da9a4236

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.

@JonathanBrouwer

Copy link
Copy Markdown
Member

@rust-timer triage all

@rust-timer

rust-timer commented Nov 24, 2026 •

Copy link
Copy Markdown
Collaborator
Running triage with 13 benchmarks

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

  • clap_derive-4.5.32
  • clap_derive-4.5.32-nll
  • derive
  • image-0.25.6
  • include-blob
  • many-assoc-items
  • regex-automata-0.4.8
  • ripgrep-14.1.1
  • ripgrep-14.1.1-nll
  • serde-1.0.219
  • serde-1.0.219-nll
  • serde_derive-1.0.219
  • stm32f4-0.15.1

#165769 0de6426 Fix invalid instantiation of fake intrinsic bodies

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.2% [0.1%, 0.3%] 7
Regressions ❌
(secondary)
0.3% [0.2%, 0.3%] 5
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
-0.2% [-0.2%, -0.2%] 1
All ❌✅ (primary) 0.2% [0.1%, 0.3%] 7

Max RSS (memory usage)

Results (primary 1.8%)

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

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

Cycles

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

Binary size

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


#166374 359f812 Undo accidental duplication checking for attributes on macro calls

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)
-0.3% [-0.3%, -0.2%] 9
Improvements ✅
(secondary)
-0.3% [-0.3%, -0.2%] 4
All ❌✅ (primary) -0.3% [-0.3%, -0.2%] 9

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.


#166386 67d2e65 Replace manual AttributeParser construction by parse_limited_all

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.


#162565 50d64cb Add c_buffer_length lint helper

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.


#166096 48660ab llvm-wrapper: Pass more arguments to PreCodeGenCallback

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

Results (primary 0.0%, secondary 0.0%)

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

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

#166395 ce83af5 std: fix positioned read/write on VxWorks

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 3.7%)

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

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

Binary size

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


#166404 ecd414c Change ChildExt::kill_process_group to be &self

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.


#166405 99721c4 Check for errors before encoding metadata

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.2%, 0.5%] 5
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) - - 0

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.


#166412 305dc00 std: Fix locking test on GNU/Hurd

Queued 305dc00 with parent f7da9a4, future comparison URL.
There are currently 8 preceding artifacts in the queue.
It will probably take at least ~1.5 hours until the benchmark run finishes.


#166413 c70cd28 std: Fix symlink chmod test on GNU/Hurd

Queued c70cd28 with parent f7da9a4, future comparison URL.
There are currently 9 preceding artifacts in the queue.
It will probably take at least ~1.7 hours until the benchmark run finishes.


#166421 bb152b9 core: Stabilize float_bits_const

Queued bb152b9 with parent f7da9a4, future comparison URL.
There are currently 10 preceding artifacts in the queue.
It will probably take at least ~1.8 hours until the benchmark run finishes.

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

Labels

A-attributes Area: Attributes (`#[…]`, `#![…]`) A-compiler-builtins Area: compiler-builtins (https://github.com/rust-lang/compiler-builtins) A-filesystem Area: `std::fs` A-LLVM Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues. merged-by-bors This PR was explicitly merged by bors. O-unix Operating system: Unix-like perf-regression Performance regression. rollup A PR which is a rollup 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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.