Skip to content

Rollup of 7 pull requests - #161990

Merged
rust-bors[bot] merged 15 commits into
rust-lang:mainfrom
GuillaumeGomez:rollup-jrJIOEF
Aug 30, 2026
Merged

Rollup of 7 pull requests#161990
rust-bors[bot] merged 15 commits into
rust-lang:mainfrom
GuillaumeGomez:rollup-jrJIOEF

Conversation

@GuillaumeGomez

Copy link
Copy Markdown
Member

Successful merges:

Failed merges:

r? @ghost

Create a similar rollup

mejrs and others added 15 commits August 28, 2026 21:33
safety comments in alloc

this was pain and it's not even half i think

oepsje woepsje
While fuzzing I noticed we would now ICE in two places when encountering an empty or filled `#![rustc_never_type_options()]` attr:

compiler/rustc_passes/src/check_attr.rs:160:33: builtin attribute "rustc_never_type_options" not handled by `CheckAttrVisitor`
compiler/rustc_attr_parsing/src/validate_attr.rs:42:17: assertion failed: lint_attrs.contains(name)

So remove these two entries after which we will just error with `error: cannot find attribute`
After the first move_suffix in Root::split_off, the source and result
trees share values through two temporarily invalid structures. If a
later key comparison panics, unwinding leaves the map with a stale
length over a partially detached tree, and consuming iteration then
double-frees the shared values, reachable from safe code.

Guard the descent loop with a mem::DropGuard that aborts on unwind,
armed before the first move_suffix and dismissed once the borders are
fixed.
…rfonthey

Enforce safety comments on `alloc`

cc @clarfonthey, @workingjubilee. Following up from rust-lang#160824. I spent a painfully long time going over the comments and ensuring there's nothing too awful ^^

r? clarfonthey
…anic-safety, r=nia-e

Abort instead of unwinding out of an inconsistent BTreeMap::split_off

Fixes rust-lang#158165. Supersedes rust-lang#161784, which I had to abandon after a bad force-push from a shallow clone left its head detached.

`BTreeMap::split_off` runs the caller's `Ord`/`Borrow` impl via `search_node` inside `Root::split_off`'s descent. After the first `move_suffix`, the two roots alias the same values through structurally invalid trees until the borders are fixed; a comparator panic there unwinds with a stale length and double-frees on later iteration or drop. It is reachable from `#![forbid(unsafe_code)]` on stable (reproducer on the issue).

Guard the descent loop with an abort-on-panic `PanicGuard`, as `btree::mem::replace` already does. `catch_unwind` isnt available in `alloc` (no_std), and I kept an inline guard rather than the unstable `DropGuard`. It is armed once before the loop; the first `search_node` stays outside it, since a panic there can still unwind safely (nothing has moved yet).

Verified with Miri: the reproducer goes from a double-free to a clean abort, and normal multi-level splits are unaffected. Adds a happy-path regression test.

Credit to @ostrowr for the report and to rust-lang#158710 for the original approach.

r? @nia-e
…iguous-glob-subtrait, r=fmease

Preserve ambiguous glob lint for subtrait method picks

Fixes rust-lang#157965
…onathanbrouwer

rework handling of doc attributes on macro calls

 rust-lang#160904 but with the fcw changes removed

r? @JonathanBrouwer
…g, r=fmease

rustdoc: Take into account edition information for keyword highlighting

Fixes rust-lang#148221.

The only thing that was missing was passing down an `Edition` to the highlighter (and adding tests).

r? @fmease
remove rustc_never_type_options attr remnants

While fuzzing I noticed we would now ICE in two places when encountering an empty or filled `#![rustc_never_type_options()]` attr:

compiler/rustc_passes/src/check_attr.rs:160:33: builtin attribute "rustc_never_type_options" not handled by `CheckAttrVisitor`
compiler/rustc_attr_parsing/src/validate_attr.rs:42:17: assertion failed: lint_attrs.contains(name)

So remove these two entries after which we will just error with `error: cannot find attribute`

r? @WaffleLapkin
… r=fmease

Move rustdoc ui doctests into the right testsuite

When working on rust-lang#161944 (comment), I realized that a lot of doctests in `rustdoc-html` testsuite were not in the correct testsuite, so moving them in the right location.

Because you're the one who made me realize it, here goes @fmease (thanks!) :p

r? @fmease
@rust-bors rust-bors Bot added the rollup A PR which is a rollup label Aug 29, 2026
@rustbot rustbot added A-attributes Area: Attributes (`#[…]`, `#![…]`) A-tidy Area: The tidy tool 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. 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. labels Aug 29, 2026
@GuillaumeGomez

Copy link
Copy Markdown
Member Author

@bors r+ p=5

@rust-bors

rust-bors Bot commented Aug 29, 2026

Copy link
Copy Markdown
Contributor

📌 Commit ce7aa01 has been approved by GuillaumeGomez

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 Aug 29, 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 Aug 30, 2026
@rust-bors

rust-bors Bot commented Aug 30, 2026

Copy link
Copy Markdown
Contributor

☀️ Test successful - CI
Approved by: GuillaumeGomez
Duration: 3h 6m 47s
Pushing 4545c83 to main...

@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 fd7ed57 (parent) -> 4545c83 (this PR)

Test differences

Show 2844 test diffs

Stage 1

  • [rustdoc-html] tests/rustdoc-html/doctest/doctest-cfg-feature-30252.rs: pass -> [missing] (J0)
  • [rustdoc-html] tests/rustdoc-html/doctest/doctest-crate-attributes-38129.rs: pass -> [missing] (J0)
  • [rustdoc-html] tests/rustdoc-html/doctest/doctest-hide-empty-line-23106.rs: pass -> [missing] (J0)
  • [rustdoc-html] tests/rustdoc-html/doctest/doctest-ignore-32556.rs: pass -> [missing] (J0)
  • [rustdoc-html] tests/rustdoc-html/doctest/doctest-include-43153.rs: pass -> [missing] (J0)
  • [rustdoc-html] tests/rustdoc-html/doctest/doctest-macro-38219.rs: pass -> [missing] (J0)
  • [rustdoc-html] tests/rustdoc-html/doctest/doctest-manual-crate-name.rs: pass -> [missing] (J0)
  • [rustdoc-html] tests/rustdoc-html/doctest/doctest-markdown-inline-parse-23744.rs: pass -> [missing] (J0)
  • [rustdoc-html] tests/rustdoc-html/doctest/doctest-markdown-trailing-docblock-48377.rs: pass -> [missing] (J0)
  • [rustdoc-html] tests/rustdoc-html/doctest/doctest-multi-line-string-literal-25944.rs: pass -> [missing] (J0)
  • [rustdoc-html] tests/rustdoc-html/doctest/doctest-runtool.rs: pass -> [missing] (J0)
  • [rustdoc-html] tests/rustdoc-html/doctest/editions.rs: [missing] -> pass (J0)
  • [rustdoc-html] tests/rustdoc-html/macro-expansion/editions.rs: [missing] -> pass (J0)
  • [ui] tests/rustdoc-ui/doctest/doctest-cfg-feature-30252.rs: [missing] -> pass (J0)
  • [ui] tests/rustdoc-ui/doctest/doctest-crate-attributes-38129.rs: [missing] -> pass (J0)
  • [ui] tests/rustdoc-ui/doctest/doctest-hide-empty-line-23106.rs: [missing] -> pass (J0)
  • [ui] tests/rustdoc-ui/doctest/doctest-ignore-32556.rs: [missing] -> pass (J0)
  • [ui] tests/rustdoc-ui/doctest/doctest-include-43153.rs: [missing] -> pass (J0)
  • [ui] tests/rustdoc-ui/doctest/doctest-macro-38219.rs: [missing] -> pass (J0)
  • [ui] tests/rustdoc-ui/doctest/doctest-manual-crate-name.rs: [missing] -> pass (J0)
  • [ui] tests/rustdoc-ui/doctest/doctest-markdown-inline-parse-23744.rs: [missing] -> pass (J0)
  • [ui] tests/rustdoc-ui/doctest/doctest-markdown-trailing-docblock-48377.rs: [missing] -> pass (J0)
  • [ui] tests/rustdoc-ui/doctest/doctest-multi-line-string-literal-25944.rs: [missing] -> pass (J0)
  • [ui (polonius)] tests/ui/supertrait-shadowing/ambiguous-glob-imported-subtrait.rs: [missing] -> pass (J2)
  • collections::btree::map::tests::test_split_off_multi_level_panic_guard_happy_path: [missing] -> pass (J4)
  • [ui] tests/ui/supertrait-shadowing/ambiguous-glob-imported-subtrait.rs: [missing] -> pass (J5)

Stage 2

  • [rustdoc-html] tests/rustdoc-html/doctest/doctest-cfg-feature-30252.rs: pass -> [missing] (J1)
  • [rustdoc-html] tests/rustdoc-html/doctest/doctest-crate-attributes-38129.rs: pass -> [missing] (J1)
  • [rustdoc-html] tests/rustdoc-html/doctest/doctest-hide-empty-line-23106.rs: pass -> [missing] (J1)
  • [rustdoc-html] tests/rustdoc-html/doctest/doctest-ignore-32556.rs: pass -> [missing] (J1)
  • [rustdoc-html] tests/rustdoc-html/doctest/doctest-include-43153.rs: pass -> [missing] (J1)
  • [rustdoc-html] tests/rustdoc-html/doctest/doctest-macro-38219.rs: pass -> [missing] (J1)
  • [rustdoc-html] tests/rustdoc-html/doctest/doctest-manual-crate-name.rs: pass -> [missing] (J1)
  • [rustdoc-html] tests/rustdoc-html/doctest/doctest-markdown-inline-parse-23744.rs: pass -> [missing] (J1)
  • [rustdoc-html] tests/rustdoc-html/doctest/doctest-markdown-trailing-docblock-48377.rs: pass -> [missing] (J1)
  • [rustdoc-html] tests/rustdoc-html/doctest/doctest-multi-line-string-literal-25944.rs: pass -> [missing] (J1)
  • [rustdoc-html] tests/rustdoc-html/doctest/doctest-runtool.rs: pass -> [missing] (J1)
  • [rustdoc-html] tests/rustdoc-html/doctest/editions.rs: [missing] -> pass (J1)
  • [rustdoc-html] tests/rustdoc-html/macro-expansion/editions.rs: [missing] -> pass (J1)
  • [ui] tests/rustdoc-ui/doctest/doctest-cfg-feature-30252.rs: [missing] -> pass (J1)
  • [ui] tests/rustdoc-ui/doctest/doctest-crate-attributes-38129.rs: [missing] -> pass (J1)
  • [ui] tests/rustdoc-ui/doctest/doctest-hide-empty-line-23106.rs: [missing] -> pass (J1)
  • [ui] tests/rustdoc-ui/doctest/doctest-ignore-32556.rs: [missing] -> pass (J1)
  • [ui] tests/rustdoc-ui/doctest/doctest-include-43153.rs: [missing] -> pass (J1)
  • [ui] tests/rustdoc-ui/doctest/doctest-macro-38219.rs: [missing] -> pass (J1)
  • [ui] tests/rustdoc-ui/doctest/doctest-manual-crate-name.rs: [missing] -> pass (J1)
  • [ui] tests/rustdoc-ui/doctest/doctest-markdown-inline-parse-23744.rs: [missing] -> pass (J1)
  • [ui] tests/rustdoc-ui/doctest/doctest-markdown-trailing-docblock-48377.rs: [missing] -> pass (J1)
  • [ui] tests/rustdoc-ui/doctest/doctest-multi-line-string-literal-25944.rs: [missing] -> pass (J1)
  • collections::btree::map::tests::test_split_off_multi_level_panic_guard_happy_path: [missing] -> pass (J3)
  • [ui] tests/ui/supertrait-shadowing/ambiguous-glob-imported-subtrait.rs: [missing] -> pass (J6)

Additionally, 2793 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 4545c8369286cd331ab9d6250c25630a69d6f790 --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-gnu-stdlib-semver-check: 10m 5s -> 18m 13s (+80.7%)
  2. i686-gnu-1: 1h 24m -> 2h 23m (+71.1%)
  3. dist-i686-msvc: 1h 19m -> 2h 6m (+60.2%)
  4. x86_64-gnu-llvm-22-3: 1h 24m -> 1h 56m (+39.0%)
  5. x86_64-rust-for-linux: 40m 49s -> 55m 25s (+35.8%)
  6. x86_64-mingw-1: 3h 1m -> 2h 6m (-30.4%)
  7. x86_64-mingw-2: 2h 50m -> 2h 6m (-25.9%)
  8. dist-i686-mingw: 43m 38s -> 54m 55s (+25.9%)
  9. x86_64-gnu-parallel-frontend: 1h 37m -> 2h 1m (+24.8%)
  10. x86_64-gnu-gcc-core-tests: 11m 7s -> 13m 51s (+24.6%)
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 (4545c83): comparison URL.

Overall result: ✅ 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
Improvements ✅
(primary)
-0.2% [-0.2%, -0.2%] 3
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) -0.2% [-0.2%, -0.2%] 3

Max RSS (memory usage)

Results (primary 0.9%, secondary -2.8%)

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

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

Cycles

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

Binary size

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

Bootstrap: 476.157s -> 474.853s (-0.27%)
Artifact size: 402.84 MiB -> 402.86 MiB (0.00%)

@rust-bors

rust-bors Bot commented Aug 30, 2026

Copy link
Copy Markdown
Contributor

📌 Perf builds for each rolled up PR:

PR# Message Perf Build Sha
#160941 Enforce safety comments on alloc 71fc40ee2dd0c72efb300d6e860981651cb8b6a8
(link)
#161975 Abort instead of unwinding out of an inconsistent BTreeMap:… 69748f432e6fbb820d23bece77c321d7f69b0683
(link)
#157968 Preserve ambiguous glob lint for subtrait method picks edeca681c5558b9f00fd990400b9eadd03897705
(link)
#161514 rework handling of doc attributes on macro calls 98a1579b7fd8703b87b4ef942bebfe93f37950fe
(link)
#161944 rustdoc: Take into account edition information for keyword … 49f2ad4f7cc05e8355da05b3088fc32ff2ee6778
(link)
#161974 remove rustc_never_type_options attr remnants 92baa2c21c883bc8ea808917f4d25d39537a0669
(link)
#161978 Move rustdoc ui doctests into the right testsuite 554ae8938c7c33cbc79f46109ba4c0d17c321559
(link)

parent commit: fd7ed57dfd

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

@GuillaumeGomez
GuillaumeGomez deleted the rollup-jrJIOEF branch August 30, 2026 13:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-attributes Area: Attributes (`#[…]`, `#![…]`) A-tidy Area: The tidy tool merged-by-bors This PR was explicitly merged by bors. rollup A PR which is a rollup 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. 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.

8 participants