From a791f4a758604768463d3ca2162b913dcea34c40 Mon Sep 17 00:00:00 2001 From: Taiki Endo Date: Wed, 21 Aug 2019 12:07:16 +0900 Subject: chore: bump to newer nightly (#1485) --- .cirrus.yml | 2 +- README.md | 2 -- azure-pipelines.yml | 2 +- rust-toolchain | 2 +- tokio-codec/src/length_delimited.rs | 2 -- tokio-codec/tests/framed.rs | 1 - tokio-codec/tests/framed_read.rs | 1 - tokio-executor/src/executor.rs | 6 ---- tokio-executor/src/global.rs | 2 -- tokio-executor/src/threadpool/blocking.rs | 2 -- tokio-executor/src/threadpool/builder.rs | 2 -- tokio-executor/src/threadpool/sender.rs | 2 -- tokio-executor/src/threadpool/thread_pool.rs | 2 -- tokio-executor/src/typed.rs | 2 -- tokio-executor/tests/current_thread.rs | 1 - tokio-executor/tests/enter.rs | 1 - tokio-executor/tests/executor.rs | 1 - tokio-executor/tests/threadpool.rs | 1 - tokio-executor/tests/threadpool_blocking.rs | 1 - tokio-executor/tests/threadpool_hammer.rs | 1 - tokio-fs/examples/std-echo.rs | 1 - tokio-fs/src/file.rs | 24 --------------- tokio-fs/src/lib.rs | 1 - tokio-fs/src/read.rs | 2 -- tokio-fs/src/read_dir.rs | 8 ----- tokio-fs/src/write.rs | 2 -- tokio-fs/tests/dir.rs | 1 - tokio-fs/tests/file.rs | 1 - tokio-fs/tests/link.rs | 1 - tokio-io/tests/copy.rs | 1 - tokio-io/tests/lines.rs | 1 - tokio-io/tests/read.rs | 1 - tokio-io/tests/read_exact.rs | 1 - tokio-io/tests/read_line.rs | 1 - tokio-io/tests/read_to_end.rs | 1 - tokio-io/tests/read_to_string.rs | 1 - tokio-io/tests/read_until.rs | 1 - tokio-io/tests/write.rs | 1 - tokio-io/tests/write_all.rs | 1 - tokio-macros/src/lib.rs | 6 ---- tokio-net/src/driver/mod.rs | 2 -- tokio-net/src/lib.rs | 1 - tokio-net/src/process/mod.rs | 10 ------ tokio-net/src/signal/mod.rs | 3 -- tokio-net/src/tcp/listener.rs | 4 --- tokio-net/src/tcp/stream.rs | 36 ---------------------- tokio-net/tests/process_smoke.rs | 1 - tokio-net/tests/process_stdio.rs | 1 - tokio-net/tests/signal_drop_then_get_a_signal.rs | 1 - ...dropping_does_not_deregister_other_instances.rs | 1 - tokio-net/tests/signal_notify_both.rs | 1 - tokio-net/tests/signal_simple.rs | 1 - tokio-net/tests/signal_twice.rs | 1 - tokio-net/tests/tcp_accept.rs | 1 - tokio-net/tests/tcp_connect.rs | 1 - tokio-net/tests/tcp_echo.rs | 1 - tokio-net/tests/tcp_peek.rs | 1 - tokio-net/tests/tcp_split.rs | 2 -- tokio-net/tests/udp.rs | 1 - tokio-net/tests/uds_datagram.rs | 1 - tokio-net/tests/uds_split.rs | 1 - tokio-net/tests/uds_stream.rs | 1 - tokio-sync/src/lib.rs | 1 - tokio-sync/src/lock.rs | 2 -- tokio-sync/src/mpsc/bounded.rs | 8 ----- tokio-sync/src/mpsc/unbounded.rs | 4 --- tokio-sync/src/oneshot.rs | 4 --- tokio-sync/src/watch.rs | 4 --- tokio-sync/tests/fuzz_mpsc.rs | 1 - tokio-sync/tests/fuzz_oneshot.rs | 1 - tokio-sync/tests/mpsc.rs | 1 - tokio-sync/tests/oneshot.rs | 1 - tokio-test/src/clock.rs | 2 -- tokio-test/tests/block_on.rs | 1 - tokio-test/tests/io.rs | 1 - tokio-timer/src/interval.rs | 2 -- tokio-timer/src/lib.rs | 1 - tokio-timer/src/timeout.rs | 4 --- tokio-timer/tests/delay.rs | 1 - tokio-timer/tests/hammer.rs | 1 - tokio-timer/tests/interval.rs | 1 - tokio-timer/tests/timeout.rs | 1 - tokio-tls/examples_old/download-rust-lang.rs | 1 - tokio-tls/src/lib.rs | 1 - tokio-tls/tests/bad.rs | 1 - tokio-tls/tests/google.rs | 1 - tokio-tls/tests/smoke.rs | 1 - tokio/README.md | 1 - tokio/examples/chat.rs | 1 - tokio/examples/connect.rs | 1 - tokio/examples/echo-udp.rs | 1 - tokio/examples/echo.rs | 1 - tokio/examples/hello_world.rs | 1 - tokio/examples/print_each_packet.rs | 1 - tokio/examples/proxy.rs | 1 - tokio/examples/tinydb.rs | 1 - tokio/examples/tinyhttp.rs | 1 - tokio/examples/udp-client.rs | 1 - tokio/examples/udp-codec.rs | 1 - tokio/src/executor.rs | 2 -- tokio/src/future.rs | 2 -- tokio/src/lib.rs | 3 -- tokio/src/runtime/current_thread/mod.rs | 2 -- tokio/src/runtime/current_thread/runtime.rs | 2 -- tokio/src/runtime/mod.rs | 4 --- tokio/src/runtime/threadpool/mod.rs | 2 -- tokio/src/runtime/threadpool/task_executor.rs | 2 -- tokio/src/stream.rs | 2 -- tokio/src/timer.rs | 4 --- tokio/tests/buffered.rs | 1 - tokio/tests/clock.rs | 1 - tokio/tests/drop-core.rs | 1 - tokio/tests/reactor.rs | 1 - tokio/tests/runtime_current_thread.rs | 1 - tokio/tests/runtime_threaded.rs | 1 - tokio/tests/timer.rs | 1 - 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 - | diff --git a/README.md b/README.md index 2de30e7e..537b3e9a 100644 --- a/README.md +++ b/README.md @@ -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/tokio-executor/tests/executor.rs @@ -1,5 +1,4 @@ #![warn(rust_2018_idioms)] -#![feature(async_await)] use tokio_executor::{self, DefaultExecutor}; diff --git a/tokio-executor/tests/threadpool.rs b/tokio-executor/tests/threadpool.rs index 4021fcad..171260b7 100644 --- a/tokio-executor/tests/threadpool.rs +++ b/tokio-executor/tests/threadpool.rs @@ -1,5 +1,4 @@ #![warn(rust_2018_idioms)] -#![feature(async_await)] use tokio_executor::park::{Park, Unpark}; use tokio_executor::threadpool; diff --git a/tokio-executor/tests/threadpool_blocking.rs b/tokio-executor/tests/threadpool_blocking.rs index 8c133b50..58c1ca36 100644 --- a/tokio-executor/tests/threadpool_blocking.rs +++ b/tokio-executor/tests/threadpool_blocking.rs @@ -1,5 +1,4 @@ #![warn(rust_2018_idioms)] -#![feature(async_await)] use tokio_executor::threadpool::*; use tokio_test::*; diff --git a/tokio-executor/tests/threadpool_hammer.rs b/tokio-executor/tests/threadpool_hammer.rs index 20a9e0ab..cec0466b 100644 --- a/tokio-executor/tests/threadpool_hammer.rs +++ b/tokio-executor/tests/threadpool_hammer.rs @@ -1,5 +1,4 @@ #![warn(rust_2018_idioms)] -#![feature(async_await)] use tokio_executor::threadpool::*; use tokio_sync::{mpsc, oneshot}; diff --git a/tokio-fs/examples/std-echo.rs b/tokio-fs/examples/std-echo.rs index 5a46e352..3b0086b9 100644 --- a/tokio-fs/examples/std-echo.rs +++ b/tokio-fs/examples/std-echo.rs @@ -1,5 +1,4 @@ //! Echo everything received on STDIN to STDOUT and STDERR. -#![feature(async_await)] use futures_util::{FutureExt, SinkExt, StreamExt, TryFutureExt}; diff --git a/tokio-fs/src/file.rs b/tokio-fs/src/file.rs index 43b927ec..238dd34f 100644 --- a/tokio-fs/src/file.rs +++ b/tokio-fs/src/file.rs @@ -32,8 +32,6 @@ use std::task::Poll; /// Create a new file and asynchronously write bytes to it: /// /// ```no_run -/// #![feature(async_await)] -/// /// use tokio::fs::File; /// use tokio::prelude::*; /// @@ -47,8 +45,6 @@ use std::task::Poll; /// Read the contents of a file into a buffer /// /// ```no_run -/// #![feature(async_await)] -/// /// use tokio::fs::File; /// use tokio::prelude::*; /// @@ -83,8 +79,6 @@ impl File { /// # Examples /// /// ```no_run - /// #![feature(async_await)] - /// /// use tokio::fs::File; /// use tokio::prelude::*; /// @@ -127,8 +121,6 @@ impl File { /// # Examples /// /// ```no_run - /// #![feature(async_await)] - /// /// use tokio::fs::File; /// use tokio::prelude::*; /// @@ -168,8 +160,6 @@ impl File { /// # Examples /// /// ```no_run - /// #![feature(async_await)] - /// /// use tokio::fs::File; /// use tokio::prelude::*; /// @@ -196,8 +186,6 @@ impl File { /// # Examples /// /// ```no_run - /// #![feature(async_await)] - /// /// use tokio::fs::File; /// use tokio::prelude::*; /// @@ -224,8 +212,6 @@ impl File { /// # Examples /// /// ```no_run - /// #![feature(async_await)] - /// /// use tokio::fs::File; /// use tokio::prelude::*; /// @@ -255,8 +241,6 @@ impl File { /// # Examples /// /// ```no_run - /// #![feature(async_await)] - /// /// use tokio::fs::File; /// use tokio::prelude::*; /// @@ -276,8 +260,6 @@ impl File { /// # Examples /// /// ```no_run - /// #![feature(async_await)] - /// /// use tokio::fs::File; /// /// # async fn dox() -> std::io::Result<()> { @@ -299,8 +281,6 @@ impl File { /// # Examples /// /// ```no_run - /// #![feature(async_await)] - /// /// use tokio::fs::File; /// /// # async fn dox() -> std::io::Result<()> { @@ -333,8 +313,6 @@ impl File { /// # Examples /// /// ```no_run - /// #![feature(async_await)] - /// /// use tokio::fs::File; /// /// # async fn dox() -> std::io::Result<()> { @@ -360,8 +338,6 @@ impl File { /// # Examples /// /// ```no_run - /// #![feature(async_await)] - /// /// use tokio::fs::File; /// /// # async fn dox() -> std::io::Result<()> { diff --git a/tokio-fs/src/lib.rs b/tokio-fs/src/lib.rs index 7f445ca0..efd07e9c 100644 --- a/tokio-fs/src/lib.rs +++ b/tokio-fs/src/lib.rs @@ -6,7 +6,6 @@ unreachable_pub )] #![doc(test(no_crate_inject, attr(deny(rust_2018_idioms))))] -#![feature(async_await)] //! Asynchronous file and standard stream adaptation. //! diff --git a/tokio-fs/src/read.rs b/tokio-fs/src/read.rs index 4b2cf05a..3f496fd6 100644 --- a/tokio-fs/src/read.rs +++ b/tokio-fs/src/read.rs @@ -12,8 +12,6 @@ use std::{io, path::Path}; /// # Examples /// /// ```no_run -/// #![feature(async_await)] -/// /// use tokio::fs; /// /// # async fn dox() -> std::io::Result<()> { diff --git a/tokio-fs/src/read_dir.rs b/tokio-fs/src/read_dir.rs index f3f12ace..393574b1 100644 --- a/tokio-fs/src/read_dir.rs +++ b/tokio-fs/src/read_dir.rs @@ -93,8 +93,6 @@ impl DirEntry { /// # Examples /// /// ```no_run - /// #![feature(async_await)] - /// /// use tokio::fs; /// use tokio::prelude::*; /// @@ -128,8 +126,6 @@ impl DirEntry { /// # Examples /// /// ``` - /// #![feature(async_await)] - /// /// use tokio::fs; /// use tokio::prelude::*; /// @@ -161,8 +157,6 @@ impl DirEntry { /// # Examples /// /// ``` - /// #![feature(async_await)] - /// /// use tokio::fs; /// use tokio::prelude::*; /// @@ -200,8 +194,6 @@ impl DirEntry { /// # Examples /// /// ``` - /// #![feature(async_await)] - /// /// use tokio::fs; /// use tokio::prelude::*; /// diff --git a/tokio-fs/src/write.rs b/tokio-fs/src/write.rs index 1db4a0a3..82e1607a 100644 --- a/tokio-fs/src/write.rs +++ b/tokio-fs/src/write.rs @@ -12,8 +12,6 @@ use std::{io, path::Path}; /// # Examples /// /// ```no_run -/// #![feature(async_await)] -/// /// use tokio::fs; /// /// # async fn dox() -> std::io::Result<()> { diff --git a/tokio-fs/tests/dir.rs b/tokio-fs/tests/dir.rs index 48242d5a..6d7f7977 100644 --- a/tokio-fs/tests/dir.rs +++ b/tokio-fs/tests/dir.rs @@ -1,5 +1,4 @@ #![warn(rust_2018_idioms)] -#![feature(async_await)] use futures_util::future; use futures_util::try_stream::TryStreamExt; diff --git a/tokio-fs/tests/file.rs b/tokio-fs/tests/file.rs index 1a2c89f1..05e186f4 100644 --- a/tokio-fs/tests/file.rs +++ b/tokio-fs/tests/file.rs @@ -1,5 +1,4 @@ #![warn(rust_2018_idioms)] -#![feature(async_await)] use rand::{distributions, thread_rng, Rng}; use std::fs; diff --git a/tokio-fs/tests/link.rs b/tokio-fs/tests/link.rs index 4350eac6..f162684b 100644 --- a/tokio-fs/tests/link.rs +++ b/tokio-fs/tests/link.rs @@ -1,5 +1,4 @@ #![warn(rust_2018_idioms)] -#![feature(async_await)] use std::fs; use std::io::prelude::*; diff --git a/tokio-io/tests/copy.rs b/tokio-io/tests/copy.rs index 73bef393..2a6a2685 100644 --- a/tokio-io/tests/copy.rs +++ b/tokio-io/tests/copy.rs @@ -1,5 +1,4 @@ #![warn(rust_2018_idioms)] -#![feature(async_await)] use tokio_io::{AsyncRead, AsyncReadExt}; use tokio_test::assert_ok; diff --git a/tokio-io/tests/lines.rs b/tokio-io/tests/lines.rs index 23bb8a46..3220b606 100644 --- a/tokio-io/tests/lines.rs +++ b/tokio-io/tests/lines.rs @@ -1,5 +1,4 @@ #![warn(rust_2018_idioms)] -#![feature(async_await)] use futures_util::StreamExt; use tokio_io::AsyncBufReadExt; diff --git a/tokio-io/tests/read.rs b/tokio-io/tests/read.rs index f4607f06..6ec5316a 100644 --- a/tokio-io/tests/read.rs +++ b/tokio-io/tests/read.rs @@ -1,5 +1,4 @@ #![warn(rust_2018_idioms)] -#![feature(async_await)] use tokio_io::{AsyncRead, AsyncReadExt}; use tokio_test::assert_ok; diff --git a/tokio-io/tests/read_exact.rs b/tokio-io/tests/read_exact.rs index e3d5ee11..2111c396 100644 --- a/tokio-io/tests/read_exact.rs +++ b/tokio-io/tests/read_exact.rs @@ -1,5 +1,4 @@ #![warn(rust_2018_idioms)] -#![feature(async_await)] use tokio_io::AsyncReadExt; use tokio_test::assert_ok; diff --git a/tokio-io/tests/read_line.rs b/tokio-io/tests/read_line.rs index b24448b1..22c81227 100644 --- a/tokio-io/tests/read_line.rs +++ b/tokio-io/tests/read_line.rs @@ -1,5 +1,4 @@ #![warn(rust_2018_idioms)] -#![feature(async_await)] use std::io::Cursor; use tokio_io::AsyncBufReadExt; diff --git a/tokio-io/tests/read_to_end.rs b/tokio-io/tests/read_to_end.rs index 1a79e099..ec8c9e45 100644 --- a/tokio-io/tests/read_to_end.rs +++ b/tokio-io/tests/read_to_end.rs @@ -1,5 +1,4 @@ #![warn(rust_2018_idioms)] -#![feature(async_await)] use tokio_io::AsyncReadExt; use tokio_test::assert_ok; diff --git a/tokio-io/tests/read_to_string.rs b/tokio-io/tests/read_to_string.rs index 69ee826d..7c21d95b 100644 --- a/tokio-io/tests/read_to_string.rs +++ b/tokio-io/tests/read_to_string.rs @@ -1,5 +1,4 @@ #![warn(rust_2018_idioms)] -#![feature(async_await)] use tokio_io::AsyncReadExt; use tokio_test::assert_ok; diff --git a/tokio-io/tests/read_until.rs b/tokio-io/tests/read_until.rs index 3716851b..43b3c48b 100644 --- a/tokio-io/tests/read_until.rs +++ b/tokio-io/tests/read_until.rs @@ -1,5 +1,4 @@ #![warn(rust_2018_idioms)] -#![feature(async_await)] use tokio_io::AsyncBufReadExt; use tokio_test::assert_ok; diff --git a/tokio-io/tests/write.rs b/tokio-io/tests/write.rs index e572100c..08f63ad3 100644 --- a/tokio-io/tests/write.rs +++ b/tokio-io/tests/write.rs @@ -1,5 +1,4 @@ #![warn(rust_2018_idioms)] -#![feature(async_await)] use tokio_io::{AsyncWrite, AsyncWriteExt}; use tokio_test::assert_ok; diff --git a/tokio-io/tests/write_all.rs b/tokio-io/tests/write_all.rs index ca9a478b..285ed2da 100644 --- a/tokio-io/tests/write_all.rs +++ b/tokio-io/tests/write_all.rs @@ -1,5 +1,4 @@ #![warn(rust_2018_idioms)] -#![feature(async_await)] use tokio_io::{AsyncWrite, AsyncWriteExt}; use tokio_test::assert_ok; diff --git a/tokio-macros/src/lib.rs b/tokio-macros/src/lib.rs index 7b72cca2..3b2bf2ad 100644 --- a/tokio-macros/src/lib.rs +++ b/tokio-macros/src/lib.rs @@ -26,8 +26,6 @@ use quote::quote; /// ### Select runtime /// /// ```rust -///#![feature(async_await)] -/// /// #[tokio::main(single_thread)] /// async fn main() { /// println!("Hello world"); @@ -36,8 +34,6 @@ use quote::quote; /// ### Using default /// /// ```rust -///#![feature(async_await)] -/// /// #[tokio::main] /// async fn main() { /// println!("Hello world"); @@ -116,8 +112,6 @@ pub fn main(args: TokenStream, item: TokenStream) -> TokenStream { /// # Examples /// /// ```no_run -/// #![feature(async_await)] -/// /// #[tokio::test] /// async fn my_test() { /// assert!(true); diff --git a/tokio-net/src/driver/mod.rs b/tokio-net/src/driver/mod.rs index a0416b0c..aab2cbc2 100644 --- a/tokio-net/src/driver/mod.rs +++ b/tokio-net/src/driver/mod.rs @@ -21,8 +21,6 @@ //! Let's start with a basic example, establishing a TCP connection. //! //! ``` -//! #![feature(async_await)] -//! //! use tokio::net::TcpStream; //! //! # async fn process(t: T) {} diff --git a/tokio-net/src/lib.rs b/tokio-net/src/lib.rs index 09796916..c071b873 100644 --- a/tokio-net/src/lib.rs +++ b/tokio-net/src/lib.rs @@ -6,7 +6,6 @@ unreachable_pub )] #![doc(test(no_crate_inject, attr(deny(rust_2018_idioms))))] -#![feature(async_await)] //! Event loop that drives Tokio I/O resources. //! diff --git a/tokio-net/src/process/mod.rs b/tokio-net/src/process/mod.rs index 423e9557..ba79b1b8 100644 --- a/tokio-net/src/process/mod.rs +++ b/tokio-net/src/process/mod.rs @@ -12,8 +12,6 @@ //! for it complete. //! //! ```no_run -//! #![feature(async_await)] -//! //! use tokio_net::process::Command; //! //! #[tokio::main] @@ -37,8 +35,6 @@ //! world` but we also capture its output. //! //! ```no_run -//! #![feature(async_await)] -//! //! use tokio_net::process::Command; //! //! #[tokio::main] @@ -59,8 +55,6 @@ //! We can also read input line by line. //! //! ```no_run -//! #![feature(async_await)] -//! //! use futures_util::stream::StreamExt; //! use std::process::{Stdio}; //! use tokio::codec::{FramedRead, LinesCodec}; @@ -463,7 +457,6 @@ impl Command { /// Basic usage: /// /// ```no_run - /// #![feature(async_await)] /// use tokio_net::process::Command; /// /// async fn run_ls() -> std::process::ExitStatus { @@ -509,7 +502,6 @@ impl Command { /// Basic usage: /// /// ```no_run - /// #![feature(async_await)] /// use tokio_net::process::Command; /// /// async fn run_ls() -> std::process::ExitStatus { @@ -558,7 +550,6 @@ impl Command { /// Basic usage: /// /// ```no_run - /// #![feature(async_await)] /// use tokio_net::process::Command; /// /// async fn run_ls() { @@ -754,7 +745,6 @@ impl Child { /// > `Child` instance into an event loop as an alternative to this method. /// /// ```no_run - /// # #![feature(async_await)] /// # use tokio_net::process::Command; /// /// # #[tokio::main] diff --git a/tokio-net/src/signal/mod.rs b/tokio-net/src/signal/mod.rs index 4bab4df4..d50b3792 100644 --- a/tokio-net/src/signal/mod.rs +++ b/tokio-net/src/signal/mod.rs @@ -17,8 +17,6 @@ //! Print out all ctrl-C notifications received //! //! ```rust,no_run -//! #![feature(async_await)] -//! //! use tokio_net::signal; //! //! use futures_util::future; @@ -45,7 +43,6 @@ //! Wait for SIGHUP on Unix //! //! ```rust,no_run -//! #![feature(async_await)] //! # #[cfg(unix)] { //! //! use tokio_net::signal::{self, unix::{signal, SignalKind}}; diff --git a/tokio-net/src/tcp/listener.rs b/tokio-net/src/tcp/listener.rs index 14708610..8a064b7a 100644 --- a/tokio-net/src/tcp/listener.rs +++ b/tokio-net/src/tcp/listener.rs @@ -21,8 +21,6 @@ use std::task::{Context, Poll}; /// # Examples /// /// ```no_run -/// #![feature(async_await)] -/// /// use tokio::net::TcpListener; /// use std::error::Error; /// # async fn process_socket(socket: T) {} @@ -74,8 +72,6 @@ impl TcpListener { /// # Examples /// /// ``` - /// #![feature(async_await)] - /// /// # async fn dox() -> Result<(), Box> { /// use tokio::net::TcpListener; /// diff --git a/tokio-net/src/tcp/stream.rs b/tokio-net/src/tcp/stream.rs index 0971e55e..67b7619d 100644 --- a/tokio-net/src/tcp/stream.rs +++ b/tokio-net/src/tcp/stream.rs @@ -34,8 +34,6 @@ use std::time::Duration; /// # Examples /// /// ```no_run -/// #![feature(async_await)] -/// /// use tokio::net::TcpStream; /// use tokio::prelude::*; /// use std::error::Error; @@ -81,8 +79,6 @@ impl TcpStream { /// # Examples /// /// ```no_run - /// #![feature(async_await)] - /// /// use tokio::net::TcpStream; /// use tokio::prelude::*; /// use std::error::Error; @@ -182,8 +178,6 @@ impl TcpStream { /// # Examples /// /// ```no_run - /// #![feature(async_await)] - /// /// use tokio::net::TcpStream; /// use std::net::SocketAddr; /// @@ -203,8 +197,6 @@ impl TcpStream { /// # Examples /// /// ```no_run - /// #![feature(async_await)] - /// /// use tokio::net::TcpStream; /// use std::net::SocketAddr; /// @@ -243,8 +235,6 @@ impl TcpStream { /// # Examples /// /// ```no_run - /// #![feature(async_await)] - /// /// use tokio::net::TcpStream; /// use tokio::prelude::*; /// use std::error::Error; @@ -282,8 +272,6 @@ impl TcpStream { /// # Examples /// /// ```no_run - /// #![feature(async_await)] - /// /// use tokio::net::TcpStream; /// use tokio::prelude::*; /// use std::error::Error; @@ -315,8 +303,6 @@ impl TcpStream { /// # Examples /// /// ```no_run - /// #![feature(async_await)] - /// /// use tokio::net::TcpStream; /// use std::net::SocketAddr; /// @@ -343,8 +329,6 @@ impl TcpStream { /// # Examples /// /// ```no_run - /// #![feature(async_await)] - /// /// use tokio::net::TcpStream; /// use std::net::SocketAddr; /// @@ -369,8 +353,6 @@ impl TcpStream { /// # Examples /// /// ```no_run - /// #![feature(async_await)] - /// /// use tokio::net::TcpStream; /// use std::net::SocketAddr; /// @@ -394,8 +376,6 @@ impl TcpStream { /// # Examples /// /// ```no_run - /// #![feature(async_await)] - /// /// use tokio::net::TcpStream; /// use std::net::SocketAddr; /// @@ -429,8 +409,6 @@ impl TcpStream { /// # Examples /// /// ```no_run - /// #![feature(async_await)] - /// /// use tokio::net::TcpStream; /// use std::net::SocketAddr; /// @@ -454,8 +432,6 @@ impl TcpStream { /// # Examples /// /// ```no_run - /// #![feature(async_await)] - /// /// use tokio::net::TcpStream; /// use std::net::SocketAddr; /// @@ -481,8 +457,6 @@ impl TcpStream { /// # Examples /// /// ```no_run - /// #![feature(async_await)] - /// /// use tokio::net::TcpStream; /// use std::net::SocketAddr; /// @@ -514,8 +488,6 @@ impl TcpStream { /// # Examples /// /// ```no_run - /// #![feature(async_await)] - /// /// use tokio::net::TcpStream; /// use std::net::SocketAddr; /// @@ -540,8 +512,6 @@ impl TcpStream { /// # Examples /// /// ```no_run - /// #![feature(async_await)] - /// /// use tokio::net::TcpStream; /// use std::net::SocketAddr; /// @@ -565,8 +535,6 @@ impl TcpStream { /// # Examples /// /// ```no_run - /// #![feature(async_await)] - /// /// use tokio::net::TcpStream; /// use std::net::SocketAddr; /// @@ -592,8 +560,6 @@ impl TcpStream { /// # Examples /// /// ```no_run - /// #![feature(async_await)] - /// /// use tokio::net::TcpStream; /// use std::net::SocketAddr; /// @@ -624,8 +590,6 @@ impl TcpStream { /// # Examples /// /// ```no_run - /// #![feature(async_await)] - /// /// use tokio::net::TcpStream; /// use std::net::SocketAddr; /// diff --git a/tokio-net/tests/process_smoke.rs b/tokio-net/tests/process_smoke.rs index a0419b70..4e44c489 100644 --- a/tokio-net/tests/process_smoke.rs +++ b/tokio-net/tests/process_smoke.rs @@ -1,6 +1,5 @@ #![cfg(feature = "process")] #![warn(rust_2018_idioms)] -#![feature(async_await)] use tokio_net::process::Command; diff --git a/tokio-net/tests/process_stdio.rs b/tokio-net/tests/process_stdio.rs index b2ecd32e..8054f5e0 100644 --- a/tokio-net/tests/process_stdio.rs +++ b/tokio-net/tests/process_stdio.rs @@ -1,6 +1,5 @@ #![cfg(feature = "process")] #![warn(rust_2018_idioms)] -#![feature(async_await)] #[macro_use] extern crate log; diff --git a/tokio-net/tests/signal_drop_then_get_a_signal.rs b/tokio-net/tests/signal_drop_then_get_a_signal.rs index 1ba3f63b..867aff25 100644 --- a/tokio-net/tests/signal_drop_then_get_a_signal.rs +++ b/tokio-net/tests/signal_drop_then_get_a_signal.rs @@ -1,7 +1,6 @@ #![cfg(unix)] #![cfg(feature = "signal")] #![warn(rust_2018_idioms)] -#![feature(async_await)] mod support; use support::*; diff --git a/tokio-net/tests/signal_dropping_does_not_deregister_other_instances.rs b/tokio-net/tests/signal_dropping_does_not_deregister_other_instances.rs index b3384565..384d2edc 100644 --- a/tokio-net/tests/signal_dropping_does_not_deregister_other_instances.rs +++ b/tokio-net/tests/signal_dropping_does_not_deregister_other_instances.rs @@ -1,7 +1,6 @@ #![cfg(unix)] #![cfg(feature = "signal")] #![warn(rust_2018_idioms)] -#![feature(async_await)] pub mod support; use support::*; diff --git a/tokio-net/tests/signal_notify_both.rs b/tokio-net/tests/signal_notify_both.rs index abe5b6fb..8039f008 100644 --- a/tokio-net/tests/signal_notify_both.rs +++ b/tokio-net/tests/signal_notify_both.rs @@ -1,7 +1,6 @@ #![cfg(unix)] #![cfg(feature = "signal")] #![warn(rust_2018_idioms)] -#![feature(async_await)] mod support; use support::*; diff --git a/tokio-net/tests/signal_simple.rs b/tokio-net/tests/signal_simple.rs index 1e513fbe..adff9516 100644 --- a/tokio-net/tests/signal_simple.rs +++ b/tokio-net/tests/signal_simple.rs @@ -1,7 +1,6 @@ #![cfg(unix)] #![cfg(feature = "signal")] #![warn(rust_2018_idioms)] -#![feature(async_await)] mod support; use support::*; diff --git a/tokio-net/tests/signal_twice.rs b/tokio-net/tests/signal_twice.rs index d6046c41..500e0917 100644 --- a/tokio-net/tests/signal_twice.rs +++ b/tokio-net/tests/signal_twice.rs @@ -1,7 +1,6 @@ #![cfg(unix)] #![cfg(feature = "signal")] #![warn(rust_2018_idioms)] -#![feature(async_await)] mod support; use support::*; diff --git a/tokio-net/tests/tcp_accept.rs b/tokio-net/tests/tcp_accept.rs index a31096c8..ecb10e47 100644 --- a/tokio-net/tests/tcp_accept.rs +++ b/tokio-net/tests/tcp_accept.rs @@ -1,5 +1,4 @@ #![warn(rust_2018_idioms)] -#![feature(async_await)] use tokio::net::{TcpListener, TcpStream}; use tokio::sync::oneshot; diff --git a/tokio-net/tests/tcp_connect.rs b/tokio-net/tests/tcp_connect.rs index 3d2316d9..f452ca89 100644 --- a/tokio-net/tests/tcp_connect.rs +++ b/tokio-net/tests/tcp_connect.rs @@ -1,4 +1,3 @@ -#![feature(async_await)] #![warn(rust_2018_idioms)] use tokio::net::{TcpListener, TcpStream}; diff --git a/tokio-net/tests/tcp_echo.rs b/tokio-net/tests/tcp_echo.rs index 0a0c87ca..1fb6cfdc 100644 --- a/tokio-net/tests/tcp_echo.rs +++ b/tokio-net/tests/tcp_echo.rs @@ -1,4 +1,3 @@ -#![feature(async_await)] #![warn(rust_2018_idioms)] use tokio::net::{TcpListener, TcpStream}; diff --git a/tokio-net/tests/tcp_peek.rs b/tokio-net/tests/tcp_peek.rs index 60f0c76d..a77c9815 100644 --- a/tokio-net/tests/tcp_peek.rs +++ b/tokio-net/tests/tcp_peek.rs @@ -1,5 +1,4 @@ #![warn(rust_2018_idioms)] -#![feature(async_await)] use std::thread; use std::{convert::TryInto, io::Write, net}; diff --git a/tokio-net/tests/tcp_split.rs b/tokio-net/tests/tcp_split.rs index 7a21401a..208f98da 100644 --- a/tokio-net/tests/tcp_split.rs +++ b/tokio-net/tests/tcp_split.rs @@ -1,5 +1,3 @@ -#![feature(async_await)] - use tokio_net::tcp::{TcpListener, TcpStream}; #[tokio::test] diff --git a/tokio-net/tests/udp.rs b/tokio-net/tests/udp.rs index 286bd29b..a0f0f4e4 100644 --- a/tokio-net/tests/udp.rs +++ b/tokio-net/tests/udp.rs @@ -1,4 +1,3 @@ -#![feature(async_await)] #![warn(rust_2018_idioms)] use tokio_codec::{Decoder, Encoder}; diff --git a/tokio-net/tests/uds_datagram.rs b/tokio-net/tests/uds_datagram.rs index a8a8131a..3e0b05a5 100644 --- a/tokio-net/tests/uds_datagram.rs +++ b/tokio-net/tests/uds_datagram.rs @@ -1,5 +1,4 @@ #![cfg(unix)] -#![feature(async_await)] #![warn(rust_2018_idioms)] use tokio_net::uds::*; diff --git a/tokio-net/tests/uds_split.rs b/tokio-net/tests/uds_split.rs index 7de589e7..be50f773 100644 --- a/tokio-net/tests/uds_split.rs +++ b/tokio-net/tests/uds_split.rs @@ -1,5 +1,4 @@ #![cfg(unix)] -#![feature(async_await)] #![deny(warnings, rust_2018_idioms)] use tokio::net::UnixStream; diff --git a/tokio-net/tests/uds_stream.rs b/tokio-net/tests/uds_stream.rs index b7dc305a..1982ac5b 100644 --- a/tokio-net/tests/uds_stream.rs +++ b/tokio-net/tests/uds_stream.rs @@ -1,5 +1,4 @@ #![cfg(unix)] -#![feature(async_await)] #![warn(rust_2018_idioms)] use tokio_net::uds::*; 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 Receiver { /// # Examples /// /// ``` - /// #![feature(async_await)] - /// /// use tokio::sync::mpsc; /// /// #[tokio::main] @@ -152,8 +148,6 @@ impl Receiver { /// Values are buffered: /// /// ``` - /// #![feature(async_await)] - /// /// use tokio::sync::mpsc; /// /// #[tokio::main] @@ -221,8 +215,6 @@ impl Sender { /// 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 UnboundedReceiver { /// # Examples /// /// ``` - /// #![feature(async_await)] - /// /// use tokio::sync::mpsc; /// /// #[tokio::main] @@ -120,8 +118,6 @@ impl UnboundedReceiver { /// 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 Sender { /// # 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> { @@ -171,8 +169,6 @@ const CLOSED: usize = 1; /// # Examples /// /// ``` -/// #![feature(async_await)] -/// /// use tokio::sync::watch; /// /// # async fn dox() -> Result<(), Box> { 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; diff --git a/tokio-test/src/clock.rs b/tokio-test/src/clock.rs index a5c8b4f2..ea4f0465 100644 --- a/tokio-test/src/clock.rs +++ b/tokio-test/src/clock.rs @@ -3,8 +3,6 @@ //! # Example //! //! ``` -//! #![feature(async_await)] -//! //! use tokio::clock; //! use tokio_test::{assert_ready, assert_pending, task}; //! use tokio_timer::delay; diff --git a/tokio-test/tests/block_on.rs b/tokio-test/tests/block_on.rs index f0a90d11..9b4959e9 100644 --- a/tokio-test/tests/block_on.rs +++ b/tokio-test/tests/block_on.rs @@ -1,5 +1,4 @@ #![warn(rust_2018_idioms)] -#![feature(async_await)] use std::time::{Duration, Instant}; use tokio_test::block_on; diff --git a/tokio-test/tests/io.rs b/tokio-test/tests/io.rs index 93c9dc29..954bb469 100644 --- a/tokio-test/tests/io.rs +++ b/tokio-test/tests/io.rs @@ -1,5 +1,4 @@ #![warn(rust_2018_idioms)] -#![feature(async_await)] use tokio::io::{AsyncReadExt, AsyncWriteExt}; use tokio_test::io::Builder; diff --git a/tokio-timer/src/interval.rs b/tokio-timer/src/interval.rs index ea5ca7d4..55c5ea3b 100644 --- a/tokio-timer/src/interval.rs +++ b/tokio-timer/src/interval.rs @@ -77,8 +77,6 @@ impl Interval { /// # Examples /// /// ``` - /// #![feature(async_await)] - /// /// use tokio::timer::Interval; /// /// use std::time::Duration; diff --git a/tokio-timer/src/lib.rs b/tokio-timer/src/lib.rs index be03d2d1..1e7a1a58 100644 --- a/tokio-timer/src/lib.rs +++ b/tokio-timer/src/lib.rs @@ -6,7 +6,6 @@ unreachable_pub )] #![doc(test(no_crate_inject, attr(deny(rust_2018_idioms))))] -#![feature(async_await)] //! Utilities for tracking time. //! diff --git a/tokio-timer/src/timeout.rs b/tokio-timer/src/timeout.rs index 88816da4..250dc828 100644 --- a/tokio-timer/src/timeout.rs +++ b/tokio-timer/src/timeout.rs @@ -32,8 +32,6 @@ use std::time::{Duration, Instant}; /// example: /// /// ```rust,no_run -/// #![feature(async_await)] -/// /// use tokio::prelude::*; /// use tokio::sync::mpsc; /// @@ -96,8 +94,6 @@ impl Timeout { /// Create a new `Timeout` set to expire in 10 milliseconds. /// /// ```rust - /// #![feature(async_await)] - /// /// use tokio::timer::Timeout; /// use tokio::sync::oneshot; /// diff --git a/tokio-timer/tests/delay.rs b/tokio-timer/tests/delay.rs index 5758926f..17b7fcf8 100644 --- a/tokio-timer/tests/delay.rs +++ b/tokio-timer/tests/delay.rs @@ -1,5 +1,4 @@ #![warn(rust_2018_idioms)] -#![feature(async_await)] use std::time::{Duration, Instant}; diff --git a/tokio-timer/tests/hammer.rs b/tokio-timer/tests/hammer.rs index c61019c7..eaf26c1f 100644 --- a/tokio-timer/tests/hammer.rs +++ b/tokio-timer/tests/hammer.rs @@ -1,5 +1,4 @@ #![warn(rust_2018_idioms)] -#![feature(async_await)] use tokio_executor::current_thread::CurrentThread; use tokio_executor::park::{Park, Unpark, UnparkThread}; diff --git a/tokio-timer/tests/interval.rs b/tokio-timer/tests/interval.rs index 2f6f84aa..6f00a0a6 100644 --- a/tokio-timer/tests/interval.rs +++ b/tokio-timer/tests/interval.rs @@ -1,5 +1,4 @@ #![warn(rust_2018_idioms)] -#![feature(async_await)] use tokio_test::task::MockTask; use tokio_test::{assert_pending, assert_ready_eq, clock}; diff --git a/tokio-timer/tests/timeout.rs b/tokio-timer/tests/timeout.rs index df4cfde8..17b2812e 100644 --- a/tokio-timer/tests/timeout.rs +++ b/tokio-timer/tests/timeout.rs @@ -1,5 +1,4 @@ #![warn(rust_2018_idioms)] -#![feature(async_await)] use tokio_sync::oneshot; use tokio_test::task::MockTask; diff --git a/tokio-tls/examples_old/download-rust-lang.rs b/tokio-tls/examples_old/download-rust-lang.rs index 581b29c5..324c0775 100644 --- a/tokio-tls/examples_old/download-rust-lang.rs +++ b/tokio-tls/examples_old/download-rust-lang.rs @@ -1,5 +1,4 @@ // #![warn(rust_2018_idioms)] -#![feature(async_await)] use native_tls::TlsConnector; use std::error::Error; diff --git a/tokio-tls/src/lib.rs b/tokio-tls/src/lib.rs index 38366c2a..9963ace4 100644 --- a/tokio-tls/src/lib.rs +++ b/tokio-tls/src/lib.rs @@ -6,7 +6,6 @@ unreachable_pub )] #![doc(test(no_crate_inject, attr(deny(rust_2018_idioms))))] -#![feature(async_await)] //! Async TLS streams //! diff --git a/tokio-tls/tests/bad.rs b/tokio-tls/tests/bad.rs index 87d92aa1..87d4ca27 100644 --- a/tokio-tls/tests/bad.rs +++ b/tokio-tls/tests/bad.rs @@ -1,5 +1,4 @@ #![warn(rust_2018_idioms)] -#![feature(async_await)] use cfg_if::cfg_if; use env_logger; diff --git a/tokio-tls/tests/google.rs b/tokio-tls/tests/google.rs index 4f2063e8..13b78d31 100644 --- a/tokio-tls/tests/google.rs +++ b/tokio-tls/tests/google.rs @@ -1,5 +1,4 @@ #![warn(rust_2018_idioms)] -#![feature(async_await)] use cfg_if::cfg_if; use env_logger; diff --git a/tokio-tls/tests/smoke.rs b/tokio-tls/tests/smoke.rs index e1cc72b2..6b27370b 100644 --- a/tokio-tls/tests/smoke.rs +++ b/tokio-tls/tests/smoke.rs @@ -1,5 +1,4 @@ #![warn(rust_2018_idioms)] -#![feature(async_await)] use cfg_if::cfg_if; use env_logger; diff --git a/tokio/README.md b/tokio/README.md index 2de30e7e..e9cdc413 100644 --- a/tokio/README.md +++ b/tokio/README.md @@ -55,7 +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/tokio/examples/chat.rs b/tokio/examples/chat.rs index 63542f92..8ace878c 100644 --- a/tokio/examples/chat.rs +++ b/tokio/examples/chat.rs @@ -24,7 +24,6 @@ //! connected clients they'll all join the same room and see everyone else's //! messages. -#![feature(async_await)] #![warn(rust_2018_idioms)] use futures::{Poll, SinkExt, Stream, StreamExt}; diff --git a/tokio/examples/connect.rs b/tokio/examples/connect.rs index 5b4bae43..6036eec3 100644 --- a/tokio/examples/connect.rs +++ b/tokio/examples/connect.rs @@ -15,7 +15,6 @@ //! stdin/stdout to a server" to get up and running. #![warn(rust_2018_idioms)] -#![feature(async_await)] use futures::{SinkExt, Stream}; use std::{env, error::Error, net::SocketAddr}; diff --git a/tokio/examples/echo-udp.rs b/tokio/examples/echo-udp.rs index 51759bba..330a3cd8 100644 --- a/tokio/examples/echo-udp.rs +++ b/tokio/examples/echo-udp.rs @@ -10,7 +10,6 @@ //! //! Each line you type in to the `nc` terminal should be echo'd back to you! -#![feature(async_await)] #![warn(rust_2018_idioms)] use std::error::Error; diff --git a/tokio/examples/echo.rs b/tokio/examples/echo.rs index b70e22f3..c8842b73 100644 --- a/tokio/examples/echo.rs +++ b/tokio/examples/echo.rs @@ -19,7 +19,6 @@ //! you! If you open up multiple terminals running the `connect` example you //! should be able to see them all make progress simultaneously. -#![feature(async_await)] #![warn(rust_2018_idioms)] use tokio; diff --git a/tokio/examples/hello_world.rs b/tokio/examples/hello_world.rs index ae665750..69c3b3f6 100644 --- a/tokio/examples/hello_world.rs +++ b/tokio/examples/hello_world.rs @@ -12,7 +12,6 @@ //! cargo run --example hello_world #![warn(rust_2018_idioms)] -#![feature(async_await)] use tokio; use tokio::io::AsyncWriteExt; diff --git a/tokio/examples/print_each_packet.rs b/tokio/examples/print_each_packet.rs index ffb3112e..b801ac8b 100644 --- a/tokio/examples/print_each_packet.rs +++ b/tokio/examples/print_each_packet.rs @@ -52,7 +52,6 @@ //! ``` //! -#![feature(async_await)] #![warn(rust_2018_idioms)] use std::env; diff --git a/tokio/examples/proxy.rs b/tokio/examples/proxy.rs index b885bc3b..848c0a40 100644 --- a/tokio/examples/proxy.rs +++ b/tokio/examples/proxy.rs @@ -21,7 +21,6 @@ //! the echo server, and you'll be able to see data flowing between them. #![warn(rust_2018_idioms)] -#![feature(async_await)] use futures::{future::try_join, FutureExt, StreamExt}; use std::{env, error::Error, net::SocketAddr}; diff --git a/tokio/examples/tinydb.rs b/tokio/examples/tinydb.rs index 1fe8c2b3..fa3cefee 100644 --- a/tokio/examples/tinydb.rs +++ b/tokio/examples/tinydb.rs @@ -39,7 +39,6 @@ //! * `SET $key $value` - this will set the value of `$key` to `$value`, //! returning the previous value, if any. -#![feature(async_await)] #![warn(rust_2018_idioms)] use std::collections::HashMap; diff --git a/tokio/examples/tinyhttp.rs b/tokio/examples/tinyhttp.rs index ea0b6719..6aa5a183 100644 --- a/tokio/examples/tinyhttp.rs +++ b/tokio/examples/tinyhttp.rs @@ -12,7 +12,6 @@ //! available, and it doesn't support HTTP request bodies. #![warn(rust_2018_idioms)] -#![feature(async_await)] use bytes::BytesMut; use futures::{SinkExt, StreamExt}; diff --git a/tokio/examples/udp-client.rs b/tokio/examples/udp-client.rs index 2d1eb7b1..915c06d9 100644 --- a/tokio/examples/udp-client.rs +++ b/tokio/examples/udp-client.rs @@ -26,7 +26,6 @@ //! Please mind that since the UDP protocol doesn't have any capabilities to detect a broken //! connection the server needs to be run first, otherwise the client will block forever. -#![feature(async_await)] #![warn(rust_2018_idioms)] use std::env; diff --git a/tokio/examples/udp-codec.rs b/tokio/examples/udp-codec.rs index a5bd3f64..c055eaa4 100644 --- a/tokio/examples/udp-codec.rs +++ b/tokio/examples/udp-codec.rs @@ -6,7 +6,6 @@ //! new message with a new destination. Overall, we then use this to construct a //! "ping pong" pair where two sockets are sending messages back and forth. -#![feature(async_await)] #![cfg(feature = "rt-full")] #![warn(rust_2018_idioms)] diff --git a/tokio/src/executor.rs b/tokio/src/executor.rs index 830ecf45..7026cd63 100644 --- a/tokio/src/executor.rs +++ b/tokio/src/executor.rs @@ -69,8 +69,6 @@ pub struct Spawn(()); /// that processes each received connection. /// /// ``` -/// #![feature(async_await)] -/// /// use tokio::net::TcpListener; /// /// # async fn process(t: T) {} diff --git a/tokio/src/future.rs b/tokio/src/future.rs index a2e4d220..a904d629 100644 --- a/tokio/src/future.rs +++ b/tokio/src/future.rs @@ -40,8 +40,6 @@ pub trait FutureExt: Future { /// # Examples /// /// ``` - /// #![feature(async_await)] - /// /// use tokio::prelude::*; /// use std::time::Duration; /// diff --git a/tokio/src/lib.rs b/tokio/src/lib.rs index b1255ece..2c804c77 100644 --- a/tokio/src/lib.rs +++ b/tokio/src/lib.rs @@ -6,7 +6,6 @@ unreachable_pub )] #![doc(test(no_crate_inject, attr(deny(rust_2018_idioms))))] -#![feature(async_await)] //! A runtime for writing reliable, asynchronous, and slim applications. //! @@ -31,8 +30,6 @@ //! A simple TCP echo server: //! //! ```no_run -//! #![feature(async_await)] -//! //! use tokio::net::TcpListener; //! use tokio::prelude::*; //! diff --git a/tokio/src/runtime/current_thread/mod.rs b/tokio/src/runtime/current_thread/mod.rs index b6141303..d81fec94 100644 --- a/tokio/src/runtime/current_thread/mod.rs +++ b/tokio/src/runtime/current_thread/mod.rs @@ -24,8 +24,6 @@ //! For example: //! //! ``` -//! #![feature(async_await)] -//! //! use tokio::runtime::current_thread::Runtime; //! use tokio::prelude::*; //! use std::thread; diff --git a/tokio/src/runtime/current_thread/runtime.rs b/tokio/src/runtime/current_thread/runtime.rs index da3e6770..f9e3623d 100644 --- a/tokio/src/runtime/current_thread/runtime.rs +++ b/tokio/src/runtime/current_thread/runtime.rs @@ -123,8 +123,6 @@ impl Runtime { /// # Examples /// /// ``` - /// #![feature(async_await)] - /// /// use tokio::runtime::current_thread::Runtime; /// /// # fn dox() { diff --git a/tokio/src/runtime/mod.rs b/tokio/src/runtime/mod.rs index cc4131a4..9b630d87 100644 --- a/tokio/src/runtime/mod.rs +++ b/tokio/src/runtime/mod.rs @@ -34,8 +34,6 @@ //! Most applications will use the [`tokio::main`] attribute macro. //! //! ```no_run -//! #![feature(async_await)] -//! //! use tokio::net::TcpListener; //! use tokio::prelude::*; //! @@ -83,8 +81,6 @@ //! A [`Runtime`] instance can also be used directly. //! //! ```no_run -//! #![feature(async_await)] -//! //! use tokio::net::TcpListener; //! use tokio::prelude::*; //! use tokio::runtime::Runtime; diff --git a/tokio/src/runtime/threadpool/mod.rs b/tokio/src/runtime/threadpool/mod.rs index b9de101a..c2564cb8 100644 --- a/tokio/src/runtime/threadpool/mod.rs +++ b/tokio/src/runtime/threadpool/mod.rs @@ -125,8 +125,6 @@ impl Runtime { /// # Examples /// /// ``` - /// #![feature(async_await)] - /// /// use tokio::runtime::Runtime; /// /// fn main() { diff --git a/tokio/src/runtime/threadpool/task_executor.rs b/tokio/src/runtime/threadpool/task_executor.rs index 5ecfb7cc..ddf764cc 100644 --- a/tokio/src/runtime/threadpool/task_executor.rs +++ b/tokio/src/runtime/threadpool/task_executor.rs @@ -29,8 +29,6 @@ impl TaskExecutor { /// # Examples /// /// ``` - /// #![feature(async_await)] - /// /// use tokio::runtime::Runtime; /// /// # fn dox() { diff --git a/tokio/src/stream.rs b/tokio/src/stream.rs index 5b72077b..3faaae95 100644 --- a/tokio/src/stream.rs +++ b/tokio/src/stream.rs @@ -49,8 +49,6 @@ pub trait StreamExt: Stream { /// # Examples /// /// ``` - /// #![feature(async_await)] - /// /// use tokio::prelude::*; /// /// use std::time::Duration; diff --git a/tokio/src/timer.rs b/tokio/src/timer.rs index 24c4345a..624717fc 100644 --- a/tokio/src/timer.rs +++ b/tokio/src/timer.rs @@ -30,8 +30,6 @@ //! Wait 100ms and print "Hello World!" //! //! ``` -//! #![feature(async_await)] -//! //! use tokio::prelude::*; //! use tokio::timer::delay; //! @@ -51,8 +49,6 @@ //! included in the prelude. //! //! ``` -//! #![feature(async_await)] -//! //! use tokio::prelude::*; //! use std::time::Duration; //! diff --git a/tokio/tests/buffered.rs b/tokio/tests/buffered.rs index 1f81418c..351cb30a 100644 --- a/tokio/tests/buffered.rs +++ b/tokio/tests/buffered.rs @@ -1,4 +1,3 @@ -#![feature(async_await)] #![warn(rust_2018_idioms)] #![cfg(feature = "default")] diff --git a/tokio/tests/clock.rs b/tokio/tests/clock.rs index f7f9e030..c8d37da1 100644 --- a/tokio/tests/clock.rs +++ b/tokio/tests/clock.rs @@ -1,4 +1,3 @@ -#![feature(async_await)] #![warn(rust_2018_idioms)] #![cfg(feature = "default")] diff --git a/tokio/tests/drop-core.rs b/tokio/tests/drop-core.rs index bb41c12e..3b860e4d 100644 --- a/tokio/tests/drop-core.rs +++ b/tokio/tests/drop-core.rs @@ -1,4 +1,3 @@ -#![feature(async_await)] #![warn(rust_2018_idioms)] #![cfg(feature = "default")] diff --git a/tokio/tests/reactor.rs b/tokio/tests/reactor.rs index d39a5a3d..59ff8128 100644 --- a/tokio/tests/reactor.rs +++ b/tokio/tests/reactor.rs @@ -1,4 +1,3 @@ -#![feature(async_await)] #![warn(rust_2018_idioms)] #![cfg(feature = "default")] diff --git a/tokio/tests/runtime_current_thread.rs b/tokio/tests/runtime_current_thread.rs index b4e35f39..9f77ac7c 100644 --- a/tokio/tests/runtime_current_thread.rs +++ b/tokio/tests/runtime_current_thread.rs @@ -1,5 +1,4 @@ #![warn(rust_2018_idioms)] -#![feature(async_await)] #![cfg(feature = "default")] use tokio::io::{AsyncReadExt, AsyncWriteExt}; diff --git a/tokio/tests/runtime_threaded.rs b/tokio/tests/runtime_threaded.rs index 9cda2171..bd8ce6a0 100644 --- a/tokio/tests/runtime_threaded.rs +++ b/tokio/tests/runtime_threaded.rs @@ -1,5 +1,4 @@ #![warn(rust_2018_idioms)] -#![feature(async_await)] #![cfg(feature = "default")] use tokio; diff --git a/tokio/tests/timer.rs b/tokio/tests/timer.rs index 902e21c3..138e8a2f 100644 --- a/tokio/tests/timer.rs +++ b/tokio/tests/timer.rs @@ -1,5 +1,4 @@ #![warn(rust_2018_idioms)] -#![feature(async_await)] #![cfg(feature = "default")] use tokio::prelude::*; -- cgit v1.2.3