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

pin-utils crate & remove glob imports #1185

Merged
merged 2 commits into from
Aug 7, 2018

Conversation

MajorBreakfast
Copy link
Contributor

  • Add pin-utils crate
  • Get rid of all extern crate statements
  • Always use use statements to import macros
  • Expand most glob imports. In particular remove all remaining use futures::prelude::* statements from code examples

//! assert_eq!(6, *block_on(shared1));
//! assert_eq!(6, *block_on(shared2));
//! # }
//! ```
Copy link
Contributor Author

@MajorBreakfast MajorBreakfast Aug 7, 2018

Choose a reason for hiding this comment

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

I removed this module description because module is private and we don't have descriptions in the other modules.

@@ -12,11 +12,6 @@

#![doc(html_root_url = "https://rust-lang-nursery.github.io/futures-doc/0.3.0-alpha.2/futures_channel")]

#[cfg(feature = "std")]
Copy link
Member

Choose a reason for hiding this comment

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

Oh, I didn't think about that. We'll have to take care not to accidentally use std symbols in our no_std build, because there won't be anything preventing them in CI (since std is still reachable via a path).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

Yeah, that'd get it. I opened rust-lang/rust#53166 to discuss this.

@cramertj
Copy link
Member

cramertj commented Aug 7, 2018

Thanks, this looks great! :shipit:

@MajorBreakfast MajorBreakfast merged commit 42a97c0 into rust-lang:master Aug 7, 2018
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.

2 participants