Convert to associated constants #24
No reviewers
Labels
No labels
bug
good first issue
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
gh-bitflags/bitflags!24
Loading…
Reference in a new issue
No description provided.
Delete branch "associated-constants"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Two problems with this:
I suppose this will need to wait until associated constants are stable.
Yeah for now this crate builds on stable, so we'll have to wait for associated constants to be stable to merge this unfortunately.
@tamird It seems like the
associated_constfeature will remain unstable for the near future. So it might make sense to pre-release this on crates.io as a separate crate (e.g.bitflags_associated_consts). This would allow nightly users to take advantage of the nicer API.This needs a rebase to pick up various changes made on master; I'll try to get to it this week.
Rebased; probably won't pass until 1.20 is stable.
Rebased again. Beyond the use of associated constants, this also uses compiletest, which requires nightly. Do we want to just remove the compile-fail test?
The stable/beta builds seem to still be failing due to experimental features?
Yes, I believe that's because this PR adds a dependency on compiletest, which requires nightly (see my last comment). Should I just remove the compile-fail tests?
Removed compiletest; lmk if you'd like me to squash the commits, but this should be green now.
r? @alexcrichton
👍
Thanks @tamird!