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 AtomicWaker::new() a const fn #2007

Merged
merged 1 commit into from Dec 18, 2019

Conversation

tomaka
Copy link
Contributor

@tomaka tomaka commented Dec 16, 2019

Allows doing static FOO: AtomicWaker = AtomicWaker::new();.

Copy link
Member

@yoshuawuyts yoshuawuyts left a comment

Oh this is very cool!

@Nemo157
Copy link
Member

Nemo157 commented Dec 16, 2019

CI failure is the ! stabilization revert I mentioned in #2000 (comment), I can hopefully open another PR refixing CI soon.

@cramertj cramertj merged commit 3c09c69 into rust-lang:master Dec 18, 2019
1 check failed
@tomaka tomaka deleted the const-new-atomic-waker branch Dec 18, 2019
@tomaka tomaka restored the const-new-atomic-waker branch Dec 18, 2019
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

4 participants