I'm trying to make
proc-macro-error work with
proc-macro-hack. Both use attribute proc-macros and both are supposed to be used on the same function. Unfortunately, they don't work well together, yet. The problem is found and I believe I can fix it, but to do that I need to detect
First I thought this should work:
let is proc_macro_hack = input.attrs.iter().any(|attr| attr.is_ident("proc_macro_hack"));
But my tests show me it doesn't. It looks like attribute proc-macros aren't really listed as attributes. Are they?