Closed
Description
Hi.
I have a proc-macro that generates a macro_rules!
.
When I only do:
#[derive(MyCustomDerive)]
struct MyStruct {
}
I can use the generated macro.
However, if I add another custom derive like in:
#[derive(Serialize, MyCustomDerive)]
struct MyStruct {
}
I cannot use the macro anymore…
I get the error:
cannot find macro `my_macro!` in this scope
Strangely, if I do:
#[derive(MyCustomDerive, Serialize)]
struct MyStruct {
}
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.