-
-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Flag to control how deeply macros are expanded #11
Comments
I'd like to request this to be an arbitrary level of macro expansion. I am particularly interested in For |
I posted a relevant request for implementation for 0 levels: dtolnay/request-for-implementation#6. |
I was thinking about this after seeing another question on the rust users forum about order of expansion, obviously this would be slightly different but I wonder if while implementing this feature one could also only expand |
I'm debugging a proc macro right now which generates a declarative macro invocation. Something's wrong about the generated declarative macro invocation, but it's hard to investigate because the invocation is expanded immediately. This would certainly be a useful feature to have, at least for debugging proc macros Although this need could also be solved with #68, by setting the expanded crate to the proc macro crate |
For example, avoid expanding
try!
and other macros inside the output of proc macros.cc @djc
The text was updated successfully, but these errors were encountered: