-
Notifications
You must be signed in to change notification settings - Fork 15
Fix generator usage #25
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
Conversation
@@ -298,7 +298,9 @@ | |||
//! #[macro_use(await)] | |||
//! extern crate nb; | |||
//! | |||
//! use std::ops::Generator; | |||
//! extern crate core; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
//! extern crate core; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It does not compile otherwise.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Superweird. Probably needs a thourough overhaul.
//! #[macro_use(await)] | ||
//! extern crate nb; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably should modernize this, too, while we are at it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With Rust 2018 it does not build due to await being a reserved keyword.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM under the circumstances. Thanks.
bors r+
Build succeeded: |
This fixes #24. The generator trait definition changed in the mean time.