Skip to content

Rustdoc (rustdoc_ng) should hide priv items and methods by default #9410

Closed
@bluss

Description

@bluss

Rustdoc should hide private and should be private items like statics, functions, structs where priv or non-pub is effectively malfunctioning today.

Lots of non-pub methods, functions, structs are now showing up in the official Trunk documentation, and thanks to bugs it's possible to use some of these as well (for example std::hashmap::resize_at is can be called).

  • Documentation is easier to understand if only pub items are shown
  • We want to avoid users starting to rely on non-pub items.

Tag #8125

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions