virtue
virtue copied to clipboard
Fix parsing of defaults in generics
I ran into this while using the bincode derive macros.
There were two bugs:
- Defaults used in combination with constraints would get parsed as part of the constraints because we didn't stop consuming tokens when encountering
=. - Defaults used in const generics weren't handled at all.
API changes:
- This add a new field to the
ConstGenericstruct.