Skip to content

Intra-doc links aren't always rendered correctly in hover popups #21214

@SludgePhD

Description

@SludgePhD

rust-analyzer version: 0.3.2702-standalone

rustc version: 1.91 (but shouldn't matter)

editor or extension: VS Code

relevant settings: none

code snippet to reproduce:

/// This one works: [`Display`][std::fmt::Display]
///
/// This one doesn't: [`Display`]
///
/// [`Display`]: std::fmt::Display
pub struct Struct;

Hovering over Struct produces this:

Image

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