Skip to content

False positive "proc macro not expanded" error when using any derive helpers #12582

Closed
@jonas-schievink

Description

@jonas-schievink
#[derive(serde::Serialize)]
#[serde(rename = "abc")]
struct S;

This reports an error on the #[serde] attribute with "proc macro serde not expanded: proc macro not found", even though the code is valid.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-diagnosticsdiagnostics / error reportingA-macromacro expansionBroken WindowBugs / technical debt to be addressed immediatelyC-bugCategory: bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions