Skip to content

Rustdoc doesn't document impls within functions #73192

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

Closed
Manishearth opened this issue Jun 9, 2020 · 1 comment
Closed

Rustdoc doesn't document impls within functions #73192

Manishearth opened this issue Jun 9, 2020 · 1 comment
Labels
T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.

Comments

@Manishearth
Copy link
Member

You probably shouldn't be doing this, but given that you can, we should try and support it

pub struct Foo;

pub fn foo() {
    impl Foo {
        pub fn bar(&self) {
        }
    }
}

bar() is not documented, despite being usable globally. This might have to do with --everybody-loops?.

This works fine for trait implementations.

@Manishearth Manishearth added the T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. label Jun 9, 2020
@ollie27
Copy link
Member

ollie27 commented Jun 10, 2020

Duplicate of #53763

@ollie27 ollie27 marked this as a duplicate of #53763 Jun 10, 2020
@ollie27 ollie27 closed this as completed Jun 10, 2020
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

2 participants