Skip to content

rustdoc should hide private members in a const definition #32735

Closed
@nodakai

Description

@nodakai

pub const UNIX_EPOCH: SystemTime = SystemTime(time::UNIX_EPOCH)

Here, time::UNIX_EPOCH refers to a constant in libstd/sys/{unix,windows}/time.rs (depending on the compile config) and should not be exposed. Its type is platform-specific, and private, too.

Cf. the SystemTime type is displayed as

pub struct SystemTime(_);

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.T-dev-toolsRelevant to the dev-tools subteam, which will review and decide on the PR/issue.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