Skip to content

Items with #[cfg(doc)] are ignored by intra-doc links #12462

@Veetaha

Description

@Veetaha

Items adorned with #[cfg(doc)] are not included in intra-doc links name resolution, which is demonstrated on the following GIF

Expected Behavior

Adding #[cfg(doc)] on an item should not remove it from the set of items visible by intra-doc links. The intra-doc link to that item should still be highlighted.

Meta

rust-analyzer version: f94fa62 2022-05-30 stable
rustc version: rustc 1.60.0 (7737e0b5c 2022-04-04)

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-idegeneral IDE featuresC-featureCategory: feature requestE-hard

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions