TedDriggs / darling

A Rust proc-macro attribute parser
MIT License
983 stars 66 forks source link

Flatten fields should combine unknown items from across multiple attributes #271

Closed TedDriggs closed 7 months ago

TedDriggs commented 7 months ago

The current placement of the initializer for a flattened field has two problems:

  1. If there are multiple attributes, only unknown items from the last attribute will be reflected in the returned value of the flattened field.
  2. If there are no attributes, there will be a spurious error for the flattened field being uninitialized