Skip to content

Docs. on hover for cfg_attr' #18444

Open
Open
@blyxyas

Description

@blyxyas

Example:

#[doc = include_str!(...)]

The code fragment above will display documentation on hover when the user hovers over doc, and over include_str. Both with their respective documentation.

If the user instead uses #[cfg_attr(doc, doc = include_str!(...))], which reduces compilation time, no documentation will be shown for doc or include_str.

It would be excellent if we could treat the second meta item in the metalist for cfg_attr as it's own attribute (because it is)

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-hoverhover featureA-macromacro expansionC-featureCategory: feature request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions