diff options
| author | Yoshua Wuyts <yoshuawuyts@gmail.com> | 2020-05-22 10:07:46 +0200 |
|---|---|---|
| committer | Yoshua Wuyts <yoshuawuyts@gmail.com> | 2020-05-22 10:55:01 +0200 |
| commit | 9ff502029d379bebc50cf92a97f019fefba09d79 (patch) | |
| tree | 52ee5155f7e2c6d9d2a6f4499f07bd5c6be09e03 /src/libcore/future/mod.rs | |
| parent | 458a3e76294fd859fb037f425404180c91e14767 (diff) | |
Add core::future::IntoFuture
This patch adds `core::future::IntoFuture`. However unlike earlier PRs this patch does not integrate it into the `async/.await` lowering. That integration should be done in a follow-up PR.
Diffstat (limited to 'src/libcore/future/mod.rs')
| -rw-r--r-- | src/libcore/future/mod.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libcore/future/mod.rs b/src/libcore/future/mod.rs index b5a102916a0..6f6009b47e6 100644 --- a/src/libcore/future/mod.rs +++ b/src/libcore/future/mod.rs @@ -10,12 +10,16 @@ use crate::{ }; mod future; +mod into_future; mod pending; mod ready; #[stable(feature = "futures_api", since = "1.36.0")] pub use self::future::Future; +#[unstable(feature = "into_future", issue = "67644")] +pub use into_future::IntoFuture; + #[unstable(feature = "future_readiness_fns", issue = "70921")] pub use pending::{pending, Pending}; #[unstable(feature = "future_readiness_fns", issue = "70921")] |
