Skip to content

Commit

Permalink
chore(lib): remove async_await feature gate (#1909)
Browse files Browse the repository at this point in the history
`async_await` is stabilized in rust-lang/rust#63209.
  • Loading branch information
tesuji authored and seanmonstar committed Aug 21, 2019
1 parent a22dabd commit ae75b3a
Show file tree
Hide file tree
Showing 26 changed files with 1 addition and 28 deletions.
1 change: 0 additions & 1 deletion benches/end_to_end.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#![feature(async_await)]
#![feature(test)]
#![deny(warnings)]

Expand Down
1 change: 0 additions & 1 deletion benches/pipeline.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#![feature(async_await)]
#![feature(test)]
#![deny(warnings)]

Expand Down
1 change: 0 additions & 1 deletion benches/server.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#![feature(async_await)]
#![feature(test)]
#![deny(warnings)]

Expand Down
1 change: 0 additions & 1 deletion examples/client.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#![feature(async_await)]
#![deny(warnings)]
extern crate hyper;
extern crate pretty_env_logger;
Expand Down
1 change: 0 additions & 1 deletion examples/client_json.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#![feature(async_await)]
#![deny(warnings)]
extern crate hyper;
#[macro_use]
Expand Down
1 change: 0 additions & 1 deletion examples/echo.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#![feature(async_await)]
//#![deny(warnings)]

use hyper::{Body, Method, Request, Response, Server, StatusCode};
Expand Down
1 change: 0 additions & 1 deletion examples/hello.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#![feature(async_await)]
#![deny(warnings)]

use hyper::{Body, Request, Response, Server};
Expand Down
1 change: 0 additions & 1 deletion examples/multi_server.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#![feature(async_await)]
#![deny(warnings)]
extern crate hyper;
extern crate pretty_env_logger;
Expand Down
1 change: 0 additions & 1 deletion examples/params.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#![feature(async_await)]
// #![deny(warnings)] // FIXME: https://github.com/rust-lang/rust/issues/62411
extern crate hyper;
extern crate pretty_env_logger;
Expand Down
1 change: 0 additions & 1 deletion examples/proxy.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#![feature(async_await)]
#![deny(warnings)]

use hyper::{Client, Error, Server};
Expand Down
1 change: 0 additions & 1 deletion examples/send_file.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#![feature(async_await)]
#![deny(warnings)]

use tokio::io::AsyncReadExt;
Expand Down
1 change: 0 additions & 1 deletion examples/single_threaded.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#![feature(async_await)]
#![deny(warnings)]

use std::cell::Cell;
Expand Down
1 change: 0 additions & 1 deletion examples/state.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#![feature(async_await)]
#![deny(warnings)]

use std::sync::{Arc, atomic::{AtomicUsize, Ordering}};
Expand Down
1 change: 0 additions & 1 deletion examples/tower_server.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#![feature(async_await)]
#![deny(warnings)]

use hyper::{Body, Request, Response, Server};
Expand Down
1 change: 0 additions & 1 deletion examples/upgrades.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#![feature(async_await)]
#![deny(warnings)]

// Note: `hyper::upgrade` docs link to this upgrade.
Expand Down
1 change: 0 additions & 1 deletion examples/web_api.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#![feature(async_await)]
#![deny(warnings)]

use hyper::{Body, Chunk, Client, Method, Request, Response, Server, StatusCode, header};
Expand Down
1 change: 0 additions & 1 deletion src/client/conn.rs
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,6 @@ where
/// # Example
///
/// ```
/// # #![feature(async_await)]
/// # use http::header::HOST;
/// # use hyper::client::conn::SendRequest;
/// # use hyper::Body;
Expand Down
1 change: 0 additions & 1 deletion src/client/connect/http.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ pub struct HttpConnector<R = GaiResolver> {
/// # Example
///
/// ```
/// # #![feature(async_await)]
/// # async fn doc() -> hyper::Result<()> {
/// use hyper::Uri;
/// use hyper::client::{Client, connect::HttpInfo};
Expand Down
1 change: 0 additions & 1 deletion src/client/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
//! [full client example](https://github.com/hyperium/hyper/blob/master/examples/client.rs).
//!
//! ```
//! # #![feature(async_await)]
//! use hyper::{Client, Uri};
//!
//! # #[cfg(feature = "runtime")]
Expand Down
1 change: 0 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
// XXX NOOOOOOOO
//#![cfg_attr(test, deny(warnings))]
#![allow(warnings)]
#![feature(async_await)]
#![cfg_attr(all(test, feature = "nightly"), feature(test))]

//! # hyper
Expand Down
1 change: 0 additions & 1 deletion src/server/conn.rs
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,6 @@ impl<E> Http<E> {
/// # Example
///
/// ```
/// # #![feature(async_await)]
/// # use hyper::{Body, Request, Response};
/// # use hyper::service::Service;
/// # use hyper::server::conn::Http;
Expand Down
3 changes: 0 additions & 3 deletions src/server/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
//! ## Example
//!
//! ```no_run
//! # #![feature(async_await)]
//! use hyper::{Body, Error, Response, Server};
//! use hyper::service::{make_service_fn, service_fn};
//!
Expand Down Expand Up @@ -164,7 +163,6 @@ where
/// # Example
///
/// ```
/// # #![feature(async_await)]
/// # fn main() {}
/// # #[cfg(feature = "runtime")]
/// # async fn run() {
Expand Down Expand Up @@ -360,7 +358,6 @@ impl<I, E> Builder<I, E> {
/// # Example
///
/// ```
/// # #![feature(async_await)]
/// # #[cfg(not(feature = "runtime"))]
/// # fn main() {}
/// # #[cfg(feature = "runtime")]
Expand Down
1 change: 0 additions & 1 deletion src/service/make_service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,6 @@ where
/// # Example
///
/// ```rust,no_run
/// # #![feature(async_await)]
/// # #[cfg(feature = "runtime")]
/// # #[tokio::main]
/// # async fn main() {
Expand Down
1 change: 0 additions & 1 deletion src/service/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ mod sealed {
/// # Example
///
/// ```rust
/// # #![feature(async_await)]
/// use hyper::{Body, Request, Response, Version};
/// use hyper::service::service_fn;
///
Expand Down
1 change: 0 additions & 1 deletion tests/client.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#![feature(async_await)]
#![deny(warnings)]
extern crate bytes;
extern crate hyper;
Expand Down
2 changes: 1 addition & 1 deletion tests/server.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#![feature(async_await, async_closure)]
#![feature(async_closure)]
#![deny(warnings)]
extern crate http;
extern crate hyper;
Expand Down

0 comments on commit ae75b3a

Please sign in to comment.