Skip to content

Conversation

@matthiaskrgr
Copy link
Member

@matthiaskrgr matthiaskrgr commented Dec 3, 2025

Successful merges:

r? @ghost
@rustbot modify labels: rollup

Create a similar rollup

joshtriplett and others added 7 commits December 2, 2025 01:32
…sor`

As discussed extensively in libs-api, the initialized-bytes tracking
primarily benefits calls to `read_buf` that end up initializing the
buffer and calling `read`, at the expense of calls to `read_buf` that
*don't* need to initialize the buffer. Essentially, this optimizes for
the past at the expense of the future. If people observe performance
issues using `read_buf` (or something that calls it) with a given `Read`
impl, they can fix those performance issues by implementing `read_buf`
for that `Read`.

Update the documentation to stop talking about initialized-but-unfilled
bytes.

Remove all functions that just deal with those bytes and their tracking,
and remove usage of those methods.

Remove `BorrowedCursor::advance` as there's no longer a safe case for
advancing within initialized-but-unfilled bytes. Rename
`BorrowedCursor::advance_unchecked` to `advance`.

Update tests.
…tracking, r=Amanieu

Remove initialized-bytes tracking from `BorrowedBuf` and `BorrowedCursor`

As discussed extensively in libs-api, the initialized-bytes tracking primarily benefits calls to `read_buf` that end up initializing the buffer and calling `read`, at the expense of calls to `read_buf` that *don't* need to initialize the buffer. Essentially, this optimizes for the past at the expense of the future. If people observe performance issues using `read_buf` (or something that calls it) with a given `Read` impl, they can fix those performance issues by implementing `read_buf` for that `Read`.

Update the documentation to stop talking about initialized-but-unfilled bytes.

Remove all functions that just deal with those bytes and their tracking, and remove usage of those methods.

Remove `BorrowedCursor::advance` as there's no longer a safe case for advancing within initialized-but-unfilled bytes. Rename `BorrowedCursor::advance_unchecked` to `advance`.

Update tests.

r? ``@Amanieu``
…efault-uwtables, r=wesleywiser

added default_uwtables=true to aarch64_unknown_none targets

This patch adds DWARF unwinding tables by default for `aarch64-unknown-none` and `aarch64-unknown-none-softfloat` targets. By implication, the `core` library for these targets will be built with unwinding tables. These tables are often useful, and are especially needed for backtracing through `core` on embedded targets. The tables can be turned off for user compilation with `-C force-unwind-tables=no` if desired.

(I am the lead maintainer for these targets in the Rust Embedded Working Group, and have discussed this with REWG.)
…=notriddle

rustdoc: Fix broken link to `Itertools::format`

close rust-lang#148879
@rustbot rustbot added O-SGX Target: SGX O-windows Operating system: Windows 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. rollup A PR which is a rollup labels Dec 3, 2025
@matthiaskrgr
Copy link
Member Author

@bors r+ rollup=never p=5

@bors
Copy link
Collaborator

bors commented Dec 3, 2025

📌 Commit 7432e9e has been approved by matthiaskrgr

It is now in the queue for this repository.

@bors
Copy link
Collaborator

bors commented Dec 3, 2025

🌲 The tree is currently closed for pull requests below priority 1000. This pull request will be tested once the tree is reopened.

@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 Dec 3, 2025
@matthiaskrgr
Copy link
Member Author

@bors treeclosed-

@bors
Copy link
Collaborator

bors commented Dec 3, 2025

⌛ Testing commit 7432e9e with merge 254ed0a...

bors added a commit that referenced this pull request Dec 3, 2025
Rollup of 3 pull requests

Successful merges:

 - #148937 (Remove initialized-bytes tracking from `BorrowedBuf` and `BorrowedCursor`)
 - #149553 (added default_uwtables=true to aarch64_unknown_none targets)
 - #149578 (rustdoc: Fix broken link to `Itertools::format`)

r? `@ghost`
`@rustbot` modify labels: rollup
@rust-log-analyzer
Copy link
Collaborator

The job x86_64-gnu-tools failed! Check out the build log: (web) (plain enhanced) (plain)

Click to see the possible cause of the failure (guessed by this bot)

@matthiaskrgr
Copy link
Member Author

matthiaskrgr commented Dec 3, 2025

@/bors treeclosed=1000

@matthiaskrgr
Copy link
Member Author

@bors retry

@matthiaskrgr
Copy link
Member Author

matthiaskrgr commented Dec 3, 2025

@\bors treeclosed-

@bors
Copy link
Collaborator

bors commented Dec 3, 2025

⌛ Testing commit 7432e9e with merge 8202d11...

@bors
Copy link
Collaborator

bors commented Dec 3, 2025

☀️ Test successful - checks-actions
Approved by: matthiaskrgr
Pushing 8202d11 to main...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Dec 3, 2025
@bors bors merged commit 8202d11 into rust-lang:main Dec 3, 2025
6 of 12 checks passed
@rustbot rustbot added this to the 1.93.0 milestone Dec 3, 2025
@rust-timer
Copy link
Collaborator

📌 Perf builds for each rolled up PR:

PR# Message Perf Build Sha
#148937 Remove initialized-bytes tracking from BorrowedBuf and `B… cbe97c4856783c3f077b83b98a6dcf7c92a8e637 (link)
#149553 added default_uwtables=true to aarch64_unknown_none targets fabdbd0fa380d12bab07e9e16465aab514956fe0 (link)
#149578 rustdoc: Fix broken link to Itertools::format a9a31814567301b8be5c329e94e534996dfbad56 (link)

previous master: 672388edbe

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

@github-actions
Copy link
Contributor

github-actions bot commented Dec 3, 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 672388e (parent) -> 8202d11 (this PR)

Test differences

Show 212 test diffs

Stage 1

  • io::borrowed_buf::cursor_set_init: pass -> [missing] (J0)
  • io::borrowed_buf::initialize_unfilled: pass -> [missing] (J0)
  • io::borrowed_buf::set_init: pass -> [missing] (J0)
  • io::buffered::tests::bufreader_full_initialize: pass -> [missing] (J2)
  • io::tests::borrowed_cursor_advance_overflow: pass -> [missing] (J2)

Stage 2

  • io::borrowed_buf::cursor_set_init: pass -> [missing] (J1)
  • io::borrowed_buf::initialize_unfilled: pass -> [missing] (J1)
  • io::borrowed_buf::set_init: pass -> [missing] (J1)
  • io::buffered::tests::bufreader_full_initialize: pass -> [missing] (J1)
  • io::tests::borrowed_cursor_advance_overflow: pass -> [missing] (J1)

Additionally, 202 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 8202d110516c6bd87cee375e9a9b774db499015c --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. i686-msvc-1: 10599.7s -> 14259.1s (+34.5%)
  2. dist-apple-various: 4600.2s -> 3588.7s (-22.0%)
  3. aarch64-apple: 9909.4s -> 8410.4s (-15.1%)
  4. test-various: 6892.4s -> 5960.2s (-13.5%)
  5. x86_64-gnu-llvm-20: 2236.4s -> 2478.2s (+10.8%)
  6. x86_64-msvc-ext1: 7879.6s -> 7080.1s (-10.1%)
  7. i686-gnu-nopt-2: 8059.2s -> 7317.1s (-9.2%)
  8. x86_64-gnu-aux: 7188.2s -> 6583.2s (-8.4%)
  9. x86_64-gnu-miri: 4393.1s -> 4034.5s (-8.2%)
  10. dist-x86_64-apple: 7419.3s -> 8017.0s (+8.1%)
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 (8202d11): comparison URL.

Overall result: ❌✅ regressions and improvements - 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.1% [0.1%, 0.1%] 1
Improvements ✅
(primary)
-0.1% [-0.1%, -0.1%] 1
Improvements ✅
(secondary)
-0.2% [-0.2%, -0.1%] 2
All ❌✅ (primary) -0.1% [-0.1%, -0.1%] 1

Max RSS (memory usage)

Results (primary -0.5%)

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

mean range count
Regressions ❌
(primary)
3.1% [3.1%, 3.1%] 1
Regressions ❌
(secondary)
- - 0
Improvements ✅
(primary)
-4.1% [-4.1%, -4.1%] 1
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) -0.5% [-4.1%, 3.1%] 2

Cycles

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

Binary size

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

Bootstrap: 469.113s -> 469.504s (0.08%)
Artifact size: 386.77 MiB -> 386.76 MiB (-0.00%)

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

Labels

merged-by-bors This PR was explicitly merged by bors. O-SGX Target: SGX O-windows Operating system: Windows 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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants