Skip to content

Module items not in scoped for module //! comment when module also has /// comment #134904

Open
@xmppftw

Description

@xmppftw

Not very clear how //! in top of module or /// before 'mod' declaration works and what difference. I found one big difference when doing /// then in rest of //! at top of module, module items are not in the scoped.

I understand it's normal module importer doesnt ahve module items in scoped by default. But its not normal that module itself doesnt have items in the scoped.

Smallest reproduction case: https://github.com/xmppftw/rustrepro/tree/issue-134904

  • maybe it's a bug?
  • maybe it's bad to use /// and //! but i dont see this in rustdoc book or somewhere else

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-intra-doc-linksArea: Intra-doc links, the ability to link to items in docs by nameC-bugCategory: This is a bug.S-has-mcveStatus: A Minimal Complete and Verifiable Example has been found for this issueT-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