Skip to content

Commit

Permalink
chore: bump to newer nightly (#1485)
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e authored and carllerche committed Aug 21, 2019
1 parent 7e7a514 commit a791f4a
Show file tree
Hide file tree
Showing 116 changed files with 3 additions and 254 deletions.
2 changes: 1 addition & 1 deletion .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
- |
Expand Down
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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::*;

Expand Down
2 changes: 1 addition & 1 deletion azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion rust-toolchain
Original file line number Diff line number Diff line change
@@ -1 +1 @@
nightly-2019-08-10
nightly-2019-08-21
2 changes: 0 additions & 2 deletions tokio-codec/src/length_delimited.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@
//! Specifically, given the following:
//!
//! ```
//! #![feature(async_await)]
//!
//! use tokio::codec::{Framed, LengthDelimitedCodec};
//! use tokio::prelude::*;
//!
Expand Down
1 change: 0 additions & 1 deletion tokio-codec/tests/framed.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#![feature(async_await)]
#![warn(rust_2018_idioms)]

use tokio::prelude::*;
Expand Down
1 change: 0 additions & 1 deletion tokio-codec/tests/framed_read.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#![feature(async_await)]
#![warn(rust_2018_idioms)]

use tokio::prelude::*;
Expand Down
6 changes: 0 additions & 6 deletions tokio-executor/src/executor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,6 @@ use std::pin::Pin;
/// # Examples
///
/// ```
/// #![feature(async_await)]
///
/// use tokio_executor::Executor;
///
/// # fn docs(my_executor: &mut dyn Executor) {
Expand Down Expand Up @@ -79,8 +77,6 @@ pub trait Executor {
/// # Examples
///
/// ```
/// #![feature(async_await)]
///
/// use tokio_executor::Executor;
///
/// # fn docs(my_executor: &mut dyn Executor) {
Expand Down Expand Up @@ -110,8 +106,6 @@ pub trait Executor {
/// # Examples
///
/// ```
/// #![feature(async_await)]
///
/// use tokio_executor::Executor;
///
/// # fn docs(my_executor: &mut dyn Executor) {
Expand Down
2 changes: 0 additions & 2 deletions tokio-executor/src/global.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,6 @@ where
/// # Examples
///
/// ```no_run
/// #![feature(async_await)]
///
/// tokio::spawn(async {
/// println!("running on the default executor");
/// });
Expand Down
2 changes: 0 additions & 2 deletions tokio-executor/src/threadpool/blocking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 0 additions & 2 deletions tokio-executor/src/threadpool/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ use std::time::Duration;
/// # Examples
///
/// ```
/// #![feature(async_await)]
///
/// use tokio_executor::threadpool::Builder;
///
/// use std::time::Duration;
Expand Down
2 changes: 0 additions & 2 deletions tokio-executor/src/threadpool/sender.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,6 @@ impl Sender {
/// # Examples
///
/// ```rust
/// #![feature(async_await)]
///
/// use tokio_executor::threadpool::ThreadPool;
///
/// // Create a thread pool with default configuration values
Expand Down
2 changes: 0 additions & 2 deletions tokio-executor/src/threadpool/thread_pool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,6 @@ impl ThreadPool {
/// # Examples
///
/// ```rust
/// #![feature(async_await)]
///
/// use tokio_executor::threadpool::ThreadPool;
///
/// // Create a thread pool with default configuration values
Expand Down
2 changes: 0 additions & 2 deletions tokio-executor/src/typed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ use crate::SpawnError;
///
/// [`spawn`]: TypedExecutor::spawn
/// ```
/// #![feature(async_await)]
///
/// use tokio::executor::TypedExecutor;
/// use tokio::sync::oneshot;
///
Expand Down
1 change: 0 additions & 1 deletion tokio-executor/tests/current_thread.rs
Original file line number Diff line number Diff line change
@@ -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};
Expand Down
1 change: 0 additions & 1 deletion tokio-executor/tests/enter.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#![warn(rust_2018_idioms)]
#![feature(async_await)]

#[test]
fn block_on_ready() {
Expand Down
1 change: 0 additions & 1 deletion tokio-executor/tests/executor.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#![warn(rust_2018_idioms)]
#![feature(async_await)]

use tokio_executor::{self, DefaultExecutor};

Expand Down
1 change: 0 additions & 1 deletion tokio-executor/tests/threadpool.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#![warn(rust_2018_idioms)]
#![feature(async_await)]

use tokio_executor::park::{Park, Unpark};
use tokio_executor::threadpool;
Expand Down
1 change: 0 additions & 1 deletion tokio-executor/tests/threadpool_blocking.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#![warn(rust_2018_idioms)]
#![feature(async_await)]

use tokio_executor::threadpool::*;
use tokio_test::*;
Expand Down
1 change: 0 additions & 1 deletion tokio-executor/tests/threadpool_hammer.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#![warn(rust_2018_idioms)]
#![feature(async_await)]

use tokio_executor::threadpool::*;
use tokio_sync::{mpsc, oneshot};
Expand Down
1 change: 0 additions & 1 deletion tokio-fs/examples/std-echo.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//! Echo everything received on STDIN to STDOUT and STDERR.
#![feature(async_await)]

use futures_util::{FutureExt, SinkExt, StreamExt, TryFutureExt};

Expand Down
24 changes: 0 additions & 24 deletions tokio-fs/src/file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::*;
///
Expand All @@ -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::*;
///
Expand Down Expand Up @@ -83,8 +79,6 @@ impl File {
/// # Examples
///
/// ```no_run
/// #![feature(async_await)]
///
/// use tokio::fs::File;
/// use tokio::prelude::*;
///
Expand Down Expand Up @@ -127,8 +121,6 @@ impl File {
/// # Examples
///
/// ```no_run
/// #![feature(async_await)]
///
/// use tokio::fs::File;
/// use tokio::prelude::*;
///
Expand Down Expand Up @@ -168,8 +160,6 @@ impl File {
/// # Examples
///
/// ```no_run
/// #![feature(async_await)]
///
/// use tokio::fs::File;
/// use tokio::prelude::*;
///
Expand All @@ -196,8 +186,6 @@ impl File {
/// # Examples
///
/// ```no_run
/// #![feature(async_await)]
///
/// use tokio::fs::File;
/// use tokio::prelude::*;
///
Expand All @@ -224,8 +212,6 @@ impl File {
/// # Examples
///
/// ```no_run
/// #![feature(async_await)]
///
/// use tokio::fs::File;
/// use tokio::prelude::*;
///
Expand Down Expand Up @@ -255,8 +241,6 @@ impl File {
/// # Examples
///
/// ```no_run
/// #![feature(async_await)]
///
/// use tokio::fs::File;
/// use tokio::prelude::*;
///
Expand All @@ -276,8 +260,6 @@ impl File {
/// # Examples
///
/// ```no_run
/// #![feature(async_await)]
///
/// use tokio::fs::File;
///
/// # async fn dox() -> std::io::Result<()> {
Expand All @@ -299,8 +281,6 @@ impl File {
/// # Examples
///
/// ```no_run
/// #![feature(async_await)]
///
/// use tokio::fs::File;
///
/// # async fn dox() -> std::io::Result<()> {
Expand Down Expand Up @@ -333,8 +313,6 @@ impl File {
/// # Examples
///
/// ```no_run
/// #![feature(async_await)]
///
/// use tokio::fs::File;
///
/// # async fn dox() -> std::io::Result<()> {
Expand All @@ -360,8 +338,6 @@ impl File {
/// # Examples
///
/// ```no_run
/// #![feature(async_await)]
///
/// use tokio::fs::File;
///
/// # async fn dox() -> std::io::Result<()> {
Expand Down
1 change: 0 additions & 1 deletion tokio-fs/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
//!
Expand Down
2 changes: 0 additions & 2 deletions tokio-fs/src/read.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ use std::{io, path::Path};
/// # Examples
///
/// ```no_run
/// #![feature(async_await)]
///
/// use tokio::fs;
///
/// # async fn dox() -> std::io::Result<()> {
Expand Down
8 changes: 0 additions & 8 deletions tokio-fs/src/read_dir.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,6 @@ impl DirEntry {
/// # Examples
///
/// ```no_run
/// #![feature(async_await)]
///
/// use tokio::fs;
/// use tokio::prelude::*;
///
Expand Down Expand Up @@ -128,8 +126,6 @@ impl DirEntry {
/// # Examples
///
/// ```
/// #![feature(async_await)]
///
/// use tokio::fs;
/// use tokio::prelude::*;
///
Expand Down Expand Up @@ -161,8 +157,6 @@ impl DirEntry {
/// # Examples
///
/// ```
/// #![feature(async_await)]
///
/// use tokio::fs;
/// use tokio::prelude::*;
///
Expand Down Expand Up @@ -200,8 +194,6 @@ impl DirEntry {
/// # Examples
///
/// ```
/// #![feature(async_await)]
///
/// use tokio::fs;
/// use tokio::prelude::*;
///
Expand Down
2 changes: 0 additions & 2 deletions tokio-fs/src/write.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ use std::{io, path::Path};
/// # Examples
///
/// ```no_run
/// #![feature(async_await)]
///
/// use tokio::fs;
///
/// # async fn dox() -> std::io::Result<()> {
Expand Down
1 change: 0 additions & 1 deletion tokio-fs/tests/dir.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#![warn(rust_2018_idioms)]
#![feature(async_await)]

use futures_util::future;
use futures_util::try_stream::TryStreamExt;
Expand Down
1 change: 0 additions & 1 deletion tokio-fs/tests/file.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#![warn(rust_2018_idioms)]
#![feature(async_await)]

use rand::{distributions, thread_rng, Rng};
use std::fs;
Expand Down
1 change: 0 additions & 1 deletion tokio-fs/tests/link.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#![warn(rust_2018_idioms)]
#![feature(async_await)]

use std::fs;
use std::io::prelude::*;
Expand Down
1 change: 0 additions & 1 deletion tokio-io/tests/copy.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#![warn(rust_2018_idioms)]
#![feature(async_await)]

use tokio_io::{AsyncRead, AsyncReadExt};
use tokio_test::assert_ok;
Expand Down
1 change: 0 additions & 1 deletion tokio-io/tests/lines.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#![warn(rust_2018_idioms)]
#![feature(async_await)]

use futures_util::StreamExt;
use tokio_io::AsyncBufReadExt;
Expand Down
1 change: 0 additions & 1 deletion tokio-io/tests/read.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#![warn(rust_2018_idioms)]
#![feature(async_await)]

use tokio_io::{AsyncRead, AsyncReadExt};
use tokio_test::assert_ok;
Expand Down
1 change: 0 additions & 1 deletion tokio-io/tests/read_exact.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#![warn(rust_2018_idioms)]
#![feature(async_await)]

use tokio_io::AsyncReadExt;
use tokio_test::assert_ok;
Expand Down
1 change: 0 additions & 1 deletion tokio-io/tests/read_line.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#![warn(rust_2018_idioms)]
#![feature(async_await)]

use std::io::Cursor;
use tokio_io::AsyncBufReadExt;
Expand Down
1 change: 0 additions & 1 deletion tokio-io/tests/read_to_end.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#![warn(rust_2018_idioms)]
#![feature(async_await)]

use tokio_io::AsyncReadExt;
use tokio_test::assert_ok;
Expand Down
Loading

0 comments on commit a791f4a

Please sign in to comment.