-
-
Notifications
You must be signed in to change notification settings - Fork 307
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
Parsing an Expr fails with embedded macros in expression position #526
Comments
You may need to enable the For procedural macros in expression position check out https://github.com/dtolnay/proc-macro-hack. |
Oh, was wondering whether I should try that, but didn't think a feature combination would allow only limited parsing. Will do. Awesome! Thanks for all the hacks around macros. I'm currently using nightly-only and only at the proof-of-concept stage, so just using the nightly feature flag. |
As in the title,
let expr: Expr = input.parse()?;
fails on content containing a macro.I'm not actually sure whether this should be supported, though it works for declarative macros.
Related: rust-lang/rust#54727 (procedural macros can't currently be used in expression position; though declarative macros can be).
The text was updated successfully, but these errors were encountered: