No unused warning on proc macro generated struct

Hi, I have a proc macro that generates a struct, when this struct isn't used I don't get any dead_code warning where the equivalent handwritten code emits one.
Is there something I can do?

Just in case, here's the macro.

There is an attribute (unfortunately I forgot the name but it's not just some clippy lint IIRC) on the code that gets generated that prevents unused code warnings.

Due to the increased complexity relative to macro_rules that's probably for the best I think.

It would be nice to have a "counter attribute" like force_enable_warnings but I'll live without it =)
Thank you

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.