summaryrefslogtreecommitdiffstats
path: root/tokio-sync
diff options
context:
space:
mode:
authorTaiki Endo <te316e89@gmail.com>2019-08-21 12:07:16 +0900
committerCarl Lerche <me@carllerche.com>2019-08-20 20:07:16 -0700
commita791f4a758604768463d3ca2162b913dcea34c40 (patch)
tree80037a52d5249eee268d99aa84525f9c017e0aea /tokio-sync
parent7e7a5147a3f5de83ee540ebaad0928183e61df2c (diff)
chore: bump to newer nightly (#1485)
Diffstat (limited to 'tokio-sync')
-rw-r--r--tokio-sync/src/lib.rs1
-rw-r--r--tokio-sync/src/lock.rs2
-rw-r--r--tokio-sync/src/mpsc/bounded.rs8
-rw-r--r--tokio-sync/src/mpsc/unbounded.rs4
-rw-r--r--tokio-sync/src/oneshot.rs4
-rw-r--r--tokio-sync/src/watch.rs4
-rw-r--r--tokio-sync/tests/fuzz_mpsc.rs1
-rw-r--r--tokio-sync/tests/fuzz_oneshot.rs1
-rw-r--r--tokio-sync/tests/mpsc.rs1
-rw-r--r--tokio-sync/tests/oneshot.rs1
10 files changed, 0 insertions, 27 deletions
diff --git a/tokio-sync/src/lib.rs b/tokio-sync/src/lib.rs
index 32970f95..fe876568 100644
--- a/tokio-sync/src/lib.rs
+++ b/tokio-sync/src/lib.rs
@@ -6,7 +6,6 @@
unreachable_pub
)]
#![doc(test(no_crate_inject, attr(deny(rust_2018_idioms))))]
-#![feature(async_await)]
//! Asynchronous synchronization primitives.
//!
diff --git a/tokio-sync/src/lock.rs b/tokio-sync/src/lock.rs
index 2c31dae3..c17855bc 100644
--- a/tokio-sync/src/lock.rs
+++ b/tokio-sync/src/lock.rs
@@ -8,8 +8,6 @@
//! This allows you to do something along the lines of:
//!
//! ```rust,no_run
-//! #![feature(async_await)]
-//!
//! use tokio::sync::Lock;
//!
//! #[tokio::main]
diff --git a/tokio-sync/src/mpsc/bounded.rs b/tokio-sync/src/mpsc/bounded.rs
index 4f6f1ac6..711173ae 100644
--- a/tokio-sync/src/mpsc/bounded.rs
+++ b/tokio-sync/src/mpsc/bounded.rs
@@ -82,8 +82,6 @@ pub struct RecvError(());
/// # Examples
///
/// ```rust
-/// #![feature(async_await)]
-///
/// use tokio::sync::mpsc;
///
/// #[tokio::main]
@@ -132,8 +130,6 @@ impl<T> Receiver<T> {
/// # Examples
///
/// ```
- /// #![feature(async_await)]
- ///
/// use tokio::sync::mpsc;
///
/// #[tokio::main]
@@ -152,8 +148,6 @@ impl<T> Receiver<T> {
/// Values are buffered:
///
/// ```
- /// #![feature(async_await)]
- ///
/// use tokio::sync::mpsc;
///
/// #[tokio::main]
@@ -221,8 +215,6 @@ impl<T> Sender<T> {
/// previously sent value was received.
///
/// ```rust
- /// #![feature(async_await)]
- ///
/// use tokio::sync::mpsc;
///
/// #[tokio::main]
diff --git a/tokio-sync/src/mpsc/unbounded.rs b/tokio-sync/src/mpsc/unbounded.rs
index 2760b845..e4b99a75 100644
--- a/tokio-sync/src/mpsc/unbounded.rs
+++ b/tokio-sync/src/mpsc/unbounded.rs
@@ -100,8 +100,6 @@ impl<T> UnboundedReceiver<T> {
/// # Examples
///
/// ```
- /// #![feature(async_await)]
- ///
/// use tokio::sync::mpsc;
///
/// #[tokio::main]
@@ -120,8 +118,6 @@ impl<T> UnboundedReceiver<T> {
/// Values are buffered:
///
/// ```
- /// #![feature(async_await)]
- ///
/// use tokio::sync::mpsc;
///
/// #[tokio::main]
diff --git a/tokio-sync/src/oneshot.rs b/tokio-sync/src/oneshot.rs
index dbb766d1..04401b9f 100644
--- a/tokio-sync/src/oneshot.rs
+++ b/tokio-sync/src/oneshot.rs
@@ -93,8 +93,6 @@ struct State(usize);
/// # Examples
///
/// ```
-/// #![feature(async_await)]
-///
/// use tokio::sync::oneshot;
///
/// #[tokio::main]
@@ -208,8 +206,6 @@ impl<T> Sender<T> {
/// # Examples
///
/// ```
- /// #![feature(async_await)]
- ///
/// use tokio::sync::oneshot;
///
/// #[tokio::main]
diff --git a/tokio-sync/src/watch.rs b/tokio-sync/src/watch.rs
index 8067ed3b..1841fd0a 100644
--- a/tokio-sync/src/watch.rs
+++ b/tokio-sync/src/watch.rs
@@ -18,8 +18,6 @@
//! # Examples
//!
//! ```
-//! #![feature(async_await)]
-//!
//! use tokio::sync::watch;
//!
//! # async fn dox() -> Result<(), Box<dyn std::error::Error>> {
@@ -171,8 +169,6 @@ const CLOSED: usize = 1;
/// # Examples
///
/// ```
-/// #![feature(async_await)]
-///
/// use tokio::sync::watch;
///
/// # async fn dox() -> Result<(), Box<dyn std::error::Error>> {
diff --git a/tokio-sync/tests/fuzz_mpsc.rs b/tokio-sync/tests/fuzz_mpsc.rs
index d3397810..657bc8ff 100644
--- a/tokio-sync/tests/fuzz_mpsc.rs
+++ b/tokio-sync/tests/fuzz_mpsc.rs
@@ -1,5 +1,4 @@
#![warn(rust_2018_idioms)]
-#![feature(async_await)]
#[macro_use]
extern crate loom;
diff --git a/tokio-sync/tests/fuzz_oneshot.rs b/tokio-sync/tests/fuzz_oneshot.rs
index d1bcb40e..8d4bea7d 100644
--- a/tokio-sync/tests/fuzz_oneshot.rs
+++ b/tokio-sync/tests/fuzz_oneshot.rs
@@ -1,5 +1,4 @@
#![warn(rust_2018_idioms)]
-#![feature(async_await)]
#[path = "../src/oneshot.rs"]
#[allow(warnings)]
diff --git a/tokio-sync/tests/mpsc.rs b/tokio-sync/tests/mpsc.rs
index 8f1ff307..5b40dacd 100644
--- a/tokio-sync/tests/mpsc.rs
+++ b/tokio-sync/tests/mpsc.rs
@@ -1,5 +1,4 @@
#![warn(rust_2018_idioms)]
-#![feature(async_await)]
use tokio_sync::mpsc;
use tokio_test::task::MockTask;
diff --git a/tokio-sync/tests/oneshot.rs b/tokio-sync/tests/oneshot.rs
index 77e02d8c..8439f294 100644
--- a/tokio-sync/tests/oneshot.rs
+++ b/tokio-sync/tests/oneshot.rs
@@ -1,5 +1,4 @@
#![warn(rust_2018_idioms)]
-#![feature(async_await)]
use tokio_sync::oneshot;
use tokio_test::task::MockTask;