Skip to content

Make AtomicWaker::new() a const fn#2007

Merged
cramertj merged 1 commit intorust-lang:masterfrom
tomaka:const-new-atomic-waker
Dec 18, 2019
Merged

Make AtomicWaker::new() a const fn#2007
cramertj merged 1 commit intorust-lang:masterfrom
tomaka:const-new-atomic-waker

Conversation

@tomaka
Copy link
Copy Markdown
Contributor

@tomaka tomaka commented Dec 16, 2019

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

Copy link
Copy Markdown
Member

@yoshuawuyts yoshuawuyts left a comment

Choose a reason for hiding this comment

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

Oh this is very cool!

@Nemo157
Copy link
Copy Markdown
Contributor

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
@tomaka tomaka deleted the const-new-atomic-waker branch December 18, 2019 09:13
@tomaka tomaka restored the const-new-atomic-waker branch December 18, 2019 14:48
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