diff options
116 files changed, 3 insertions, 254 deletions
diff --git a/.cirrus.yml b/.cirrus.yml index 52f6255c..0b0bbc84 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -14,7 +14,7 @@ task: - pkg install -y curl - curl https://sh.rustup.rs -sSf --output rustup.sh # TODO: switch back to nightly - - sh rustup.sh -y --default-toolchain nightly-2019-08-10 + - sh rustup.sh -y --default-toolchain nightly-2019-08-21 - . $HOME/.cargo/env - rustup target add i686-unknown-freebsd - | @@ -55,8 +55,6 @@ an asynchronous application. A basic TCP echo server with Tokio: ```rust -#![feature(async_await)] - use tokio::net::TcpListener; use tokio::prelude::*; diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 6ab79556..7bad2ca9 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -2,7 +2,7 @@ trigger: ["master", "std-future"] pr: ["master", "std-future"] variables: - nightly: nightly-2019-08-10 + nightly: nightly-2019-08-21 RUSTFLAGS: -Dwarnings jobs: diff --git a/rust-toolchain b/rust-toolchain index 54dbba0d..c4fd1274 100644 --- a/rust-toolchain +++ b/rust-toolchain @@ -1 +1 @@ -nightly-2019-08-10 +nightly-2019-08-21 diff --git a/tokio-codec/src/length_delimited.rs b/tokio-codec/src/length_delimited.rs index 336ca144..830499ac 100644 --- a/tokio-codec/src/length_delimited.rs +++ b/tokio-codec/src/length_delimited.rs @@ -39,8 +39,6 @@ //! Specifically, given the following: //! //! ``` -//! #![feature(async_await)] -//! //! use tokio::codec::{Framed, LengthDelimitedCodec}; //! use tokio::prelude::*; //! diff --git a/tokio-codec/tests/framed.rs b/tokio-codec/tests/framed.rs index fd930890..53582fb3 100644 --- a/tokio-codec/tests/framed.rs +++ b/tokio-codec/tests/framed.rs @@ -1,4 +1,3 @@ -#![feature(async_await)] #![warn(rust_2018_idioms)] use tokio::prelude::*; diff --git a/tokio-codec/tests/framed_read.rs b/tokio-codec/tests/framed_read.rs index dc36d8b9..72c910ba 100644 --- a/tokio-codec/tests/framed_read.rs +++ b/tokio-codec/tests/framed_read.rs @@ -1,4 +1,3 @@ -#![feature(async_await)] #![warn(rust_2018_idioms)] use tokio::prelude::*; diff --git a/tokio-executor/src/executor.rs b/tokio-executor/src/executor.rs index c03367e3..3ca07f5f 100644 --- a/tokio-executor/src/executor.rs +++ b/tokio-executor/src/executor.rs @@ -49,8 +49,6 @@ use std::pin::Pin; /// # Examples /// /// ``` -/// #![feature(async_await)] -/// /// use tokio_executor::Executor; /// /// # fn docs(my_executor: &mut dyn Executor) { @@ -79,8 +77,6 @@ pub trait Executor { /// # Examples /// /// ``` - /// #![feature(async_await)] - /// /// use tokio_executor::Executor; /// /// # fn docs(my_executor: &mut dyn Executor) { @@ -110,8 +106,6 @@ pub trait Executor { /// # Examples /// /// ``` - /// #![feature(async_await)] - /// /// use tokio_executor::Executor; /// /// # fn docs(my_executor: &mut dyn Executor) { diff --git a/tokio-executor/src/global.rs b/tokio-executor/src/global.rs index bf4d9be3..81ea0af8 100644 --- a/tokio-executor/src/global.rs +++ b/tokio-executor/src/global.rs @@ -124,8 +124,6 @@ where /// # Examples /// /// ```no_run -/// #![feature(async_await)] -/// /// tokio::spawn(async { /// println!("running on the default executor"); /// }); diff --git a/tokio-executor/src/threadpool/blocking.rs b/tokio-executor/src/threadpool/blocking.rs index f68a337f..091a8392 100644 --- a/tokio-executor/src/threadpool/blocking.rs +++ b/tokio-executor/src/threadpool/blocking.rs @@ -80,8 +80,6 @@ pub struct BlockingError { /// that needs to be performed. /// /// ```rust -/// #![feature(async_await)] -/// /// use tokio_executor::threadpool::{ThreadPool, blocking}; /// /// use futures_util::future::poll_fn; diff --git a/tokio-executor/src/threadpool/builder.rs b/tokio-executor/src/threadpool/builder.rs index 7a7081e3..34d4c682 100644 --- a/tokio-executor/src/threadpool/builder.rs +++ b/tokio-executor/src/threadpool/builder.rs @@ -32,8 +32,6 @@ use std::time::Duration; /// # Examples /// /// ``` -/// #![feature(async_await)] -/// /// use tokio_executor::threadpool::Builder; /// /// use std::time::Duration; diff --git a/tokio-executor/src/threadpool/sender.rs b/tokio-executor/src/threadpool/sender.rs index fb898f2f..cd76ea4d 100644 --- a/tokio-executor/src/threadpool/sender.rs +++ b/tokio-executor/src/threadpool/sender.rs @@ -59,8 +59,6 @@ impl Sender { /// # Examples /// /// ```rust - /// #![feature(async_await)] - /// /// use tokio_executor::threadpool::ThreadPool; /// /// // Create a thread pool with default configuration values diff --git a/tokio-executor/src/threadpool/thread_pool.rs b/tokio-executor/src/threadpool/thread_pool.rs index 11ddb8ae..ff6ada03 100644 --- a/tokio-executor/src/threadpool/thread_pool.rs +++ b/tokio-executor/src/threadpool/thread_pool.rs @@ -51,8 +51,6 @@ impl ThreadPool { /// # Examples /// /// ```rust - /// #![feature(async_await)] - /// /// use tokio_executor::threadpool::ThreadPool; /// /// // Create a thread pool with default configuration values diff --git a/tokio-executor/src/typed.rs b/tokio-executor/src/typed.rs index 2110d622..302ba896 100644 --- a/tokio-executor/src/typed.rs +++ b/tokio-executor/src/typed.rs @@ -22,8 +22,6 @@ use crate::SpawnError; /// /// [`spawn`]: TypedExecutor::spawn /// ``` -/// #![feature(async_await)] -/// /// use tokio::executor::TypedExecutor; /// use tokio::sync::oneshot; /// diff --git a/tokio-executor/tests/current_thread.rs b/tokio-executor/tests/current_thread.rs index 2f504aab..a33edc82 100644 --- a/tokio-executor/tests/current_thread.rs +++ b/tokio-executor/tests/current_thread.rs @@ -1,5 +1,4 @@ #![warn(rust_2018_idioms)] -#![feature(async_await)] use tokio::sync::oneshot; use tokio_executor::current_thread::{self, block_on_all, CurrentThread, TaskExecutor}; diff --git a/tokio-executor/tests/enter.rs b/tokio-executor/tests/enter.rs index fd13bd12..4d894de0 100644 --- a/tokio-executor/tests/enter.rs +++ b/tokio-executor/tests/enter.rs @@ -1,5 +1,4 @@ #![warn(rust_2018_idioms)] -#![feature(async_await)] #[test] fn block_on_ready() { diff --git a/tokio-executor/tests/executor.rs b/tokio-executor/tests/executor.rs index fb039385..3f297807 100644 --- a/tokio-executor/tests/executor.rs +++ b/ |