-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
generic_derive: Worked in the where clause
There may be bounds that apply to types other than the generic parameters, so it makes sense to approve the where clause in this proposal. This calls for a struct to organize all the generic-carrying inputs to `proc_macro_derive_with_generics`, which was mentioned previously as a question. Name it DeriveGenerics. The extended derive syntax is now fully specified. It's now clear to me that adorning each comma-separated item with its own generic parameters is possible, but the where clause either needs ugly enclosing delimiters or can only come last. As it relates to some parameters, make it so that the where clause can only be appended to a single item.
- Loading branch information
Showing
1 changed file
with
62 additions
and
42 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