-
Notifications
You must be signed in to change notification settings - Fork 68
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
Error when parsing FromMeta containing NestedMeta::Lit #193
Conversation
…r error generation in darling
👋🏻 |
Thanks for the reminder! I’m away from a computer for a few days here, but will finish reviewing when I am back. Apologies for the slow turnaround. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One small point of discussion, otherwise looks great.
👍🏻 Anything I need to do for this PR for it to be mergeable? |
Nope - problems were all on my side. |
Thanks for merging! |
What
Generate an error when parsing derived
FromMeta
implementations that contain aNestedMeta::Lit
.Why
Literal values are unsupported in the code generated by
FromMeta
. Literal values, like strings, get ignored by the parse implementation that gets generated with the FromMeta generated code. This is confusing to a user since it appears like the value is being accepted and used in some way. We should error when the user provides a literal since the derived code will do nothing with it.Fix #192