diff options
author | Taiki Endo <te316e89@gmail.com> | 2019-08-21 12:07:16 +0900 |
---|---|---|
committer | Carl Lerche <me@carllerche.com> | 2019-08-20 20:07:16 -0700 |
commit | a791f4a758604768463d3ca2162b913dcea34c40 (patch) | |
tree | 80037a52d5249eee268d99aa84525f9c017e0aea /tokio | |
parent | 7e7a5147a3f5de83ee540ebaad0928183e61df2c (diff) |
chore: bump to newer nightly (#1485)
Diffstat (limited to 'tokio')
29 files changed, 0 insertions, 44 deletions
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: 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::*; |