You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm considering cfg-gating the use of bitflags! in my libraries, and to that end it would be nice if it was possible to apply attributes to the generated impls as well.
However, that works poorly with the doc_cfg (and doc_auto_cfg) feature, as the attribute is only applied to the macro, and isn't passed down to each output item.
Instead, I would like to be able to do the following:
Thanks for the report @madsmtm! Anywhere attributes are allowed to be specified we should support in the macros as much as possible. I think this is just a missing piece of functionality for the impl mode.
Activity
KodrAus commentedon Jun 16, 2024
Thanks for the report @madsmtm! Anywhere attributes are allowed to be specified we should support in the macros as much as possible. I think this is just a missing piece of functionality for the impl mode.