Hygiene affected when using multiple derive #47346
Labels
A-macros-2.0
Area: Declarative macros 2.0 (#39412)
C-bug
Category: This is a bug.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
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
serde
custom derive after mine fix the issue.I don't know if it is related to
serde
or just a bug with multiple custom derives.Thanks to fix this issue.
The text was updated successfully, but these errors were encountered: