Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upIdentifiable!, BelongsTo!, HasMany! are brocken when used with custom_derive #430
Comments
added a commit
to weiznich/diesel
that referenced
this issue
Sep 7, 2016
This comment has been minimized.
sgrif
closed this
Sep 12, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
weiznich commentedSep 6, 2016
Using one of those 3 macros with custom_derive will result in the following error:
Example Code:
This is most likely caused by custom_derive not passing custom attributes down to the macro. The documentation mentions clearly:
"Secondly, the macro is passed the entire item, _sans attributes_. It is the derivation macro's job to parse the item correctly."
We should change the syntax here to something like: