Skip to content

Rollup of 6 pull requests #141379

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 16 commits into from
May 22, 2025
Merged

Rollup of 6 pull requests #141379

merged 16 commits into from
May 22, 2025

Conversation

matthiaskrgr
Copy link
Member

Successful merges:

r? @ghost
@rustbot modify labels: rollup

Create a similar rollup

SpecificProtagonist and others added 16 commits May 10, 2025 19:36
This will be used to access secrets once we move off rust-lang-ci.
The docs about how `#[inline]` was represented isn't true. Updates the
comment, and adds a test.

CC https://www.github.com/rust-lang/rust/issues/137645
… r=Nadrieril

dont handle bool transmute

removes `transmute(u8) -> bool` suggestion due to ambiguity, leave it for clippy

elaboration on ambiguity in question:
`transmute::<u8, bool>(x)` will codegen to an `assume(u8 < 2)`;
`_ == 1` or `_ != 0` or `_ % 2 == 0` would remove that assumption
`match _ { x @ (0 | 1) => x == 1, _ => std::hint::unreachable_unchecked() }` is very verbose

`@rustbot` label L-unnecessary_transmutes
…impl-code-link, r=notriddle

rustdoc: Fix links with inline code in trait impl docs

Fixes rust-lang#140857
Add bors environment to CI

This will be used to access secrets once we move off rust-lang-ci. The PR configures the environment:
- Only for `rust-lang/rust`, so that it doesn't affect `rust-lang-ci/rust` before we switch (we can remove this condition later, but the environment likely won't work for forks anyway, so we might as well just keep it to make fork CI work)
- Only for the `try`/`auto` branches, so that PR CI still works.

Context: rust-lang/infra-team#188

r? `@marcoieni`
bump stdarch

This should unblock rust-lang#135160.
r? `@Amanieu`
…umeGomez

rustdoc-json: Remove false docs and add test for inline attribute

The docs about how `#[inline]` was represented isn't true. Updates the comment, and adds a test.

CC rust-lang#137645

r? `@GuillaumeGomez`
add doc alias `replace_first` for `str::replacen`

`replace_first` is a sensible name for a function, analogous to actually existing `<[_]>::split_first`, for example. (I just saw someone try to search for it)

I think it's reasonable to add such an alias for `replacen`, which replaces the first occurrence of passed a 1.
@rustbot rustbot added A-rustdoc-json Area: Rustdoc JSON backend 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 May 22, 2025
@matthiaskrgr
Copy link
Member Author

@bors r+ rollup=never p=5

@bors
Copy link
Collaborator

bors commented May 22, 2025

📌 Commit a31a398 has been approved by matthiaskrgr

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

bors commented May 22, 2025

⌛ Testing commit a31a398 with merge 2cd3783...

@bors
Copy link
Collaborator

bors commented May 22, 2025

☀️ Test successful - checks-actions
Approved by: matthiaskrgr
Pushing 2cd3783 to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label May 22, 2025
@bors bors merged commit 2cd3783 into rust-lang:master May 22, 2025
1 check passed
@rustbot rustbot added this to the 1.89.0 milestone May 22, 2025
@rust-timer
Copy link
Collaborator

📌 Perf builds for each rolled up PR:

PR# Message Perf Build Sha
#140431 dont handle bool transmute 79b3b0725e8e6c79fe949a53bb0c0a1d7aca0fd4 (link)
#140868 rustdoc: Fix links with inline code in trait impl docs acdff7bb2f74c6e3c1207f4c67044867f337e0ec (link)
#141323 Add bors environment to CI c67916af4c17d02e309742a07aa7dd422b71957d (link)
#141337 bump stdarch 8cd5c592dc81776a13695c644be234850c6b9788 (link)
#141364 rustdoc-json: Remove false docs and add test for inline att… 833094d00e158654eff726c2f3b8666e05cbebd1 (link)
#141370 add doc alias replace_first for str::replacen ecacb3a031f83737e9858527c4596d2219726828 (link)

previous master: 6eef33bb39

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

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 6eef33b (parent) -> 2cd3783 (this PR)

Test differences

Show 118 test diffs

Stage 1

  • [rustdoc-json] tests/rustdoc-json/attrs/inline.rs: [missing] -> pass (J1)

Stage 2

  • [rustdoc-json] tests/rustdoc-json/attrs/inline.rs: [missing] -> pass (J0)

Additionally, 116 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 2cd37831b0706c9f2d6e7e20eb556dc7548bf732 --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. x86_64-apple-1: 8782.1s -> 6752.8s (-23.1%)
  2. x86_64-apple-2: 5807.5s -> 4865.5s (-16.2%)
  3. dist-apple-various: 7217.2s -> 6063.4s (-16.0%)
  4. dist-aarch64-apple: 5952.6s -> 5343.9s (-10.2%)
  5. dist-various-1: 4478.9s -> 4905.2s (9.5%)
  6. x86_64-gnu-tools: 6026.5s -> 6542.3s (8.6%)
  7. aarch64-apple: 4287.7s -> 3923.2s (-8.5%)
  8. dist-x86_64-msvc-alt: 8228.3s -> 7563.8s (-8.1%)
  9. dist-x86_64-apple: 9150.5s -> 8537.9s (-6.7%)
  10. armhf-gnu: 4698.2s -> 4419.3s (-5.9%)
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 (2cd3783): comparison URL.

Overall result: no relevant changes - no action needed

@rustbot label: -perf-regression

Instruction count

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

Max RSS (memory usage)

Results (primary 1.9%)

This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.

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

Cycles

Results (primary 0.9%)

This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.

mean range count
Regressions ❌
(primary)
0.9% [0.9%, 1.1%] 4
Regressions ❌
(secondary)
- - 0
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) 0.9% [0.9%, 1.1%] 4

Binary size

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

Bootstrap: 777.17s -> 775.776s (-0.18%)
Artifact size: 365.60 MiB -> 365.58 MiB (-0.01%)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-rustdoc-json Area: Rustdoc JSON backend merged-by-bors This PR was explicitly merged by bors. 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.

10 participants