Skip to content

rustdoc: seperate methods and associated functions in sidebar - #154644

Merged
rust-bors[bot] merged 1 commit into
rust-lang:mainfrom
lolbinarycat:rustdoc-sidebar-assoc-items
Apr 2, 2026
Merged

rustdoc: seperate methods and associated functions in sidebar#154644
rust-bors[bot] merged 1 commit into
rust-lang:mainfrom
lolbinarycat:rustdoc-sidebar-assoc-items

Conversation

@lolbinarycat

@lolbinarycatlolbinarycat commented Mar 31, 2026

Copy link
Copy Markdown
Contributor

View all comments

fixes#154602

r? @fmease

before:
image

after:
image

example of type with both (Box):
image

@rustbot

Copy link
Copy Markdown
Collaborator

Some changes occurred in GUI tests.

cc @GuillaumeGomez

@rustbotrustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. 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 Mar 31, 2026
@GuillaumeGomez

Copy link
Copy Markdown
Member

Just want to check perf but otherwise looks good to me, nice improvement!

@bors try @rust-timer queue

@rust-timer

This comment has been minimized.

@rustbotrustbot added the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Mar 31, 2026
@rust-bors

This comment has been minimized.

rust-borsBot pushed a commit that referenced this pull request Mar 31, 2026
…try>
rustdoc: seperate methods and associated functions in sidebar
@rust-bors

rust-borsBot commented Mar 31, 2026

Copy link
Copy Markdown
Contributor

☀️ Try build successful (CI)
Build commit: c9573e9 (c9573e9d13de5219d9cb386b0546d49f0dcf3326, parent: ba11b1e3f09829428844b74829146fcf7c38d3d0)

@rust-timer

This comment has been minimized.

@rust-timer

Copy link
Copy Markdown
Collaborator

Finished benchmarking commit (c9573e9): comparison URL.

Overall result: no relevant changes - no action needed

Benchmarking this pull request means it may be perf-sensitive – we'll automatically label it not fit for rolling up. You can override this, but we strongly advise not to, due to possible changes in compiler perf.

@bors rollup=never
@rustbot label: -S-waiting-on-perf -perf-regression

Instruction count

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

Max RSS (memory usage)

Results (primary 0.2%, secondary 0.2%)

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

meanrangecount
Regressions ❌
(primary)
2.3%[0.9%, 3.4%]6
Regressions ❌
(secondary)
2.3%[1.2%, 3.8%]5
Improvements ✅
(primary)
-2.3%[-3.6%, -1.2%]5
Improvements ✅
(secondary)
-2.4%[-2.9%, -1.5%]4
All ❌✅ (primary)0.2%[-3.6%, 3.4%]11

Cycles

Results (primary -2.3%, secondary -4.2%)

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

meanrangecount
Regressions ❌
(primary)
--0
Regressions ❌
(secondary)
--0
Improvements ✅
(primary)
-2.3%[-2.3%, -2.3%]1
Improvements ✅
(secondary)
-4.2%[-4.2%, -4.2%]1
All ❌✅ (primary)-2.3%[-2.3%, -2.3%]1

Binary size

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

Bootstrap: 488.578s -> 483.261s (-1.09%)
Artifact size: 394.90 MiB -> 395.02 MiB (0.03%)

@rustbotrustbot removed the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Mar 31, 2026
@GuillaumeGomez

Copy link
Copy Markdown
Member

All good, then let's go!

@bors r+ rollup

@rust-bors

rust-borsBot commented Apr 1, 2026

Copy link
Copy Markdown
Contributor

📌 Commit 9bdf217 has been approved by GuillaumeGomez

It is now in the queue for this repository.

@rust-borsrust-borsBot 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 Apr 1, 2026
chenyukang added a commit to chenyukang/rust that referenced this pull request Apr 1, 2026
…-items, r=GuillaumeGomez
rustdoc: seperate methods and associated functions in sidebar
fixesrust-lang#154602
r? @fmease
before:
<img width="340" height="591" alt="image" src="https://github.com/user-attachments/assets/79268155-5260-4bb9-a826-46f459fc81eb" />
after:
<img width="514" height="588" alt="image" src="https://github.com/user-attachments/assets/b56b5ca6-28d7-45a7-86a9-ad6bf37f608a" />
example of type with both (`Box`):
<img width="410" height="760" alt="image" src="https://github.com/user-attachments/assets/a74dd536-e931-4d8f-af95-275bfcf48285" />
@chenyukangchenyukang mentioned this pull request Apr 1, 2026
JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request Apr 1, 2026
…-items, r=GuillaumeGomez
rustdoc: seperate methods and associated functions in sidebar
fixesrust-lang#154602
r? @fmease
before:
<img width="340" height="591" alt="image" src="https://github.com/user-attachments/assets/79268155-5260-4bb9-a826-46f459fc81eb" />
after:
<img width="514" height="588" alt="image" src="https://github.com/user-attachments/assets/b56b5ca6-28d7-45a7-86a9-ad6bf37f608a" />
example of type with both (`Box`):
<img width="410" height="760" alt="image" src="https://github.com/user-attachments/assets/a74dd536-e931-4d8f-af95-275bfcf48285" />
@lolbinarycatlolbinarycat added the relnotes Marks issues that should be documented in the release notes of the next release. label Apr 1, 2026
@rust-borsrust-borsBot added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Apr 1, 2026
@rust-bors

rust-borsBot commented Apr 1, 2026

Copy link
Copy Markdown
Contributor

⚠️ A new commit 34e07d55553012f02e79a57de3876e471bf33bc1 was pushed.

This pull request was unapproved.

This PR was contained in a rollup (#154688), which was closed.

@rust-log-analyzer

This comment has been minimized.

@lolbinarycat
lolbinarycatforce-pushed the rustdoc-sidebar-assoc-items branch from 6bd7798 to 9bdf217CompareApril 1, 2026 21:09
@rustbot

This comment was marked as outdated.

@lolbinarycat

Copy link
Copy Markdown
ContributorAuthor

Ok, I apperently somehow a different local branch got set up so that its upstream is this branch, then trying to rebase the branch to fix things just made them worse. Hopefully everything is resolved now.

@bors r=GuillaumeGomez rollup

@rust-bors

rust-borsBot commented Apr 1, 2026

Copy link
Copy Markdown
Contributor

📌 Commit 9bdf217 has been approved by GuillaumeGomez

It is now in the queue for this repository.

@rust-borsrust-borsBot 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-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Apr 1, 2026
jhpratt added a commit to jhpratt/rust that referenced this pull request Apr 2, 2026
…-items, r=GuillaumeGomez
rustdoc: seperate methods and associated functions in sidebar
fixesrust-lang#154602
r? @fmease
before:
<img width="340" height="591" alt="image" src="https://github.com/user-attachments/assets/79268155-5260-4bb9-a826-46f459fc81eb" />
after:
<img width="514" height="588" alt="image" src="https://github.com/user-attachments/assets/b56b5ca6-28d7-45a7-86a9-ad6bf37f608a" />
example of type with both (`Box`):
<img width="410" height="760" alt="image" src="https://github.com/user-attachments/assets/a74dd536-e931-4d8f-af95-275bfcf48285" />
@jhprattjhpratt mentioned this pull request Apr 2, 2026
rust-borsBot pushed a commit that referenced this pull request Apr 2, 2026
Rollup of 11 pull requests
Successful merges:
- #153105 (Compute the result of a projection type with region errors)
- #153286 (various fixes for scalable vectors)
- #153960 (Make `layout_of` cycles fatal errors)
- #154527 (Emit pre-expansion feature gate warnings for negative impls and specialization)
- #154666 (Remove `StableHashContext` impls)
- #154669 (Introduce #[diagnostic::on_move] on `Arc`)
- #154442 (Export `derive` at the crate root: `core::derive` and `std::derive`)
- #154644 (rustdoc: seperate methods and associated functions in sidebar)
- #154660 (Avoid creating async return opaques for foreign async fns)
- #154671 (Add a test for a past ICE when calling a const fn of an unresolved type with the wrong number of args)
- #154680 ([rustdoc] Replace `DocContext` with `TyCtxt` wherever possible)
jhpratt added a commit to jhpratt/rust that referenced this pull request Apr 2, 2026
…-items, r=GuillaumeGomez
rustdoc: seperate methods and associated functions in sidebar
fixesrust-lang#154602
r? @fmease
before:
<img width="340" height="591" alt="image" src="https://github.com/user-attachments/assets/79268155-5260-4bb9-a826-46f459fc81eb" />
after:
<img width="514" height="588" alt="image" src="https://github.com/user-attachments/assets/b56b5ca6-28d7-45a7-86a9-ad6bf37f608a" />
example of type with both (`Box`):
<img width="410" height="760" alt="image" src="https://github.com/user-attachments/assets/a74dd536-e931-4d8f-af95-275bfcf48285" />
@jhprattjhpratt mentioned this pull request Apr 2, 2026
rust-borsBot pushed a commit that referenced this pull request Apr 2, 2026
Rollup of 11 pull requests
Successful merges:
- #153105 (Compute the result of a projection type with region errors)
- #153960 (Make `layout_of` cycles fatal errors)
- #154527 (Emit pre-expansion feature gate warnings for negative impls and specialization)
- #154666 (Remove `StableHashContext` impls)
- #154669 (Introduce #[diagnostic::on_move] on `Arc`)
- #154213 (tidy-alphabetical: fix line number in error message)
- #154442 (Export `derive` at the crate root: `core::derive` and `std::derive`)
- #154644 (rustdoc: seperate methods and associated functions in sidebar)
- #154660 (Avoid creating async return opaques for foreign async fns)
- #154671 (Add a test for a past ICE when calling a const fn of an unresolved type with the wrong number of args)
- #154680 ([rustdoc] Replace `DocContext` with `TyCtxt` wherever possible)
JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request Apr 2, 2026
…-items, r=GuillaumeGomez
rustdoc: seperate methods and associated functions in sidebar
fixesrust-lang#154602
r? @fmease
before:
<img width="340" height="591" alt="image" src="https://github.com/user-attachments/assets/79268155-5260-4bb9-a826-46f459fc81eb" />
after:
<img width="514" height="588" alt="image" src="https://github.com/user-attachments/assets/b56b5ca6-28d7-45a7-86a9-ad6bf37f608a" />
example of type with both (`Box`):
<img width="410" height="760" alt="image" src="https://github.com/user-attachments/assets/a74dd536-e931-4d8f-af95-275bfcf48285" />
rust-borsBot pushed a commit that referenced this pull request Apr 2, 2026
…uwer
Rollup of 21 pull requests
Successful merges:
- #153105 (Compute the result of a projection type with region errors)
- #153286 (various fixes for scalable vectors)
- #153532 (Attributes containing rustc)
- #153960 (Make `layout_of` cycles fatal errors)
- #154527 (Emit pre-expansion feature gate warnings for negative impls and specialization)
- #154666 (Remove `StableHashContext` impls)
- #154669 (Introduce #[diagnostic::on_move] on `Arc`)
- #154710 (opaque_generic_const_args -> generic_const_args)
- #154712 (Revert "`-Znext-solver` Remove the forced ambiguity hack from search graph")
- #154713 (Stop compiling when we get resolving crate failure)
- #154213 (tidy-alphabetical: fix line number in error message)
- #154425 (Migrate transmute tests)
- #154442 (Export `derive` at the crate root: `core::derive` and `std::derive`)
- #154469 (mGCA: Lower spans for literal const args)
- #154578 (Rename `probe_ty_var` to `try_resolve_ty_var`)
- #154615 (Moving issues)
- #154644 (rustdoc: seperate methods and associated functions in sidebar)
- #154660 (Avoid creating async return opaques for foreign async fns)
- #154671 (Add a test for a past ICE when calling a const fn of an unresolved type with the wrong number of args)
- #154680 ([rustdoc] Replace `DocContext` with `TyCtxt` wherever possible)
- #154709 (Revert `Ty` type alias in `rustc_type_ir`)
JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request Apr 2, 2026
…-items, r=GuillaumeGomez
rustdoc: seperate methods and associated functions in sidebar
fixesrust-lang#154602
r? @fmease
before:
<img width="340" height="591" alt="image" src="https://github.com/user-attachments/assets/79268155-5260-4bb9-a826-46f459fc81eb" />
after:
<img width="514" height="588" alt="image" src="https://github.com/user-attachments/assets/b56b5ca6-28d7-45a7-86a9-ad6bf37f608a" />
example of type with both (`Box`):
<img width="410" height="760" alt="image" src="https://github.com/user-attachments/assets/a74dd536-e931-4d8f-af95-275bfcf48285" />
rust-borsBot pushed a commit that referenced this pull request Apr 2, 2026
…uwer
Rollup of 21 pull requests
Successful merges:
- #153105 (Compute the result of a projection type with region errors)
- #153286 (various fixes for scalable vectors)
- #153532 (Attributes containing rustc)
- #153960 (Make `layout_of` cycles fatal errors)
- #154527 (Emit pre-expansion feature gate warnings for negative impls and specialization)
- #154666 (Remove `StableHashContext` impls)
- #154669 (Introduce #[diagnostic::on_move] on `Arc`)
- #154710 (opaque_generic_const_args -> generic_const_args)
- #154712 (Revert "`-Znext-solver` Remove the forced ambiguity hack from search graph")
- #153614 (`FindParamInClause` handle edge-cases)
- #154213 (tidy-alphabetical: fix line number in error message)
- #154425 (Migrate transmute tests)
- #154442 (Export `derive` at the crate root: `core::derive` and `std::derive`)
- #154469 (mGCA: Lower spans for literal const args)
- #154578 (Rename `probe_ty_var` to `try_resolve_ty_var`)
- #154615 (Moving issues)
- #154644 (rustdoc: seperate methods and associated functions in sidebar)
- #154660 (Avoid creating async return opaques for foreign async fns)
- #154671 (Add a test for a past ICE when calling a const fn of an unresolved type with the wrong number of args)
- #154680 ([rustdoc] Replace `DocContext` with `TyCtxt` wherever possible)
- #154709 (Revert `Ty` type alias in `rustc_type_ir`)
rust-borsBot pushed a commit that referenced this pull request Apr 2, 2026
…uwer
Rollup of 20 pull requests
Successful merges:
- #153105 (Compute the result of a projection type with region errors)
- #153532 (Attributes containing rustc)
- #153960 (Make `layout_of` cycles fatal errors)
- #154527 (Emit pre-expansion feature gate warnings for negative impls and specialization)
- #154666 (Remove `StableHashContext` impls)
- #154669 (Introduce #[diagnostic::on_move] on `Arc`)
- #154710 (opaque_generic_const_args -> generic_const_args)
- #154712 (Revert "`-Znext-solver` Remove the forced ambiguity hack from search graph")
- #153614 (`FindParamInClause` handle edge-cases)
- #154213 (tidy-alphabetical: fix line number in error message)
- #154425 (Migrate transmute tests)
- #154442 (Export `derive` at the crate root: `core::derive` and `std::derive`)
- #154469 (mGCA: Lower spans for literal const args)
- #154578 (Rename `probe_ty_var` to `try_resolve_ty_var`)
- #154615 (Moving issues)
- #154644 (rustdoc: seperate methods and associated functions in sidebar)
- #154660 (Avoid creating async return opaques for foreign async fns)
- #154671 (Add a test for a past ICE when calling a const fn of an unresolved type with the wrong number of args)
- #154680 ([rustdoc] Replace `DocContext` with `TyCtxt` wherever possible)
- #154709 (Revert `Ty` type alias in `rustc_type_ir`)
@rust-bors
rust-borsBot merged commit 878c36b into rust-lang:mainApr 2, 2026
24 of 34 checks passed
@rustbotrustbot added this to the 1.96.0 milestone Apr 2, 2026
rust-timer added a commit that referenced this pull request Apr 2, 2026
Rollup merge of #154644 - lolbinarycat:rustdoc-sidebar-assoc-items, r=GuillaumeGomez
rustdoc: seperate methods and associated functions in sidebar
fixes#154602
r? @fmease
before:
<img width="340" height="591" alt="image" src="https://github.com/user-attachments/assets/79268155-5260-4bb9-a826-46f459fc81eb" />
after:
<img width="514" height="588" alt="image" src="https://github.com/user-attachments/assets/b56b5ca6-28d7-45a7-86a9-ad6bf37f608a" />
example of type with both (`Box`):
<img width="410" height="760" alt="image" src="https://github.com/user-attachments/assets/a74dd536-e931-4d8f-af95-275bfcf48285" />
github-actionsBot pushed a commit to rust-lang/miri that referenced this pull request Apr 3, 2026
…uwer
Rollup of 20 pull requests
Successful merges:
- rust-lang/rust#153105 (Compute the result of a projection type with region errors)
- rust-lang/rust#153532 (Attributes containing rustc)
- rust-lang/rust#153960 (Make `layout_of` cycles fatal errors)
- rust-lang/rust#154527 (Emit pre-expansion feature gate warnings for negative impls and specialization)
- rust-lang/rust#154666 (Remove `StableHashContext` impls)
- rust-lang/rust#154669 (Introduce #[diagnostic::on_move] on `Arc`)
- rust-lang/rust#154710 (opaque_generic_const_args -> generic_const_args)
- rust-lang/rust#154712 (Revert "`-Znext-solver` Remove the forced ambiguity hack from search graph")
- rust-lang/rust#153614 (`FindParamInClause` handle edge-cases)
- rust-lang/rust#154213 (tidy-alphabetical: fix line number in error message)
- rust-lang/rust#154425 (Migrate transmute tests)
- rust-lang/rust#154442 (Export `derive` at the crate root: `core::derive` and `std::derive`)
- rust-lang/rust#154469 (mGCA: Lower spans for literal const args)
- rust-lang/rust#154578 (Rename `probe_ty_var` to `try_resolve_ty_var`)
- rust-lang/rust#154615 (Moving issues)
- rust-lang/rust#154644 (rustdoc: seperate methods and associated functions in sidebar)
- rust-lang/rust#154660 (Avoid creating async return opaques for foreign async fns)
- rust-lang/rust#154671 (Add a test for a past ICE when calling a const fn of an unresolved type with the wrong number of args)
- rust-lang/rust#154680 ([rustdoc] Replace `DocContext` with `TyCtxt` wherever possible)
- rust-lang/rust#154709 (Revert `Ty` type alias in `rustc_type_ir`)
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request Apr 3, 2026
…ode_examples-macro_rules, r=GuillaumeGomez
rustdoc_missing_doc_code_examples: lint on macro_rules macros
part of rust-lang#154640
accidentally built this on top of rust-lang#154644, but since that PR is already approved it should be fine if we just wait for it to be merged.
r? @GuillaumeGomez
rust-timer added a commit that referenced this pull request Apr 3, 2026
Rollup merge of #154696 - lolbinarycat:rustdoc-missing_doc_code_examples-macro_rules, r=GuillaumeGomez
rustdoc_missing_doc_code_examples: lint on macro_rules macros
part of #154640
accidentally built this on top of #154644, but since that PR is already approved it should be fine if we just wait for it to be merged.
r? @GuillaumeGomez
@nyurik

Copy link
Copy Markdown
Contributor

note that the typo in seperate title made it into the release docs

@fmeasefmease assigned GuillaumeGomez and unassigned fmeaseAug 23, 2026
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

relnotesMarks issues that should be documented in the release notes of the next release.S-waiting-on-borsStatus: Waiting on bors to run and complete tests. Bors will change the label on completion.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.T-rustdoc-frontendRelevant to the rustdoc-frontend team, which will review and decide on the web UI/UX output.WG-trait-system-refactorThe Rustc Trait System Refactor Initiative (-Znext-solver)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

rustdoc sidebar calls all associated functions methods, not just those that support method syntax

7 participants

@lolbinarycat@rustbot@GuillaumeGomez@rust-timer@rust-log-analyzer@nyurik@fmease