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

Fix new lints related to derives on a packed struct #646

Merged
merged 1 commit into from
Jan 31, 2023

Conversation

nicholasbishop
Copy link
Member

@nicholasbishop nicholasbishop commented Jan 31, 2023

Deriving Debug and PartialEq on a packed struct containing [u8] fields is being phased out. See rust-lang/rust#107457 for more info. (I'm not really clear on why this is being phased out since it seems easy enough to work around, but probably the info is buried somewhere in the many comments on the PR linked in that issue.)

Checklist

  • Sensible git history (for example, squash "typo" or "fix" commits). See the Rewriting History guide for help.
  • Update the changelog (if necessary)

Deriving `Debug` and `PartialEq` on a packed struct containing `[u8]` fields is
being phased out. See rust-lang/rust#107457 for more
info.
@phip1611 phip1611 merged commit c685730 into rust-osdev:main Jan 31, 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.

2 participants