Skip to content

rustdoc doesn't show cfg items that can affect whether an item is available #66413

Closed
@Twey

Description

@Twey

It's very frustrating and confusing to read the rustdoc for a crate and go to use some item, only to find out that the item isn't available — and the only way to figure out how to enable it is to read the source of the crate.

Instead, it would be nice to have documentation on items that indicates any cfg annotations that affect the the items' compilation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions