Skip to content

Intra-doc links on inline module are resolved incorrectly #16242

Open
@SludgePhD

Description

@SludgePhD
pub struct Hotkey;

/// [`Hotkey`]
pub mod key {}

rust-analyzer fails to resolve the link here, but rustdoc does it successfully.

rust-analyzer works if the link is changed to point to super::Hotkey instead, but then rustdoc complains.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-doc-commentsdoc string related issuesA-idegeneral IDE featuresC-bugCategory: bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions