Skip to content

doc comments on extern blocks are ignored #77030

Closed
@lcnr

Description

@lcnr

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-lintsArea: Lints (warnings about flaws in source code) such as unused_mut.C-feature-requestCategory: A feature request, i.e: not implemented / a PR.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