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

Make Once and Condvar constructors const fns #134

Merged
merged 1 commit into from
Apr 18, 2019

Conversation

faern
Copy link
Collaborator

@faern faern commented Apr 18, 2019

I realized that the const fn versions of Once::new and Condvar::new should now work on all stable releases we support. So more const to the people!

Since the next release is going to be a breaking release anyway, I took the liberty of removing ONCE_INIT in favor of everyone just using the single constructor. More consistent, and feels more idiomatic.

@Amanieu
Copy link
Owner

Amanieu commented Apr 18, 2019

bors r+

bors bot added a commit that referenced this pull request Apr 18, 2019
134: Make Once and Condvar constructors const fns r=Amanieu a=faern

I realized that the `const fn` versions of `Once::new` and `Condvar::new` should now work on all stable releases we support. So more const to the people!

Since the next release is going to be a breaking release anyway, I took the liberty of removing `ONCE_INIT` in favor of everyone just using the single constructor. More consistent, and feels more idiomatic.

Co-authored-by: Linus Färnstrand <faern@faern.net>
@bors
Copy link
Contributor

bors bot commented Apr 18, 2019

@bors bors bot merged commit 12b8973 into Amanieu:master Apr 18, 2019
@faern faern deleted the const-condvar-once branch April 18, 2019 09:13
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

2 participants