Is it possible for a proc macro that receives a proc macro as argument to run that proc macro

Im not sure if stringify! macro is compiler built in, (Not going to check) but this works if inputting custom made macros (along if returns &str) works e.g stringify!(custom!())
But is it possible for ANY proc macro to run in the custom made proc macro like
custom!(a!()) or no as it receives the TokenStream rather output of the proc macro nested in

It is.


It does? Maybe you meant include! instead of stringify!?


There is the nightly TokenStream::expand_expr that can expand macros that expand to literals.

1 Like

Assuming custom!() is a proc macro made by the user, I should mentioned that bit
Nvm ignores this bit about asking why it is nightly
Also does the stringify! uses this feature or no?
How do I use a nightly feature