Rollup merge of #79174 - taiki-e:std-future, r=Mark-Simulacrum
Make std::future a re-export of core::future After1a764a7ef5
, there are no `std::future`-specific items (except for `cfg(bootstrap)` items removed in93eed402ad
). So, instead of defining `std` own module, we can re-export the `core::future` directly.
This commit is contained in:
commit
13b88c21d0
@ -1,17 +0,0 @@
|
||||
//! Asynchronous values.
|
||||
|
||||
#[doc(inline)]
|
||||
#[stable(feature = "futures_api", since = "1.36.0")]
|
||||
pub use core::future::Future;
|
||||
|
||||
#[doc(inline)]
|
||||
#[unstable(feature = "gen_future", issue = "50547")]
|
||||
pub use core::future::{from_generator, get_context, ResumeTy};
|
||||
|
||||
#[doc(inline)]
|
||||
#[stable(feature = "future_readiness_fns", since = "1.48.0")]
|
||||
pub use core::future::{pending, ready, Pending, Ready};
|
||||
|
||||
#[doc(inline)]
|
||||
#[unstable(feature = "into_future", issue = "67644")]
|
||||
pub use core::future::IntoFuture;
|
@ -406,6 +406,8 @@
|
||||
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")]
|
||||
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user