Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zerocopy: Deny structs which have sneaky fields #41

Merged
merged 1 commit into from
Oct 15, 2023
Merged

Conversation

udoprog
Copy link
Owner

@udoprog udoprog commented Oct 15, 2023

This prevents other macros from introducing fields which are not visible to the ZeroCopy derive, or if they are visible they have to exactly math the definition in the ZeroCopy type maintaining soundness.

@udoprog udoprog added the enhancement New feature or request label Oct 15, 2023
@udoprog udoprog force-pushed the sneaky-fields branch 2 times, most recently from 4501680 to 6a7cf6f Compare October 15, 2023 22:25
@udoprog udoprog merged commit 0d3dc0d into main Oct 15, 2023
14 checks passed
@udoprog udoprog deleted the sneaky-fields branch October 15, 2023 22:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant