Skip to content

Commit

Permalink
Rollup merge of #79174 - taiki-e:std-future, r=Mark-Simulacrum
Browse files Browse the repository at this point in the history
Make std::future a re-export of core::future

After 1a764a7, there are no `std::future`-specific items (except for `cfg(bootstrap)` items removed in 93eed40). So, instead of defining `std` own module, we can re-export the `core::future` directly.
  • Loading branch information
jonas-schievink authored Jan 24, 2021
2 parents d9c177f + 517d462 commit 13b88c2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 20 deletions.
17 changes: 0 additions & 17 deletions library/std/src/future.rs

This file was deleted.

5 changes: 2 additions & 3 deletions library/std/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,8 @@ pub use core::cmp;
pub use core::convert;
#[stable(feature = "rust1", since = "1.0.0")]
pub use core::default;
#[stable(feature = "futures_api", since = "1.36.0")]
pub use core::future;
#[stable(feature = "rust1", since = "1.0.0")]
pub use core::hash;
#[stable(feature = "core_hint", since = "1.27.0")]
Expand Down Expand Up @@ -505,9 +507,6 @@ pub mod task {
pub use alloc::task::*;
}

#[stable(feature = "futures_api", since = "1.36.0")]
pub mod future;

// Platform-abstraction modules
#[macro_use]
mod sys_common;
Expand Down

0 comments on commit 13b88c2

Please sign in to comment.