Skip to content

[derive] Clean up AsBytes support on repr(packed)#128

Merged
joshlf merged 1 commit intomainfrom
derive-asbytes-generic-packed
Nov 7, 2022
Merged

[derive] Clean up AsBytes support on repr(packed)#128
joshlf merged 1 commit intomainfrom
derive-asbytes-generic-packed

Conversation

@joshlf
Copy link
Member

@joshlf joshlf commented Nov 7, 2022

Unify our handling of repr(packed) and repr(transparent) when deriving AsBytes, and bring error messages up to date with the fact that we support both of these reprs on generic structs.

Closes #127

Unify our handling of `repr(packed)` and `repr(transparent)` when
deriving `AsBytes`, and bring error messages up to date with the fact
that we support both of these reprs on generic structs.

Closes #127
@joshlf joshlf force-pushed the derive-asbytes-generic-packed branch from 8abf5fe to 244b9fe Compare November 7, 2022 18:01
@joshlf
Copy link
Member Author

joshlf commented Nov 7, 2022

@djkoloski can you take a look at this when you get a chance?

@joshlf joshlf merged commit 83b8297 into main Nov 7, 2022
@joshlf joshlf deleted the derive-asbytes-generic-packed branch November 7, 2022 20:43
joshlf added a commit that referenced this pull request Aug 3, 2023
Unify our handling of `repr(packed)` and `repr(transparent)` when
deriving `AsBytes`, and bring error messages up to date with the fact
that we support both of these reprs on generic structs.

Closes #127
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support deriving AsBytes on generic repr(packed) structs

2 participants