summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.cirrus.yml2
-rw-r--r--README.md2
-rw-r--r--azure-pipelines.yml2
-rw-r--r--rust-toolchain2
-rw-r--r--tokio-codec/src/length_delimited.rs2
-rw-r--r--tokio-codec/tests/framed.rs1
-rw-r--r--tokio-codec/tests/framed_read.rs1
-rw-r--r--tokio-executor/src/executor.rs6
-rw-r--r--tokio-executor/src/global.rs2
-rw-r--r--tokio-executor/src/threadpool/blocking.rs2
-rw-r--r--tokio-executor/src/threadpool/builder.rs2
-rw-r--r--tokio-executor/src/threadpool/sender.rs2
-rw-r--r--tokio-executor/src/threadpool/thread_pool.rs2
-rw-r--r--tokio-executor/src/typed.rs2
-rw-r--r--tokio-executor/tests/current_thread.rs1
-rw-r--r--tokio-executor/tests/enter.rs1
-rw-r--r--tokio-executor/tests/executor.rs1
-rw-r--r--tokio-executor/tests/threadpool.rs1
-rw-r--r--tokio-executor/tests/threadpool_blocking.rs1
-rw-r--r--tokio-executor/tests/threadpool_hammer.rs1
-rw-r--r--tokio-fs/examples/std-echo.rs1
-rw-r--r--tokio-fs/src/file.rs24
-rw-r--r--tokio-fs/src/lib.rs1
-rw-r--r--tokio-fs/src/read.rs2
-rw-r--r--tokio-fs/src/read_dir.rs8
-rw-r--r--tokio-fs/src/write.rs2
-rw-r--r--tokio-fs/tests/dir.rs1
-rw-r--r--tokio-fs/tests/file.rs1
-rw-r--r--tokio-fs/tests/link.rs1
-rw-r--r--tokio-io/tests/copy.rs1
-rw-r--r--tokio-io/tests/lines.rs1
-rw-r--r--tokio-io/tests/read.rs1
-rw-r--r--tokio-io/tests/read_exact.rs1
-rw-r--r--tokio-io/tests/read_line.rs1
-rw-r--r--tokio-io/tests/read_to_end.rs1
-rw-r--r--tokio-io/tests/read_to_string.rs1
-rw-r--r--tokio-io/tests/read_until.rs1
-rw-r--r--tokio-io/tests/write.rs1
-rw-r--r--tokio-io/tests/write_all.rs1
-rw-r--r--tokio-macros/src/lib.rs6
-rw-r--r--tokio-net/src/driver/mod.rs2
-rw-r--r--tokio-net/src/lib.rs1
-rw-r--r--tokio-net/src/process/mod.rs10
-rw-r--r--tokio-net/src/signal/mod.rs3
-rw-r--r--tokio-net/src/tcp/listener.rs4
-rw-r--r--tokio-net/src/tcp/stream.rs36
-rw-r--r--tokio-net/tests/process_smoke.rs1
-rw-r--r--tokio-net/tests/process_stdio.rs1
-rw-r--r--tokio-net/tests/signal_drop_then_get_a_signal.rs1
-rw-r--r--tokio-net/tests/signal_dropping_does_not_deregister_other_instances.rs1
-rw-r--r--tokio-net/tests/signal_notify_both.rs1
-rw-r--r--tokio-net/tests/signal_simple.rs1
-rw-r--r--tokio-net/tests/signal_twice.rs1
-rw-r--r--tokio-net/tests/tcp_accept.rs1
-rw-r--r--tokio-net/tests/tcp_connect.rs1
-rw-r--r--tokio-net/tests/tcp_echo.rs1
-rw-r--r--tokio-net/tests/tcp_peek.rs1
-rw-r--r--tokio-net/tests/tcp_split.rs2
-rw-r--r--tokio-net/tests/udp.rs1
-rw-r--r--tokio-net/tests/uds_datagram.rs1
-rw-r--r--tokio-net/tests/uds_split.rs1
-rw-r--r--tokio-net/tests/uds_stream.rs1
-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
-rw-r--r--tokio-test/src/clock.rs2
-rw-r--r--tokio-test/tests/block_on.rs1
-rw-r--r--tokio-test/tests/io.rs1
-rw-r--r--tokio-timer/src/interval.rs2
-rw-r--r--tokio-timer/src/lib.rs1
-rw-r--r--tokio-timer/src/timeout.rs4
-rw-r--r--tokio-timer/tests/delay.rs1
-rw-r--r--tokio-timer/tests/hammer.rs1
-rw-r--r--tokio-timer/tests/interval.rs1
-rw-r--r--tokio-timer/tests/timeout.rs1
-rw-r--r--tokio-tls/examples_old/download-rust-lang.rs1
-rw-r--r--tokio-tls/src/lib.rs1
-rw-r--r--tokio-tls/tests/bad.rs1
-rw-r--r--tokio-tls/tests/google.rs1
-rw-r--r--tokio-tls/tests/smoke.rs1
-rw-r--r--tokio/README.md1
-rw-r--r--tokio/examples/chat.rs1
-rw-r--r--tokio/examples/connect.rs1
-rw-r--r--tokio/examples/echo-udp.rs1
-rw-r--r--tokio/examples/echo.rs1
-rw-r--r--tokio/examples/hello_world.rs1
-rw-r--r--tokio/examples/print_each_packet.rs1
-rw-r--r--tokio/examples/proxy.rs1
-rw-r--r--tokio/examples/tinydb.rs1
-rw-r--r--tokio/examples/tinyhttp.rs1
-rw-r--r--tokio/examples/udp-client.rs1
-rw-r--r--tokio/examples/udp-codec.rs1
-rw-r--r--tokio/src/executor.rs2
-rw-r--r--tokio/src/future.rs2
-rw-r--r--tokio/src/lib.rs3
-rw-r--r--tokio/src/runtime/current_thread/mod.rs2
-rw-r--r--tokio/src/runtime/current_thread/runtime.rs2
-rw-r--r--tokio/src/runtime/mod.rs4
-rw-r--r--tokio/src/runtime/threadpool/mod.rs2
-rw-r--r--tokio/src/runtime/threadpool/task_executor.rs2
-rw-r--r--tokio/src/stream.rs2
-rw-r--r--tokio/src/timer.rs4
-rw-r--r--tokio/tests/buffered.rs1
-rw-r--r--tokio/tests/clock.rs1
-rw-r--r--tokio/tests/drop-core.rs1
-rw-r--r--tokio/tests/reactor.rs1
-rw-r--r--tokio/tests/runtime_current_thread.rs1
-rw-r--r--tokio/tests/runtime_threaded.rs1
-rw-r--r--tokio/tests/timer.rs1
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/