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

Bump bitflags to 2.3.2 #426

Merged
merged 3 commits into from Jun 19, 2023
Merged

Bump bitflags to 2.3.2 #426

merged 3 commits into from Jun 19, 2023

Conversation

grant0417
Copy link
Contributor

@grant0417 grant0417 commented Jun 15, 2023

All of the types that use bitflags! have #[derive(PartialEq, Eq, PartialOrd, Ord, Hash, Debug, Clone, Copy)] on them to preserve backwards compatability as recommended by the bitflags changelog.

@grant0417
Copy link
Contributor Author

Seems like the bitflags changes are semver breaking and this would require a bump to 0.15

@phil-opp
Copy link
Member

Thanks for the PR!

Seems like the bitflags changes are semver breaking and this would require a bump to 0.15

Would it be possible to implement a custom from_bits_unchecked method that forwards to the new from_bits_retain? Are there other breaking changes?

Copy link
Contributor

@Freax13 Freax13 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me! According to the release notes for bitflags 2.0.0 these are all the changes required to maintain backwards compatibility.

Copy link
Member

@phil-opp phil-opp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@phil-opp phil-opp merged commit f49761b into rust-osdev:master Jun 19, 2023
12 checks passed
@Freax13 Freax13 mentioned this pull request Sep 15, 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.

None yet

3 participants