It would be nice to be able to have attributes within intrusive_adapter! macro invocations.
I have #[deny(missing_docs)] on the module in which I use the macro, and I'd like to #[allow(missing_docs)] the stuff the macro produces, or even to have doc comments on the produced code. When I try the first, I run into a recursion limit reached while expanding the macro error.
Minimal code to reproduce:
struct Toy {
link: RBTreeLink
}
intrusive_adapter!(
#[allow(missing_docs)]
pub ToyAdapter = Box<Toy> : Toy { link: RBTreeLink }
);
How easy would it be to modify the macro to preserve attributes?
It would be nice to be able to have attributes within
intrusive_adapter!
macro invocations.I have
#[deny(missing_docs)]
on the module in which I use the macro, and I'd like to#[allow(missing_docs)]
the stuff the macro produces, or even to have doc comments on the produced code. When I try the first, I run into arecursion limit reached while expanding the macro
error.Minimal code to reproduce:
How easy would it be to modify the macro to preserve attributes?