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

Convert to associated constants #24

Merged
merged 2 commits into from
Sep 5, 2017
Merged

Convert to associated constants #24

merged 2 commits into from
Sep 5, 2017

Conversation

tamird
Copy link
Contributor

@tamird tamird commented Nov 28, 2015

Two problems with this:

  • breaking API change
  • requires nightly

I suppose this will need to wait until associated constants are stable.

@alexcrichton
Copy link
Contributor

Yeah for now this crate builds on stable, so we'll have to wait for associated constants to be stable to merge this unfortunately.

@Amanieu Amanieu mentioned this pull request Mar 1, 2016
@tamird tamird closed this Mar 24, 2016
@tamird tamird reopened this Mar 24, 2016
@Amanieu Amanieu mentioned this pull request Apr 9, 2016
@phil-opp
Copy link

@tamird It seems like the associated_const feature 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.

@tamird
Copy link
Contributor Author

tamird commented Mar 13, 2017

This needs a rebase to pick up various changes made on master; I'll try to get to it this week.

@tamird
Copy link
Contributor Author

tamird commented Jul 10, 2017

Rebased; probably won't pass until 1.20 is stable.

@tamird
Copy link
Contributor Author

tamird commented Aug 20, 2017

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?

@alexcrichton
Copy link
Contributor

The stable/beta builds seem to still be failing due to experimental features?

@tamird
Copy link
Contributor Author

tamird commented Aug 22, 2017

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?

@tamird
Copy link
Contributor Author

tamird commented Aug 31, 2017

Removed compiletest; lmk if you'd like me to squash the commits, but this should be green now.

@sfackler
Copy link

sfackler commented Sep 4, 2017

r? @alexcrichton

@alexcrichton alexcrichton merged commit b4d1048 into bitflags:master Sep 5, 2017
@alexcrichton
Copy link
Contributor

👍

Thanks @tamird!

@tamird tamird deleted the associated-constants branch September 5, 2017 14:51
im-0 added a commit to im-0/log4rs-syslog that referenced this pull request Nov 24, 2017
im-0 added a commit to im-0/log4rs-syslog that referenced this pull request Nov 24, 2017
im-0 added a commit to im-0/log4rs-syslog that referenced this pull request Nov 24, 2017
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.

4 participants