2 Commits

Author SHA1 Message Date
Jana Dönszelmann
3cc172074a
collateral damage in derive tests, improves errors by not refering to implementation details 2025-05-02 18:09:31 +02:00
Gurinder Singh
4b3ece475d Emit explanatory note for move errors in packed struct derives
Derive expansions for packed structs cause move errors because
they prefer copying over borrowing since borrowing the fields of a
packed struct can result in unaligned access and therefore undefined
behaviour.

This underlying cause of the errors, however, is not apparent
to the user. We add a diagnostic note here to remedy that.
2023-11-03 07:32:10 +05:30