Skip to content

rustdoc generates repeated documentation for doc comment outside module #13826

Closed
@alxgnon

Description

@alxgnon

rustdoc unusually repeats a doc comment twice when it is outside an external module. Check out alxgnon/docrepeat for an example of the bug in action.

I previously fixed this issue for Rust's documentation with #13812, by simply moving the problematic doc comments.

However, #13812 does not fix the issue with rustdoc itself. I am therefore opening this as a separate issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    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