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

doc comments on extern blocks are ignored #77030

Closed
lcnr opened this issue Sep 21, 2020 · 0 comments · Fixed by #94529
Closed

doc comments on extern blocks are ignored #77030

lcnr opened this issue Sep 21, 2020 · 0 comments · Fixed by #94529
Labels
A-lint Area: Lints (warnings about flaws in source code) such as unused_mut. C-feature-request Category: A feature request, i.e: not implemented / a PR. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.

Comments

@lcnr
Copy link
Contributor

lcnr commented Sep 21, 2020

For the following snippet

/// Hey
extern "C" {
    /// Ho
    pub fn test();
}

test is documented with Ho but Hey is nowhere to be found. It probably makes sense to error/warn if doc comments are used on extern blocks

@lcnr lcnr added A-lint Area: Lints (warnings about flaws in source code) such as unused_mut. A-docs Area: documentation for any part of the project, including the compiler, standard library, and tools labels Sep 21, 2020
@jyn514 jyn514 added T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. C-feature-request Category: A feature request, i.e: not implemented / a PR. and removed A-docs Area: documentation for any part of the project, including the compiler, standard library, and tools labels Sep 22, 2020
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this issue Mar 2, 2022
…blocks, r=estebank

Unused doc comments blocks

Fixes rust-lang#77030.
@bors bors closed this as completed in 878a4ff Mar 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-lint Area: Lints (warnings about flaws in source code) such as unused_mut. C-feature-request Category: A feature request, i.e: not implemented / a PR. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants