Skip to content

Integrate attribute macros into source_to_def #9142

@jonas-schievink

Description

@jonas-schievink

Currently, rust-analyzer does not work inside items with attribute macros when they are enabled. This is because we never add the item to the child-by-source map of the parent, because the item is replaced by the macro expansion.

This might be a bit tricky to fix, because syntactically these are still items, but semantically they're macro invocations.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-macromacro expansionA-nameresname, path and module resolutionS-actionableSomeone could pick this issue up and work on it right now

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions