You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You may need to enable the "full" feature if you are parsing expressions: https://github.com/dtolnay/syn#optional-features. By default we only parse the basic subset of expressions that typically appear as array lengths.
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: