Skip to content

Commit a84f425

Browse files
committed
Update to stabilized futures_api
1 parent 4284055 commit a84f425

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+111
-174
lines changed

futures-channel/benches/sync_mpsc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![feature(test, futures_api)]
1+
#![feature(test)]
22

33
extern crate test;
44
use crate::test::Bencher;

futures-channel/src/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
//! This crate provides channels that can be used to communicate between
44
//! asynchronous tasks.
55
6-
#![feature(futures_api)]
7-
86
#![cfg_attr(not(feature = "std"), no_std)]
97

108
#![warn(missing_docs, missing_debug_implementations, rust_2018_idioms)]

futures-channel/tests/channel.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![feature(async_await, await_macro, futures_api)]
1+
#![feature(async_await, await_macro)]
22

33
use futures::channel::mpsc;
44
use futures::executor::block_on;

futures-channel/tests/mpsc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![feature(futures_api, async_await, await_macro)]
1+
#![feature(async_await, await_macro)]
22

33
use futures::channel::{mpsc, oneshot};
44
use futures::executor::{block_on, block_on_stream};

futures-channel/tests/oneshot.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#![feature(futures_api)]
2-
31
use futures::channel::oneshot::{self, Sender};
42
use futures::executor::block_on;
53
use futures::future::{Future, FutureExt, poll_fn};

futures-core/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
//! Core traits and types for asynchronous operations in Rust.
22
3-
#![feature(futures_api)]
43
#![cfg_attr(feature = "cfg-target-has-atomic", feature(cfg_target_has_atomic))]
54

65
#![cfg_attr(not(feature = "std"), no_std)]

futures-core/src/task/__internal/atomic_waker.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,6 @@ impl AtomicWaker {
169169
/// Here is how `register` is used when implementing a flag.
170170
///
171171
/// ```
172-
/// #![feature(futures_api)]
173172
/// use futures::future::Future;
174173
/// use futures::task::{Context, Poll, AtomicWaker};
175174
/// use std::sync::atomic::AtomicBool;

futures-executor/benches/thread_notify.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![feature(test, futures_api)]
1+
#![feature(test)]
22

33
extern crate test;
44
use crate::test::Bencher;

futures-executor/src/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
//! Built-in executors and related tools.
22
3-
#![feature(futures_api)]
4-
53
#![cfg_attr(not(feature = "std"), no_std)]
64

75
#![warn(missing_docs, missing_debug_implementations, rust_2018_idioms)]

futures-executor/src/local_pool.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,6 @@ impl LocalPool {
132132
/// the `LocalPool` by using its spawner handle:
133133
///
134134
/// ```
135-
/// #![feature(futures_api)]
136135
/// use futures::executor::LocalPool;
137136
/// use futures::future::ready;
138137
///
@@ -170,7 +169,6 @@ impl LocalPool {
170169
/// can be made. Returns `true` if one future was completed, `false` otherwise.
171170
///
172171
/// ```
173-
/// #![feature(futures_api)]
174172
/// use futures::executor::LocalPool;
175173
/// use futures::task::LocalSpawnExt;
176174
/// use futures::future::{ready, empty};
@@ -211,7 +209,6 @@ impl LocalPool {
211209
/// on any task.
212210
///
213211
/// ```
214-
/// #![feature(futures_api)]
215212
/// use futures::executor::LocalPool;
216213
/// use futures::task::LocalSpawnExt;
217214
/// use futures::future::{ready, empty};

0 commit comments

Comments
 (0)