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

Derive ReachabilityFlags traits (that were removed by bitflags upgrade) #48

Merged
merged 2 commits into from
Jan 31, 2024

Conversation

faern
Copy link
Member

@faern faern commented Jan 31, 2024

The upgrade of bitflags from 1 to 2 in #45 removed a lot of automatically derived traits. I found this with cargo semver-checks. This PR adds many of them back! Because these derivations make sense. However, we still lose the derivation of Ord and PartialOrd that bitflags 1 automatically derived. This is fine to lose however, since ordering of flags did not make much sense. It is a breaking change nonetheless.

The bitflags upgrade also replaces an unsafe constructor with a bunch of safe ones.

Also add the changelog entry for this upgrade.


This change is Reviewable

The upgrade from bitflags 1 -> 2 removed them
In total we lose the Ord/PartialOrd implementations. But those
did not make any sense for this type anyway, so that's good. But
breaking.
@faern faern requested a review from dlon January 31, 2024 12:39
Copy link
Member

@dlon dlon left a comment

Choose a reason for hiding this comment

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

Reviewed 2 of 2 files at r1, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved

@faern faern merged commit f4096d1 into main Jan 31, 2024
9 checks passed
@faern faern deleted the derive-reachability-flags-traits branch January 31, 2024 13:06
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