Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rustdoc should hide private members in a const definition #32735

Closed
nodakai opened this issue Apr 5, 2016 · 1 comment
Closed

rustdoc should hide private members in a const definition #32735

nodakai opened this issue Apr 5, 2016 · 1 comment
Labels
C-bug Category: This is a bug. T-dev-tools Relevant to the dev-tools subteam, which will review and decide on the PR/issue. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.

Comments

@nodakai
Copy link
Contributor

nodakai commented Apr 5, 2016

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(_);

@sanxiyn sanxiyn added the T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. label Apr 5, 2016
@steveklabnik steveklabnik added T-dev-tools Relevant to the dev-tools subteam, which will review and decide on the PR/issue. and removed T-tools labels May 18, 2017
@Mark-Simulacrum Mark-Simulacrum added the C-bug Category: This is a bug. label Jul 24, 2017
@ollie27
Copy link
Member

ollie27 commented Nov 22, 2019

Fixed by #53409. We don't show the values of consts anymore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug. T-dev-tools Relevant to the dev-tools subteam, which will review and decide on the PR/issue. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

5 participants