-
Notifications
You must be signed in to change notification settings - Fork 8
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
0.3.0 doesn't support macro invocation in default values #4
Comments
It is actually - 0.2.0 uses an older version of To support macro invocation with the new style, I'll need the still unstable I can add the string version as a special argument. How about this? #[default(_txt = "vec![0; 100]")]
field: Vec<u32>, |
Good point! That syntax would cover my use case. I'd suggest |
Fantastic! Thank you! |
Wait - I just pushed to commit, but I did not upload the version to crates.io yet. I'm waiting for the Travis build to finish. |
Understood -- the "thank you" was for working on it so swiftly. :-) |
@cbiffle OK, it's uploaded. Upgrade to 0.4.0 and you are good to go. |
I have some code using 0.2.0 that does things like this:
In 0.3.0 this fails to parse with either syntax:
This is preventing me from upgrading my codebase from 0.2.0 -- which isn't a huge deal, since 0.2.0 works fine, but it's adding a dependency on old versions of
syn
/quote
so I'd like to upgrade.The text was updated successfully, but these errors were encountered: