-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
Hygiene affected when using multiple derive #47346
Copy link
Copy link
Closed
Labels
A-decl-macros-2-0Area: Declarative macros 2.0 (#39412)Area: Declarative macros 2.0 (#39412)C-bugCategory: This is a bug.Category: This is a bug.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Metadata
Metadata
Assignees
Labels
A-decl-macros-2-0Area: Declarative macros 2.0 (#39412)Area: Declarative macros 2.0 (#39412)C-bugCategory: This is a bug.Category: This is a bug.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Hi.
I have a proc-macro that generates a
macro_rules!.When I only do:
I can use the generated macro.
However, if I add another custom derive like in:
I cannot use the macro anymore…
I get the error:
Strangely, if I do:
Putting the
serdecustom derive after mine fix the issue.I don't know if it is related to
serdeor just a bug with multiple custom derives.Thanks to fix this issue.