In flamer and overflower, I expand ExprMacs when I find them so I can fold their expansion. However, this clashes with current libstd implementation of assert!(..) etc., because they use the __rust_unstable_column() macro, which, it appears, may not be called from outside libstd. This causes an error when trying to apply the procedural macro.
In general: Is there a way to get the macro expanded version of the code within a procedural macro? Do I need to register differently?
(Note: Since this only occurs with procedural macros, this is nightly-only).
In flamer and overflower, I expand
ExprMacs when I find them so I can fold their expansion. However, this clashes with current libstd implementation ofassert!(..)etc., because they use the __rust_unstable_column() macro, which, it appears, may not be called from outside libstd. This causes an error when trying to apply the procedural macro.In general: Is there a way to get the macro expanded version of the code within a procedural macro? Do I need to register differently?
(Note: Since this only occurs with procedural macros, this is nightly-only).