-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[derive] Use macro to generate some scaffolding (#937)
This allows us to define proc macros as functions that take an already-parsed `&DeriveInput` rather than just a `TokenStream` which must be parsed. This, in turn, allows us to pass an already-parsed `&DeriveInput` when one proc macro invokes another (e.g., when the derive for `FromBytes` invokes the derive for `FromZeros`) rather than needing to clone the `TokenStream`.
- Loading branch information
Showing
1 changed file
with
67 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters