virtue icon indicating copy to clipboard operation
virtue copied to clipboard

Fix parsing of defaults in generics

Open bgw opened this issue 5 months ago • 0 comments

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 ConstGeneric struct.

bgw avatar Oct 31 '25 18:10 bgw