Skip to content

Conversation

@Wilfred
Copy link
Contributor

@Wilfred Wilfred commented Jan 9, 2026

rust-analyzer has handy prebuilt cargo doc output at https://rust-lang.github.io/rust-analyzer/ide/

However, it doesn't include private definitions, which makes it less useful when trying to learn unfamiliar parts of the codebase.

Instead, pass --document-private-items so the HTML includes information on private types and modules too. rustdoc renders these with a padlock icon, so it's still clear that they're private.

This change also exposes some more rustdoc warnings, which I've fixed.

rust-analyzer has handy prebuilt `cargo doc` output at
https://rust-lang.github.io/rust-analyzer/ide/

However, it doesn't include private definitions, which makes it less
useful when trying to learn unfamiliar parts of the codebase.

Instead, pass `--document-private-items` so the HTML includes
information on private types and modules too. rustdoc renders these
with a padlock icon, so it's still clear that they're private.

This change also exposes some more rustdoc warnings, which I've fixed.
@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jan 9, 2026
Copy link
Contributor

@ChayimFriedman2 ChayimFriedman2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@ChayimFriedman2 ChayimFriedman2 added this pull request to the merge queue Jan 9, 2026
Merged via the queue into rust-lang:master with commit 714d047 Jan 9, 2026
15 checks passed
@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jan 9, 2026
@Wilfred Wilfred deleted the rustdoc_private_items branch January 9, 2026 14:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants