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

Change FIELD_OFFSET macro to remove requirement for unaligned_references #16

Merged
merged 1 commit into from
Apr 20, 2023

Conversation

3fault
Copy link
Contributor

@3fault 3fault commented Mar 9, 2023

unaligned_references is made into a hard error as per rust-lang/rust#102513 which will cause the FIELD_OFFSET macro to fail for packed structs. rust-lang/rfcs#3308 looks to implement this in core::mem however in the meantime this change passes all tests in layout_x86_64.rs on rustc 1.70.0-nightly (900c35403 2023-03-08)

@MSxDOS MSxDOS merged commit e71470c into MSxDOS:master Apr 20, 2023
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.

3 participants