Skip to content

You can pass a string literal to #[doc(hidden = "foo")]. Is this intended? #146346

@nik-rev

Description

@nik-rev

The docs don't mention this. Is it supposed to represent the reason why the item is hidden, or was it an oversight?

12 instances of this on GitHub: https://github.com/search?q=%2F%23%5C%5Bdoc%5C(hidden%20%3D%20%22%2F&type=code

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-attributesArea: Attributes (`#[…]`, `#![…]`)C-discussionCategory: Discussion or questions that doesn't represent real issues.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