Skip to content

Conversation

Zalathar
Copy link
Contributor

@Zalathar Zalathar commented Oct 5, 2025

Successful merges:

r? @ghost
@rustbot modify labels: rollup

Create a similar rollup

Jules-Bertholet and others added 16 commits October 3, 2025 16:00
This commit adds some documentation about the state of `-Cpanic=unwind`
for the following wasm targets:

* `wasm32-unknown-unknown`
* `wasm32-wasip1`
* `wasm32-wasip2`
* `wasm32v1-none`

Notably it's possible to use `-Cpanic=unwind` with `-Zbuild-std` and
it's also mentioned that there are no concrete proposals at this time to
adding a new set of targets which support unwinding. My hunch is that in
a few years' time it would make sense to enable it by default on these
targets (except for `wasm32v1-none`) but that's a problem for
future folks to debate. For now this is an attempt to document the
status quo.
compiletest: Make `DirectiveLine` responsible for name/value splitting

- Follow-up to rust-lang#147170.

---

Now that all of the directive-parsing functions have access to a `DirectiveLine`, we can move all of the ad-hoc name/value splitting code into `DirectiveLine` itself, making directive parsing simpler and more consistent.

The first commit is just moving code into a submodule, so the actual changes can be seen in the subsequent commits.

r? jieyouxu
…r=jieyouxu

Add documentation about unwinding to wasm targets

This commit adds some documentation about the state of `-Cpanic=unwind` for the following wasm targets:

* `wasm32-unknown-unknown`
* `wasm32-wasip1`
* `wasm32-wasip2`
* `wasm32v1-none`

Notably it's possible to use `-Cpanic=unwind` with `-Zbuild-std` and it's also mentioned that there are no concrete proposals at this time to adding a new set of targets which support unwinding. My hunch is that in a few years' time it would make sense to enable it by default on these targets (except for `wasm32v1-none`) but that's a problem for future folks to debate. For now this is an attempt to document the status quo.
…ttern-typo, r=chenyukang

Mark `PatternTypo` suggestion as maybe incorrect

Partial fix for rust-lang#147303.

`@rustbot` label A-diagnostics A-suggestion-diagnostics D-invalid-suggestion
…g, r=jieyouxu

Avoid to suggest pattern match on the similarly named in fn signature

Fixes rust-lang#147303
Implement non-poisoning `Mutex::with_mut`, `RwLock::with` and `RwLock::with_mut`

ACP: rust-lang/libs-team#497.
Make `fmt::Write` a diagnostic item

I'm working on an enhancement to [`clippy::format_push_string`](https://rust-lang.github.io/rust-clippy/master/index.html#format_push_string), which would suggest an autofix to replace `push_str`/`+=` with `write!`. But that could require importing `std::fmt::Write`, and so I need this diagnostic item to check if it's already in scope.

The reason I called it `FmtWrite` and not just `Write` is that there's already an `IoWrite` defined.
…=Noratrieb

Improve the advice given by panic_immediate_abort

Now that rust-lang#147338 is merged, users should consider using the Cargo support for immediate-aborting panics.
@rustbot rustbot added A-compiletest Area: The compiletest test runner 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. T-libs Relevant to the library team, which will review and decide on the PR/issue. rollup A PR which is a rollup labels Oct 5, 2025
@Zalathar
Copy link
Contributor Author

Zalathar commented Oct 5, 2025

Subset of #147359.

@bors r+ rollup=never p=5

@bors
Copy link
Collaborator

bors commented Oct 5, 2025

📌 Commit a0a4905 has been approved by Zalathar

It is now in the queue for this repository.

@bors bors 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 5, 2025
@bors
Copy link
Collaborator

bors commented Oct 5, 2025

⌛ Testing commit a0a4905 with merge e2c96cc...

@bors
Copy link
Collaborator

bors commented Oct 5, 2025

☀️ Test successful - checks-actions
Approved by: Zalathar
Pushing e2c96cc to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Oct 5, 2025
@bors bors merged commit e2c96cc into rust-lang:master Oct 5, 2025
11 checks passed
@rustbot rustbot added this to the 1.92.0 milestone Oct 5, 2025
@rust-timer
Copy link
Collaborator

📌 Perf builds for each rolled up PR:

PR# Message Perf Build Sha
#147288 compiletest: Make DirectiveLine responsible for name/valu… 449bbf645926d3a7a60846d1b3ad5660a6aee856 (link)
#147309 Add documentation about unwinding to wasm targets 8bf26047c31267d110b64f887438dfe116dc3ca4 (link)
#147310 Mark PatternTypo suggestion as maybe incorrect 313bbf13ee787cdd834dac5fd3bd864fefb92801 (link)
#147320 Avoid to suggest pattern match on the similarly named in fn… b621d3f4815f3d2515891be665fbb9b0b2a1f03f (link)
#147328 Implement non-poisoning Mutex::with_mut, RwLock::with a… 7cb2363b60040f6ec99ed977c6785d0b63dce051 (link)
#147337 Make fmt::Write a diagnostic item 3e6ad318e74cb4416ac0ca41e374c28e03454bc9 (link)
#147349 Improve the advice given by panic_immediate_abort bf93a0f229380748e8382febeb95e98116e4a183 (link)

previous master: 227ac7c3cd

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

Copy link
Contributor

github-actions bot commented Oct 5, 2025

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 227ac7c (parent) -> e2c96cc (this PR)

Test differences

Show 216 test diffs

Stage 1

  • [run-make] tests/run-make/compressed-debuginfo-zstd: ignore (ignored on targets without Rust's LLD (the system linker will most likely not support zstd)) -> ignore (ignored on targets without Rust's LLD) (J3)
  • [ui] tests/ui/fn/invalid-sugg-for-unused-fn-arg-147303.rs: [missing] -> pass (J3)
  • mutex::test_mutex_with_mut: [missing] -> pass (J4)
  • rwlock::test_rwlock_with: [missing] -> pass (J4)
  • rwlock::test_rwlock_with_mut: [missing] -> pass (J4)

Stage 2

  • [run-make] tests/run-make/compressed-debuginfo-zstd: ignore (ignored if LLVM wasn't build with zstd for ELF section compression or LLVM is not the default codegen backend (we want LLVM/LLD to be built with zstd support)) -> ignore (ignored if LLVM wasn't build with zstd for ELF section compression or LLVM is not the default codegen backend) (J0)
  • mutex::test_mutex_with_mut: [missing] -> pass (J1)
  • rwlock::test_rwlock_with: [missing] -> pass (J1)
  • rwlock::test_rwlock_with_mut: [missing] -> pass (J1)
  • [run-make] tests/run-make/compressed-debuginfo-zstd: ignore (ignored on targets without Rust's LLD (the system linker will most likely not support zstd)) -> ignore (ignored on targets without Rust's LLD) (J2)
  • [ui] tests/ui/fn/invalid-sugg-for-unused-fn-arg-147303.rs: [missing] -> pass (J5)

Additionally, 205 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 e2c96cc06bdbdbc6f59c7551194d6a742260d6ff --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. dist-aarch64-linux: 8739.6s -> 6057.8s (-30.7%)
  2. pr-check-1: 1667.5s -> 1393.5s (-16.4%)
  3. x86_64-gnu-debug: 7167.8s -> 6265.2s (-12.6%)
  4. dist-x86_64-apple: 7241.3s -> 6388.6s (-11.8%)
  5. i686-gnu-nopt-1: 8026.6s -> 7098.1s (-11.6%)
  6. x86_64-rust-for-linux: 2941.0s -> 2639.4s (-10.3%)
  7. x86_64-gnu-llvm-20-3: 6857.5s -> 6155.7s (-10.2%)
  8. dist-i686-msvc: 7597.1s -> 8366.1s (10.1%)
  9. aarch64-gnu-debug: 4280.0s -> 3850.7s (-10.0%)
  10. i686-gnu-1: 8107.0s -> 7320.8s (-9.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
Collaborator

Finished benchmarking commit (e2c96cc): comparison URL.

Overall result: ❌✅ regressions and improvements - please read the text below

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
Regressions ❌
(secondary)
0.1% [0.1%, 0.1%] 1
Improvements ✅
(primary)
-0.5% [-1.6%, -0.2%] 6
Improvements ✅
(secondary)
-0.5% [-1.6%, -0.0%] 4
All ❌✅ (primary) -0.5% [-1.6%, -0.2%] 6

Max RSS (memory usage)

Results (primary 0.4%, secondary 4.6%)

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

mean range count
Regressions ❌
(primary)
1.0% [1.0%, 1.1%] 2
Regressions ❌
(secondary)
4.6% [4.6%, 4.6%] 1
Improvements ✅
(primary)
-0.8% [-0.8%, -0.8%] 1
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) 0.4% [-0.8%, 1.1%] 3

Cycles

Results (primary 2.6%, secondary 4.2%)

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

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

Binary size

This benchmark run did not return any relevant results for this metric.

Bootstrap: 470.078s -> 471.388s (0.28%)
Artifact size: 388.29 MiB -> 388.34 MiB (0.01%)

@rustbot rustbot added the perf-regression Performance regression. label Oct 5, 2025
@panstromek
Copy link
Contributor

perf triage:

Improvements outweigh a small regression in secondary stress test.

@rustbot label: +perf-regression-triaged

@rustbot rustbot added the perf-regression-triaged The performance regression has been triaged. label Oct 6, 2025
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-testsuite Area: The testsuite used to check the correctness of rustc merged-by-bors This PR was explicitly merged by bors. perf-regression Performance regression. perf-regression-triaged The performance regression has been triaged. rollup A PR which is a rollup S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. 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. 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.