Skip to content

Conversation

Zalathar
Copy link
Contributor

@Zalathar Zalathar commented Sep 22, 2025

Successful merges:

r? @ghost
@rustbot modify labels: rollup

Create a similar rollup

pthariensflame and others added 22 commits September 13, 2025 23:25
Now that this feature has a standard identifier, Darwin has started exposing it accordingly, in addition to the existing less-standard way.  Check both, and enable the `crc` feature if either identifier for it is present to ensure backwards and forwards compatibility.
Brings the list of checkable features up to date with the initial release of macOS 26 "Tahoe".
These code paths are surprisingly hot in the `large-workspace` benchmark; it
would be handy to see some detailed timings and execution counts.
I missed this target when I changed all the other tier 3 targets. Only
realized that this one was still statically linked when I looked at the
list of targets in the test later.

Signed-off-by: Jens Reidel <[email protected]>
…ark-Simulacrum

regression test for Cow<[u8]> layout

requested by ralf in rust-lang#117763 (comment)
std_detect on Darwin AArch64: update features

Synchronizes the list (and re-sorts it alphabetically by `FEAT` name) with the initial release version of macOS Tahoe.
…kic,joshtriplett

emit attribute for readonly non-pure inline assembly

fixes rust-lang#146761

Provide a better `MemoryEffects` to LLVM when an inline assembly block specifies `readonly` but not `pure`. That means that the assembly block may not perform any writes, but that there still may be side effects from its instructions.

I haven't been able to find a case yet where this actually matters, though. So the test checks that the right attribute is applied, but the generated assembly is equivalent to not specifying `readonly` at all.

r? ````@nikic````
cc ````@Amanieu````
Support ctr and lr as clobber-only registers in PowerPC inline assembly

Follow-up to rust-lang#131341.

CTR and LR are marked as volatile in all ABIs, but I skipped them in rust-lang#131341 due to they are currently marked as reserved.
https://github.com/rust-lang/rust/blob/dd7fda570040e8a736f7d8bc28ddd1b444aabc82/compiler/rustc_target/src/asm/powerpc.rs#L209-L212

However, they are actually only unusable as input/output of inline assembly, and should be fine to support as clobber-only registers as discussed in [#t-compiler > ppc/ppc64 inline asm support](https://rust-lang.zulipchat.com/#narrow/channel/131828-t-compiler/topic/ppc.2Fppc64.20inline.20asm.20support/with/540413845).

r? ````@Amanieu```` or ````@workingjubilee````

cc ````@programmerjake````

````@rustbot```` label +O-PowerPC +A-inline-assembly
…olbinarycat

Introduce "wrapper" helpers to rustdoc

Add a few traits for streamlining places where we need to wrap certain `fmt::Display`s in stuff like parentheses or brackets.
Hopefully this makes the actual display logic slightly easier to read.

First two commits are small, unrelated cleanups.

I'll probably add some doc comments to the stuff in `display.rs`, maybe also play around with the API, but wanted to get feedback on this idea first.
…bzol

Add self-profile events for target-machine creation

These code paths are surprisingly hot in the `large-workspace` benchmark (e.g. see perf changes from rust-lang#146700), suggesting room for more improvement. It would be handy to see some detailed timings and execution counts.
btree InternalNode::new safety comments
…=jieyouxu

Make mips64el-unknown-linux-muslabi64 link dynamically

I missed this target when I changed all the other tier 3 targets in rust-lang#144410. Only realized that this one was still statically linked when I looked at the list of targets in the test later (rust-lang#146588).

since those two PRs were reviewed by you:
r? ````@jieyouxu````
…ss35

assert_unsafe_precondition: fix some incorrect check_language_ub

r? `@tgross35`
@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. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. T-rustdoc-frontend Relevant to the rustdoc-frontend team, which will review and decide on the web UI/UX output. rollup A PR which is a rollup labels Sep 22, 2025
@Zalathar
Copy link
Contributor Author

@bors r+ rollup=never p=5

@bors
Copy link
Collaborator

bors commented Sep 22, 2025

📌 Commit 8f80707 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 Sep 22, 2025
@bors
Copy link
Collaborator

bors commented Sep 22, 2025

⌛ Testing commit 8f80707 with merge 29005cb...

@bors
Copy link
Collaborator

bors commented Sep 22, 2025

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

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

📌 Perf builds for each rolled up PR:

PR# Message Perf Build Sha
#145411 regression test for Cow<[u8]> layout 76459619873e758c7384d30a59445bf02b0ae66a (link)
#146397 std_detect on Darwin AArch64: update features eddbb3b50b7bc6a67e0900d702c36147bf656f45 (link)
#146791 emit attribute for readonly non-pure inline assembly a3c8c3a8ef7ea16d3113d122929afc285068d339 (link)
#146831 Support ctr and lr as clobber-only registers in PowerPC inl… 82b12401113a2d88cb94c36bb8684aa2558cd507 (link)
#146838 Introduce "wrapper" helpers to rustdoc 429bbec29a1949e65cf8240ab282efef74f84a55 (link)
#146845 Add self-profile events for target-machine creation 077b48fd34349ca34bcce5f0f10aa3042b9d7213 (link)
#146846 btree InternalNode::new safety comments 860914428ba9d208dfad82d653b1de105afb5f4c (link)
#146858 Make mips64el-unknown-linux-muslabi64 link dynamically 2eb5085646aa5953c20021308782a1984867dfe5 (link)
#146878 assert_unsafe_precondition: fix some incorrect check_langua… 04c094b852e62f171d1abeca31c3f54edaac2cd7 (link)

previous master: 9f32ccf35f

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

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 9f32ccf (parent) -> 29005cb (this PR)

Test differences

Show 11 test diffs

Stage 1

  • [codegen] tests/codegen-llvm/asm/readonly-not-pure.rs: [missing] -> pass (J1)
  • [codegen] tests/codegen-llvm/issues/cows-dont-have-branches-117763.rs: [missing] -> ignore (ignored when randomizing layouts) (J1)

Stage 2

  • [codegen] tests/codegen-llvm/issues/cows-dont-have-branches-117763.rs: [missing] -> ignore (ignored when randomizing layouts) (J0)
  • [codegen] tests/codegen-llvm/issues/cows-dont-have-branches-117763.rs: [missing] -> pass (J2)
  • [codegen] tests/codegen-llvm/asm/readonly-not-pure.rs: [missing] -> pass (J3)

Additionally, 6 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 29005cb128e6d447e6bd9c110c9a684665f95985 --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-apple-various: 3792.5s -> 4603.7s (21.4%)
  2. dist-aarch64-apple: 6275.7s -> 7386.9s (17.7%)
  3. aarch64-apple: 5542.1s -> 6249.3s (12.8%)
  4. i686-gnu-nopt-1: 8054.8s -> 7187.3s (-10.8%)
  5. dist-aarch64-linux: 6714.0s -> 6066.1s (-9.6%)
  6. x86_64-gnu-llvm-20-2: 6280.8s -> 5709.1s (-9.1%)
  7. dist-aarch64-windows-gnullvm: 4666.9s -> 5069.9s (8.6%)
  8. x86_64-mingw-1: 10270.0s -> 11146.0s (8.5%)
  9. dist-x86_64-apple: 7280.9s -> 7871.4s (8.1%)
  10. aarch64-msvc-2: 4602.4s -> 4937.3s (7.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
Collaborator

Finished benchmarking commit (29005cb): 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.3% [0.1%, 0.5%] 2
Improvements ✅
(primary)
-0.2% [-0.2%, -0.2%] 1
Improvements ✅
(secondary)
-0.2% [-0.2%, -0.2%] 7
All ❌✅ (primary) -0.2% [-0.2%, -0.2%] 1

Max RSS (memory usage)

Results (primary 1.0%, secondary 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.6% [2.6%, 2.6%] 2
Regressions ❌
(secondary)
4.2% [2.1%, 5.0%] 7
Improvements ✅
(primary)
-0.6% [-0.8%, -0.4%] 2
Improvements ✅
(secondary)
-1.8% [-2.2%, -1.0%] 3
All ❌✅ (primary) 1.0% [-0.8%, 2.6%] 4

Cycles

Results (secondary -1.7%)

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)
- - 0
Improvements ✅
(secondary)
-3.6% [-4.3%, -2.5%] 3
All ❌✅ (primary) - - 0

Binary size

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

Bootstrap: 471.273s -> 472.389s (0.24%)
Artifact size: 387.92 MiB -> 389.97 MiB (0.53%)

@rustbot rustbot added the perf-regression Performance regression. label Sep 22, 2025
@Zalathar Zalathar deleted the rollup-vm97j8b branch September 22, 2025 21:11
@Kobzol
Copy link
Member

Kobzol commented Sep 23, 2025

The changes here seem very similar to changes from other rollups in the past week, just in the opposite direction. So I think that it is noise (even though the changes here are mostly improvements anyway).

@rustbot label: +perf-regression-triaged

@rustbot rustbot added the perf-regression-triaged The performance regression has been triaged. label Sep 23, 2025
Muscraft pushed a commit to Muscraft/rust that referenced this pull request Sep 24, 2025
Rollup of 9 pull requests

Successful merges:

 - rust-lang#145411 (regression test for Cow<[u8]> layout)
 - rust-lang#146397 (std_detect on Darwin AArch64: update features)
 - rust-lang#146791 (emit attribute for readonly non-pure inline assembly)
 - rust-lang#146831 (Support ctr and lr as clobber-only registers in PowerPC inline assembly)
 - rust-lang#146838 (Introduce "wrapper" helpers to rustdoc)
 - rust-lang#146845 (Add self-profile events for target-machine creation)
 - rust-lang#146846 (btree InternalNode::new safety comments)
 - rust-lang#146858 (Make mips64el-unknown-linux-muslabi64 link dynamically)
 - rust-lang#146878 (assert_unsafe_precondition: fix some incorrect check_language_ub)

r? `@ghost`
`@rustbot` modify labels: rollup
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. 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-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-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. T-rustdoc-frontend Relevant to the rustdoc-frontend team, which will review and decide on the web UI/UX output.
Projects
None yet
Development

Successfully merging this pull request may close these issues.