Skip to content

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

Merged
merged 2 commits into from
Jun 27, 2020
Merged

Conversation

eldruin
Copy link
Member

@eldruin eldruin commented Jun 27, 2020

This fixes #24. The generator trait definition changed in the mean time.

@@ -298,7 +298,9 @@
//! #[macro_use(await)]
//! extern crate nb;
//!
//! use std::ops::Generator;
//! extern crate core;
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
//! extern crate core;

Copy link
Member Author

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.

Copy link
Contributor

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.

Comment on lines 298 to 299
//! #[macro_use(await)]
//! extern crate nb;
Copy link
Contributor

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?

Copy link
Member Author

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.

Copy link
Contributor

@therealprof therealprof left a 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+

@bors
Copy link
Contributor

bors bot commented Jun 27, 2020

Build succeeded:

@bors bors bot merged commit 81573de into rust-embedded:master Jun 27, 2020
@eldruin eldruin deleted the fix-generator-usage branch June 27, 2020 14:02
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.

Cannot run the tests in continuous integration
2 participants