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 does not document associated constants in structs #52260

Closed
vks opened this issue Jul 11, 2018 · 2 comments
Closed

rustdoc does not document associated constants in structs #52260

vks opened this issue Jul 11, 2018 · 2 comments
Labels
T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.

Comments

@vks
Copy link
Contributor

vks commented Jul 11, 2018

The following does not get documented as expected:

pub struct Foo;

impl Foo {
    /// This doc comment won't be shown anywhere.
    pub const BAR: u32 = 7;
}

The documentation comment seems to be ignored.

@SimonSapin SimonSapin added the T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. label Jul 11, 2018
@ollie27
Copy link
Member

ollie27 commented Jul 12, 2018

Which version of rustdoc are you using? It works fine for me using 1.27 stable and newer:

image

@vks
Copy link
Contributor Author

vks commented Jul 30, 2018

I don't remember which version I was using, but I can't reproduce the bug anymore with rustc 1.29.0-nightly (6a1c063 2018-07-23).

@vks vks closed this as completed Jul 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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

3 participants