diff --git a/contrib/lib/src/databases.rs b/contrib/lib/src/databases.rs index 935421a6..33e3560d 100644 --- a/contrib/lib/src/databases.rs +++ b/contrib/lib/src/databases.rs @@ -50,7 +50,7 @@ //! In your application's source code, one-time: //! //! ```rust -//! #![feature(proc_macro_hygiene, async_await)] +//! #![feature(proc_macro_hygiene)] //! //! #[macro_use] extern crate rocket; //! #[macro_use] extern crate rocket_contrib; @@ -73,7 +73,7 @@ //! Whenever a connection to the database is needed: //! //! ```rust -//! # #![feature(proc_macro_hygiene, async_await)] +//! # #![feature(proc_macro_hygiene)] //! # //! # #[macro_use] extern crate rocket; //! # #[macro_use] extern crate rocket_contrib; @@ -289,7 +289,7 @@ //! connection to a given database: //! //! ```rust -//! # #![feature(proc_macro_hygiene, async_await)] +//! # #![feature(proc_macro_hygiene)] //! # //! # #[macro_use] extern crate rocket; //! # #[macro_use] extern crate rocket_contrib; @@ -311,7 +311,7 @@ //! connection type: //! //! ```rust -//! # #![feature(proc_macro_hygiene, async_await)] +//! # #![feature(proc_macro_hygiene)] //! # //! # #[macro_use] extern crate rocket; //! # #[macro_use] extern crate rocket_contrib; diff --git a/contrib/lib/src/json.rs b/contrib/lib/src/json.rs index b7b291e2..1ca40c92 100644 --- a/contrib/lib/src/json.rs +++ b/contrib/lib/src/json.rs @@ -44,7 +44,7 @@ pub use serde_json::{json_internal, json_internal_vec}; /// or from [`serde`]. The data is parsed from the HTTP request body. /// /// ```rust -/// # #![feature(proc_macro_hygiene, async_await)] +/// # #![feature(proc_macro_hygiene)] /// # #[macro_use] extern crate rocket; /// # extern crate rocket_contrib; /// # type User = usize; @@ -68,7 +68,7 @@ pub use serde_json::{json_internal, json_internal_vec}; /// set to `application/json` automatically. /// /// ```rust -/// # #![feature(proc_macro_hygiene, async_await)] +/// # #![feature(proc_macro_hygiene)] /// # #[macro_use] extern crate rocket; /// # extern crate rocket_contrib; /// # type User = usize; @@ -219,7 +219,7 @@ impl DerefMut for Json { /// fashion during request handling. This looks something like: /// /// ```rust -/// # #![feature(proc_macro_hygiene, async_await)] +/// # #![feature(proc_macro_hygiene)] /// # #[macro_use] extern crate rocket; /// # #[macro_use] extern crate rocket_contrib; /// use rocket_contrib::json::JsonValue; @@ -314,7 +314,7 @@ impl<'r> Responder<'r> for JsonValue { /// value created with this macro can be returned from a handler as follows: /// /// ```rust -/// # #![feature(proc_macro_hygiene, async_await)] +/// # #![feature(proc_macro_hygiene)] /// # #[macro_use] extern crate rocket; /// # #[macro_use] extern crate rocket_contrib; /// use rocket_contrib::json::JsonValue; diff --git a/contrib/lib/src/lib.rs b/contrib/lib/src/lib.rs index a60e3bfe..dba2846d 100644 --- a/contrib/lib/src/lib.rs +++ b/contrib/lib/src/lib.rs @@ -1,4 +1,3 @@ -#![feature(async_await)] #![doc(html_root_url = "https://api.rocket.rs/v0.5")] #![doc(html_favicon_url = "https://rocket.rs/images/favicon.ico")] #![doc(html_logo_url = "https://rocket.rs/images/logo-boxed.png")] diff --git a/contrib/lib/src/msgpack.rs b/contrib/lib/src/msgpack.rs index 7a87f6f4..d8a02639 100644 --- a/contrib/lib/src/msgpack.rs +++ b/contrib/lib/src/msgpack.rs @@ -42,7 +42,7 @@ pub use rmp_serde::decode::Error; /// request body. /// /// ```rust -/// # #![feature(proc_macro_hygiene, async_await)] +/// # #![feature(proc_macro_hygiene)] /// # #[macro_use] extern crate rocket; /// # extern crate rocket_contrib; /// # type User = usize; @@ -66,7 +66,7 @@ pub use rmp_serde::decode::Error; /// response is set to `application/msgpack` automatically. /// /// ```rust -/// # #![feature(proc_macro_hygiene, async_await)] +/// # #![feature(proc_macro_hygiene)] /// # #[macro_use] extern crate rocket; /// # extern crate rocket_contrib; /// # type User = usize; diff --git a/contrib/lib/src/templates/metadata.rs b/contrib/lib/src/templates/metadata.rs index 4503fa3e..b60bb673 100644 --- a/contrib/lib/src/templates/metadata.rs +++ b/contrib/lib/src/templates/metadata.rs @@ -12,7 +12,7 @@ use crate::templates::ContextManager; /// used as a request guard in any request handler. /// /// ```rust -/// # #![feature(proc_macro_hygiene, async_await)] +/// # #![feature(proc_macro_hygiene)] /// # #[macro_use] extern crate rocket; /// # #[macro_use] extern crate rocket_contrib; /// use rocket_contrib::templates::{Template, Metadata}; @@ -46,7 +46,7 @@ impl Metadata<'_> { /// # Example /// /// ```rust - /// # #![feature(proc_macro_hygiene, async_await)] + /// # #![feature(proc_macro_hygiene)] /// # #[macro_use] extern crate rocket; /// # extern crate rocket_contrib; /// # @@ -67,7 +67,7 @@ impl Metadata<'_> { /// # Example /// /// ```rust - /// # #![feature(proc_macro_hygiene, async_await)] + /// # #![feature(proc_macro_hygiene)] /// # #[macro_use] extern crate rocket; /// # extern crate rocket_contrib; /// # diff --git a/contrib/lib/src/templates/mod.rs b/contrib/lib/src/templates/mod.rs index ef18f1e1..1876c98e 100644 --- a/contrib/lib/src/templates/mod.rs +++ b/contrib/lib/src/templates/mod.rs @@ -37,7 +37,7 @@ //! of the template file minus the last two extensions, from a handler. //! //! ```rust -//! # #![feature(proc_macro_hygiene, async_await)] +//! # #![feature(proc_macro_hygiene)] //! # #[macro_use] extern crate rocket; //! # #[macro_use] extern crate rocket_contrib; //! # fn context() { } @@ -180,7 +180,7 @@ const DEFAULT_TEMPLATE_DIR: &str = "templates"; /// returned from a request handler directly: /// /// ```rust -/// # #![feature(proc_macro_hygiene, async_await)] +/// # #![feature(proc_macro_hygiene)] /// # #[macro_use] extern crate rocket; /// # #[macro_use] extern crate rocket_contrib; /// # fn context() { } diff --git a/contrib/lib/src/uuid.rs b/contrib/lib/src/uuid.rs index 8904c991..d415cc66 100644 --- a/contrib/lib/src/uuid.rs +++ b/contrib/lib/src/uuid.rs @@ -42,7 +42,7 @@ type ParseError = ::Err; /// You can use the `Uuid` type directly as a target of a dynamic parameter: /// /// ```rust -/// # #![feature(proc_macro_hygiene, async_await)] +/// # #![feature(proc_macro_hygiene)] /// # #[macro_use] extern crate rocket; /// # #[macro_use] extern crate rocket_contrib; /// use rocket_contrib::uuid::Uuid; @@ -56,7 +56,7 @@ type ParseError = ::Err; /// You can also use the `Uuid` as a form value, including in query strings: /// /// ```rust -/// # #![feature(proc_macro_hygiene, async_await)] +/// # #![feature(proc_macro_hygiene)] /// # #[macro_use] extern crate rocket; /// # #[macro_use] extern crate rocket_contrib; /// use rocket_contrib::uuid::Uuid; diff --git a/contrib/lib/tests/compress_responder.rs b/contrib/lib/tests/compress_responder.rs index fdef99c0..2d317ddf 100644 --- a/contrib/lib/tests/compress_responder.rs +++ b/contrib/lib/tests/compress_responder.rs @@ -1,4 +1,4 @@ -#![feature(proc_macro_hygiene, async_await)] +#![feature(proc_macro_hygiene)] #[macro_use] #[cfg(all(feature = "brotli_compression", feature = "gzip_compression"))] diff --git a/contrib/lib/tests/compression_fairing.rs b/contrib/lib/tests/compression_fairing.rs index 491957a9..fa09188d 100644 --- a/contrib/lib/tests/compression_fairing.rs +++ b/contrib/lib/tests/compression_fairing.rs @@ -1,4 +1,4 @@ -#![feature(proc_macro_hygiene, async_await)] +#![feature(proc_macro_hygiene)] #[macro_use] #[cfg(all(feature = "brotli_compression", feature = "gzip_compression"))] diff --git a/contrib/lib/tests/helmet.rs b/contrib/lib/tests/helmet.rs index 2b0f053e..7ece1df7 100644 --- a/contrib/lib/tests/helmet.rs +++ b/contrib/lib/tests/helmet.rs @@ -1,4 +1,4 @@ -#![feature(proc_macro_hygiene, async_await)] +#![feature(proc_macro_hygiene)] #[macro_use] #[cfg(feature = "helmet")] diff --git a/contrib/lib/tests/static_files.rs b/contrib/lib/tests/static_files.rs index 1986c9c2..c9302987 100644 --- a/contrib/lib/tests/static_files.rs +++ b/contrib/lib/tests/static_files.rs @@ -1,4 +1,4 @@ -#![feature(proc_macro_hygiene, async_await)] +#![feature(proc_macro_hygiene)] #[cfg(feature = "serve")] mod static_tests { diff --git a/contrib/lib/tests/templates.rs b/contrib/lib/tests/templates.rs index 371adfd5..25c62f90 100644 --- a/contrib/lib/tests/templates.rs +++ b/contrib/lib/tests/templates.rs @@ -1,4 +1,4 @@ -#![feature(proc_macro_hygiene, async_await)] +#![feature(proc_macro_hygiene)] #[cfg(feature = "templates")] #[macro_use] extern crate rocket; diff --git a/core/codegen/src/lib.rs b/core/codegen/src/lib.rs index 199292f0..693f0225 100644 --- a/core/codegen/src/lib.rs +++ b/core/codegen/src/lib.rs @@ -1,5 +1,4 @@ #![feature(proc_macro_diagnostic, proc_macro_span)] -#![feature(async_await)] #![recursion_limit="128"] #![doc(html_root_url = "https://api.rocket.rs/v0.5")] @@ -30,7 +29,7 @@ //! crate root: //! //! ```rust -//! #![feature(proc_macro_hygiene, async_await)] +//! #![feature(proc_macro_hygiene)] //! //! #[macro_use] extern crate rocket; //! # #[get("/")] fn hello() { } @@ -40,7 +39,7 @@ //! Or, alternatively, selectively import from the top-level scope: //! //! ```rust -//! #![feature(proc_macro_hygiene, async_await)] +//! #![feature(proc_macro_hygiene)] //! # extern crate rocket; //! //! use rocket::{get, routes}; @@ -147,7 +146,7 @@ macro_rules! route_attribute { /// functions: /// /// ```rust - /// # #![feature(proc_macro_hygiene, async_await)] + /// # #![feature(proc_macro_hygiene)] /// # #[macro_use] extern crate rocket; /// # /// #[get("/")] @@ -170,7 +169,7 @@ macro_rules! route_attribute { /// specified: /// /// ```rust - /// # #![feature(proc_macro_hygiene, async_await)] + /// # #![feature(proc_macro_hygiene)] /// # #[macro_use] extern crate rocket; /// # /// #[route(GET, path = "/")] @@ -231,7 +230,7 @@ macro_rules! route_attribute { /// the arguments `foo`, `baz`, `msg`, `rest`, and `form`: /// /// ```rust - /// # #![feature(proc_macro_hygiene, async_await)] + /// # #![feature(proc_macro_hygiene)] /// # #[macro_use] extern crate rocket; /// # use rocket::request::Form; /// # use std::path::PathBuf; @@ -343,7 +342,7 @@ route_attribute!(options => Method::Options); /// This attribute can only be applied to free functions: /// /// ```rust -/// # #![feature(proc_macro_hygiene, async_await)] +/// # #![feature(proc_macro_hygiene)] /// # #[macro_use] extern crate rocket; /// # /// use rocket::Request; @@ -755,7 +754,7 @@ pub fn derive_uri_display_path(input: TokenStream) -> TokenStream { /// corresponding [`Route`] structures. For example, given the following routes: /// /// ```rust -/// # #![feature(proc_macro_hygiene, async_await)] +/// # #![feature(proc_macro_hygiene)] /// # #[macro_use] extern crate rocket; /// # /// #[get("/")] @@ -770,7 +769,7 @@ pub fn derive_uri_display_path(input: TokenStream) -> TokenStream { /// The `routes!` macro can be used as: /// /// ```rust -/// # #![feature(proc_macro_hygiene, async_await)] +/// # #![feature(proc_macro_hygiene)] /// # #[macro_use] extern crate rocket; /// # /// # use rocket::http::Method; @@ -814,7 +813,7 @@ pub fn routes(input: TokenStream) -> TokenStream { /// catchers: /// /// ```rust -/// # #![feature(proc_macro_hygiene, async_await)] +/// # #![feature(proc_macro_hygiene)] /// # #[macro_use] extern crate rocket; /// # /// #[catch(404)] @@ -829,7 +828,7 @@ pub fn routes(input: TokenStream) -> TokenStream { /// The `catchers!` macro can be used as: /// /// ```rust -/// # #![feature(proc_macro_hygiene, async_await)] +/// # #![feature(proc_macro_hygiene)] /// # #[macro_use] extern crate rocket; /// # /// # #[catch(404)] fn not_found() { /* .. */ } @@ -871,7 +870,7 @@ pub fn catchers(input: TokenStream) -> TokenStream { /// For example, for the following route: /// /// ```rust -/// # #![feature(proc_macro_hygiene, async_await)] +/// # #![feature(proc_macro_hygiene)] /// # #[macro_use] extern crate rocket; /// # /// #[get("/person/?")] @@ -885,7 +884,7 @@ pub fn catchers(input: TokenStream) -> TokenStream { /// A URI can be created as follows: /// /// ```rust -/// # #![feature(proc_macro_hygiene, async_await)] +/// # #![feature(proc_macro_hygiene)] /// # #[macro_use] extern crate rocket; /// # /// # #[get("/person/?")] diff --git a/core/codegen/tests/expansion.rs b/core/codegen/tests/expansion.rs index d5d4f00e..aaaf2fcd 100644 --- a/core/codegen/tests/expansion.rs +++ b/core/codegen/tests/expansion.rs @@ -1,4 +1,4 @@ -#![feature(proc_macro_hygiene, async_await)] +#![feature(proc_macro_hygiene)] #[macro_use] extern crate rocket; diff --git a/core/codegen/tests/responder.rs b/core/codegen/tests/responder.rs index 9608faf0..0df09bc6 100644 --- a/core/codegen/tests/responder.rs +++ b/core/codegen/tests/responder.rs @@ -1,4 +1,4 @@ -#![feature(proc_macro_hygiene, async_await)] +#![feature(proc_macro_hygiene)] use rocket::local::Client; use rocket::response::Responder; diff --git a/core/codegen/tests/route-data.rs b/core/codegen/tests/route-data.rs index 8a9cbc6f..e15f4bb5 100644 --- a/core/codegen/tests/route-data.rs +++ b/core/codegen/tests/route-data.rs @@ -1,4 +1,4 @@ -#![feature(proc_macro_hygiene, async_await)] +#![feature(proc_macro_hygiene)] #[macro_use] extern crate rocket; diff --git a/core/codegen/tests/route-format.rs b/core/codegen/tests/route-format.rs index d29e77cb..32bb935c 100644 --- a/core/codegen/tests/route-format.rs +++ b/core/codegen/tests/route-format.rs @@ -1,4 +1,4 @@ -#![feature(proc_macro_hygiene, async_await)] +#![feature(proc_macro_hygiene)] #[macro_use] extern crate rocket; diff --git a/core/codegen/tests/route-ranking.rs b/core/codegen/tests/route-ranking.rs index 5fcc364b..a85ee24c 100644 --- a/core/codegen/tests/route-ranking.rs +++ b/core/codegen/tests/route-ranking.rs @@ -1,4 +1,4 @@ -#![feature(proc_macro_hygiene, async_await)] +#![feature(proc_macro_hygiene)] #[macro_use] extern crate rocket; diff --git a/core/codegen/tests/route.rs b/core/codegen/tests/route.rs index 8afcea85..bdc92e25 100644 --- a/core/codegen/tests/route.rs +++ b/core/codegen/tests/route.rs @@ -1,4 +1,4 @@ -#![feature(proc_macro_hygiene, async_await)] +#![feature(proc_macro_hygiene)] // Rocket sometimes generates mangled identifiers that activate the // non_snake_case lint. We deny the lint in this test to ensure that diff --git a/core/codegen/tests/typed-uris.rs b/core/codegen/tests/typed-uris.rs index 47d313bc..7f366e7e 100644 --- a/core/codegen/tests/typed-uris.rs +++ b/core/codegen/tests/typed-uris.rs @@ -1,4 +1,4 @@ -#![feature(proc_macro_hygiene, async_await)] +#![feature(proc_macro_hygiene)] #![allow(dead_code, unused_variables)] #[macro_use] extern crate rocket; diff --git a/core/codegen/tests/ui-fail/catchers.rs b/core/codegen/tests/ui-fail/catchers.rs index 0168f3cd..627bf0c2 100644 --- a/core/codegen/tests/ui-fail/catchers.rs +++ b/core/codegen/tests/ui-fail/catchers.rs @@ -1,4 +1,4 @@ -#![feature(proc_macro_hygiene, async_await)] +#![feature(proc_macro_hygiene)] #[macro_use] extern crate rocket; diff --git a/core/codegen/tests/ui-fail/route-attribute-general-syntax.rs b/core/codegen/tests/ui-fail/route-attribute-general-syntax.rs index 6f3dfda1..8457f96b 100644 --- a/core/codegen/tests/ui-fail/route-attribute-general-syntax.rs +++ b/core/codegen/tests/ui-fail/route-attribute-general-syntax.rs @@ -1,4 +1,4 @@ -#![feature(proc_macro_hygiene, async_await)] +#![feature(proc_macro_hygiene)] #[macro_use] extern crate rocket; diff --git a/core/codegen/tests/ui-fail/route-path-bad-syntax.rs b/core/codegen/tests/ui-fail/route-path-bad-syntax.rs index 1f79e386..ab6a8a4a 100644 --- a/core/codegen/tests/ui-fail/route-path-bad-syntax.rs +++ b/core/codegen/tests/ui-fail/route-path-bad-syntax.rs @@ -1,4 +1,4 @@ -#![feature(proc_macro_hygiene, async_await)] +#![feature(proc_macro_hygiene)] #[macro_use] extern crate rocket; diff --git a/core/codegen/tests/ui-fail/route-type-errors.rs b/core/codegen/tests/ui-fail/route-type-errors.rs index 6cedb32f..f97645ae 100644 --- a/core/codegen/tests/ui-fail/route-type-errors.rs +++ b/core/codegen/tests/ui-fail/route-type-errors.rs @@ -1,4 +1,4 @@ -#![feature(proc_macro_hygiene, async_await)] +#![feature(proc_macro_hygiene)] #[macro_use] extern crate rocket; diff --git a/core/codegen/tests/ui-fail/route-warnings.rs b/core/codegen/tests/ui-fail/route-warnings.rs index 57e3c93d..9111a216 100644 --- a/core/codegen/tests/ui-fail/route-warnings.rs +++ b/core/codegen/tests/ui-fail/route-warnings.rs @@ -1,6 +1,6 @@ // must-compile-successfully -#![feature(proc_macro_hygiene, async_await)] +#![feature(proc_macro_hygiene)] #[macro_use] extern crate rocket; diff --git a/core/codegen/tests/ui-fail/routes.rs b/core/codegen/tests/ui-fail/routes.rs index 75952d25..954293a5 100644 --- a/core/codegen/tests/ui-fail/routes.rs +++ b/core/codegen/tests/ui-fail/routes.rs @@ -1,4 +1,4 @@ -#![feature(proc_macro_hygiene, async_await)] +#![feature(proc_macro_hygiene)] #[macro_use] extern crate rocket; diff --git a/core/codegen/tests/ui-fail/typed-uri-bad-type.rs b/core/codegen/tests/ui-fail/typed-uri-bad-type.rs index caf45f7f..da02a35b 100644 --- a/core/codegen/tests/ui-fail/typed-uri-bad-type.rs +++ b/core/codegen/tests/ui-fail/typed-uri-bad-type.rs @@ -2,7 +2,7 @@ // normalize-stderr-test: "and \d+ others" -> "and $$N others" // normalize-stderr-test: "::: (.*)/core/http" -> "::: $$ROCKET/core/http" -#![feature(proc_macro_hygiene, async_await)] +#![feature(proc_macro_hygiene)] #[macro_use] extern crate rocket; diff --git a/core/codegen/tests/ui-fail/typed-uris-bad-params.rs b/core/codegen/tests/ui-fail/typed-uris-bad-params.rs index 2bde677c..2baf5be9 100644 --- a/core/codegen/tests/ui-fail/typed-uris-bad-params.rs +++ b/core/codegen/tests/ui-fail/typed-uris-bad-params.rs @@ -1,4 +1,4 @@ -#![feature(proc_macro_hygiene, async_await)] +#![feature(proc_macro_hygiene)] #[macro_use] extern crate rocket; diff --git a/core/codegen/tests/ui-fail/typed-uris-invalid-syntax.rs b/core/codegen/tests/ui-fail/typed-uris-invalid-syntax.rs index 34c71811..0c22cc17 100644 --- a/core/codegen/tests/ui-fail/typed-uris-invalid-syntax.rs +++ b/core/codegen/tests/ui-fail/typed-uris-invalid-syntax.rs @@ -1,4 +1,4 @@ -#![feature(proc_macro_hygiene, async_await)] +#![feature(proc_macro_hygiene)] #[macro_use] extern crate rocket; diff --git a/core/codegen/tests/uri_display.rs b/core/codegen/tests/uri_display.rs index bcd112d4..b51d716a 100644 --- a/core/codegen/tests/uri_display.rs +++ b/core/codegen/tests/uri_display.rs @@ -1,4 +1,4 @@ -#![feature(proc_macro_hygiene, async_await)] +#![feature(proc_macro_hygiene)] #[macro_use] extern crate rocket; diff --git a/core/http/src/cookies.rs b/core/http/src/cookies.rs index 902b858c..73eb65a1 100644 --- a/core/http/src/cookies.rs +++ b/core/http/src/cookies.rs @@ -54,7 +54,7 @@ mod key { /// a handler to retrieve the value of a "message" cookie. /// /// ```rust -/// # #![feature(proc_macro_hygiene, async_await)] +/// # #![feature(proc_macro_hygiene)] /// # #[macro_use] extern crate rocket; /// use rocket::http::Cookies; /// @@ -74,7 +74,7 @@ mod key { /// [private cookie]: Cookies::add_private() /// /// ```rust -/// # #![feature(proc_macro_hygiene, async_await)] +/// # #![feature(proc_macro_hygiene)] /// # #[macro_use] extern crate rocket; /// # /// use rocket::http::Status; diff --git a/core/http/src/lib.rs b/core/http/src/lib.rs index 37f5d7e6..c27ed519 100644 --- a/core/http/src/lib.rs +++ b/core/http/src/lib.rs @@ -1,4 +1,4 @@ -#![feature(proc_macro_hygiene, async_await)] +#![feature(proc_macro_hygiene)] #![recursion_limit="512"] #![warn(rust_2018_idioms)] diff --git a/core/http/src/uri/from_uri_param.rs b/core/http/src/uri/from_uri_param.rs index a46356cc..6ad63bc6 100644 --- a/core/http/src/uri/from_uri_param.rs +++ b/core/http/src/uri/from_uri_param.rs @@ -155,7 +155,7 @@ use crate::uri::{self, UriPart, UriDisplay}; /// With these implementations, the following typechecks: /// /// ```rust -/// # #![feature(proc_macro_hygiene, async_await)] +/// # #![feature(proc_macro_hygiene)] /// # #[macro_use] extern crate rocket; /// # use std::fmt; /// use rocket::http::RawStr; diff --git a/core/http/src/uri/uri_display.rs b/core/http/src/uri/uri_display.rs index 165b712a..d75c8dfc 100644 --- a/core/http/src/uri/uri_display.rs +++ b/core/http/src/uri/uri_display.rs @@ -61,7 +61,7 @@ use crate::uri::{Uri, UriPart, Path, Query, Formatter}; /// the following route: /// /// ```rust -/// # #![feature(proc_macro_hygiene, async_await)] +/// # #![feature(proc_macro_hygiene)] /// # #[macro_use] extern crate rocket; /// #[get("/item/?")] /// fn get_item(id: i32, track: Option) { /* .. */ } @@ -70,7 +70,7 @@ use crate::uri::{Uri, UriPart, Path, Query, Formatter}; /// A URI for this route can be generated as follows: /// /// ```rust -/// # #![feature(proc_macro_hygiene, async_await)] +/// # #![feature(proc_macro_hygiene)] /// # #[macro_use] extern crate rocket; /// # type T = (); /// # #[get("/item/?")] @@ -236,7 +236,7 @@ use crate::uri::{Uri, UriPart, Path, Query, Formatter}; /// `UriDisplay` implementation is required. /// /// ```rust -/// # #![feature(proc_macro_hygiene, async_await)] +/// # #![feature(proc_macro_hygiene)] /// # #[macro_use] extern crate rocket; /// use rocket::http::RawStr; /// use rocket::request::FromParam; @@ -434,7 +434,7 @@ impl, E> UriDisplay for Result { /// trait for the corresponding `UriPart`. /// /// ```rust -/// # #![feature(proc_macro_hygiene, async_await)] +/// # #![feature(proc_macro_hygiene)] /// # #[macro_use] extern crate rocket; /// #[get("/item/?")] /// fn get_item(id: i32, track: Option) { /* .. */ } diff --git a/core/lib/build.rs b/core/lib/build.rs index b6ca3322..e03676c2 100644 --- a/core/lib/build.rs +++ b/core/lib/build.rs @@ -3,8 +3,8 @@ use yansi::{Paint, Color::{Red, Yellow, Blue}}; // Specifies the minimum nightly version needed to compile Rocket. -const MIN_DATE: &'static str = "2019-07-03"; -const MIN_VERSION: &'static str = "1.37.0-nightly"; +const MIN_DATE: &'static str = "2019-08-20"; +const MIN_VERSION: &'static str = "1.39.0-nightly"; macro_rules! err { ($version:expr, $date:expr, $msg:expr) => ( diff --git a/core/lib/src/catcher.rs b/core/lib/src/catcher.rs index 4b78edf5..43a01bea 100644 --- a/core/lib/src/catcher.rs +++ b/core/lib/src/catcher.rs @@ -36,7 +36,7 @@ use yansi::Color::*; /// declared using the `catch` decorator, as follows: /// /// ```rust -/// #![feature(proc_macro_hygiene, async_await)] +/// #![feature(proc_macro_hygiene)] /// /// #[macro_use] extern crate rocket; /// diff --git a/core/lib/src/data/data.rs b/core/lib/src/data/data.rs index 8a42b6a3..8fd5f6cc 100644 --- a/core/lib/src/data/data.rs +++ b/core/lib/src/data/data.rs @@ -22,7 +22,7 @@ const PEEK_BYTES: usize = 512; /// specifying the `data = ""` route parameter as follows: /// /// ```rust -/// # #![feature(proc_macro_hygiene, async_await)] +/// # #![feature(proc_macro_hygiene)] /// # #[macro_use] extern crate rocket; /// # type DataGuard = rocket::data::Data; /// #[post("/submit", data = "")] @@ -133,7 +133,6 @@ impl Data { /// # Example /// /// ```rust - /// # #![feature(async_await)] /// use std::io; /// use futures::io::AllowStdIo; /// use rocket::Data; @@ -161,7 +160,6 @@ impl Data { /// # Example /// /// ```rust - /// # #![feature(async_await)] /// use std::io; /// use rocket::Data; /// diff --git a/core/lib/src/data/from_data.rs b/core/lib/src/data/from_data.rs index 0435586a..90d76c5b 100644 --- a/core/lib/src/data/from_data.rs +++ b/core/lib/src/data/from_data.rs @@ -142,7 +142,7 @@ pub type FromDataFuture<'a, T, E> = Pin> + /// if the guard returns successfully. /// /// ```rust -/// # #![feature(proc_macro_hygiene, async_await)] +/// # #![feature(proc_macro_hygiene)] /// # #[macro_use] extern crate rocket; /// # type DataGuard = rocket::data::Data; /// #[post("/submit", data = "")] @@ -188,7 +188,7 @@ pub type FromDataFuture<'a, T, E> = Pin> + /// `String` (an `&str`). /// /// ```rust -/// # #![feature(proc_macro_hygiene, async_await)] +/// # #![feature(proc_macro_hygiene)] /// # #[macro_use] extern crate rocket; /// # #[derive(Debug)] /// # struct Name<'a> { first: &'a str, last: &'a str, } @@ -443,7 +443,7 @@ impl<'a> FromData<'a> for Data { /// that you can retrieve it directly from a client's request body: /// /// ```rust -/// # #![feature(proc_macro_hygiene, async_await)] +/// # #![feature(proc_macro_hygiene)] /// # #[macro_use] extern crate rocket; /// # type Person = rocket::data::Data; /// #[post("/person", data = "")] @@ -455,7 +455,7 @@ impl<'a> FromData<'a> for Data { /// A `FromDataSimple` implementation allowing this looks like: /// /// ```rust -/// # #![feature(proc_macro_hygiene, async_await)] +/// # #![feature(proc_macro_hygiene)] /// # #[macro_use] extern crate rocket; /// # /// # #[derive(Debug)] diff --git a/core/lib/src/fairing/ad_hoc.rs b/core/lib/src/fairing/ad_hoc.rs index a2b9f1e2..eb4596d4 100644 --- a/core/lib/src/fairing/ad_hoc.rs +++ b/core/lib/src/fairing/ad_hoc.rs @@ -117,7 +117,6 @@ impl AdHoc { /// # Example /// /// ```rust - /// # #![feature(async_await)] /// use rocket::fairing::AdHoc; /// /// // The no-op response fairing. diff --git a/core/lib/src/fairing/mod.rs b/core/lib/src/fairing/mod.rs index dbde25e5..717db7d7 100644 --- a/core/lib/src/fairing/mod.rs +++ b/core/lib/src/fairing/mod.rs @@ -20,7 +20,6 @@ //! write: //! //! ```rust -//! # #![feature(async_await)] //! # use rocket::fairing::AdHoc; //! # let req_fairing = AdHoc::on_request("Request", |_, _| ()); //! # let res_fairing = AdHoc::on_response("Response", |_, _| Box::pin(async move {})); @@ -207,7 +206,6 @@ pub use self::info_kind::{Info, Kind}; /// path. /// /// ```rust -/// # #![feature(async_await)] /// use std::future::Future; /// use std::io::Cursor; /// use std::pin::Pin; @@ -271,7 +269,6 @@ pub use self::info_kind::{Info, Kind}; /// request guard. /// /// ```rust -/// # #![feature(async_await)] /// # use std::future::Future; /// # use std::pin::Pin; /// # use std::time::{Duration, SystemTime}; diff --git a/core/lib/src/handler.rs b/core/lib/src/handler.rs index 08bdee31..5d7df23e 100644 --- a/core/lib/src/handler.rs +++ b/core/lib/src/handler.rs @@ -42,7 +42,6 @@ pub type HandlerFuture<'r> = std::pin::Pin> /// Such a handler might be written and used as follows: /// /// ```rust -/// # #![feature(async_await)] /// # #[derive(Copy, Clone)] enum Kind { Simple, Intermediate, Complex, } /// use rocket::{Request, Data, Route, http::Method}; /// use rocket::handler::{self, Handler, Outcome, HandlerFuture}; @@ -92,7 +91,7 @@ pub type HandlerFuture<'r> = std::pin::Pin> /// managed state and a static route, as follows: /// /// ```rust -/// # #![feature(proc_macro_hygiene, async_await)] +/// # #![feature(proc_macro_hygiene)] /// # #[macro_use] extern crate rocket; /// # /// # #[derive(Copy, Clone)] @@ -199,7 +198,6 @@ impl<'r> Outcome<'r> { /// # Example /// /// ```rust - /// # #![feature(async_await)] /// use rocket::{Request, Data}; /// use rocket::handler::{Outcome, HandlerFuture}; /// @@ -255,7 +253,6 @@ impl<'r> Outcome<'r> { /// # Example /// /// ```rust - /// # #![feature(async_await)] /// use rocket::{Request, Data}; /// use rocket::handler::{Outcome, HandlerFuture}; /// @@ -284,7 +281,6 @@ impl<'r> Outcome<'r> { /// # Example /// /// ```rust - /// # #![feature(async_await)] /// use rocket::{Request, Data}; /// use rocket::handler::{Outcome, HandlerFuture}; /// use rocket::http::Status; @@ -309,7 +305,6 @@ impl<'r> Outcome<'r> { /// # Example /// /// ```rust - /// # #![feature(async_await)] /// use rocket::{Request, Data}; /// use rocket::handler::{Outcome, HandlerFuture}; /// diff --git a/core/lib/src/lib.rs b/core/lib/src/lib.rs index 4d665aa0..7414095c 100644 --- a/core/lib/src/lib.rs +++ b/core/lib/src/lib.rs @@ -1,5 +1,4 @@ #![feature(proc_macro_hygiene)] -#![feature(async_await)] #![recursion_limit="256"] @@ -48,7 +47,7 @@ //! Then, add the following to the top of your `main.rs` file: //! //! ```rust -//! #![feature(proc_macro_hygiene, async_await)] +//! #![feature(proc_macro_hygiene)] //! //! #[macro_use] extern crate rocket; //! # #[get("/")] fn hello() { } @@ -59,7 +58,7 @@ //! write Rocket applications. Here's a simple example to get you started: //! //! ```rust -//! #![feature(proc_macro_hygiene, async_await)] +//! #![feature(proc_macro_hygiene)] //! //! #[macro_use] extern crate rocket; //! diff --git a/core/lib/src/local/mod.rs b/core/lib/src/local/mod.rs index de6938cf..676f8680 100644 --- a/core/lib/src/local/mod.rs +++ b/core/lib/src/local/mod.rs @@ -67,7 +67,7 @@ //! consider the following complete "Hello, world!" application, with testing. //! //! ```rust -//! #![feature(proc_macro_hygiene, async_await)] +//! #![feature(proc_macro_hygiene)] //! //! #[macro_use] extern crate rocket; //! diff --git a/core/lib/src/request/form/error.rs b/core/lib/src/request/form/error.rs index fdd1b3fc..086be805 100644 --- a/core/lib/src/request/form/error.rs +++ b/core/lib/src/request/form/error.rs @@ -50,7 +50,7 @@ pub enum FormDataError<'f, E> { /// # Example /// /// ```rust -/// # #![feature(proc_macro_hygiene, async_await)] +/// # #![feature(proc_macro_hygiene)] /// # #[macro_use] extern crate rocket; /// use rocket::request::{Form, FormError, FormDataError}; /// diff --git a/core/lib/src/request/form/form.rs b/core/lib/src/request/form/form.rs index 25ca26c1..7f488d09 100644 --- a/core/lib/src/request/form/form.rs +++ b/core/lib/src/request/form/form.rs @@ -33,7 +33,7 @@ use crate::ext::AsyncReadExt as _; /// implements the `FromForm` trait: /// /// ```rust -/// # #![feature(proc_macro_hygiene, async_await)] +/// # #![feature(proc_macro_hygiene)] /// # #[macro_use] extern crate rocket; /// use rocket::request::Form; /// use rocket::http::RawStr; @@ -69,7 +69,7 @@ use crate::ext::AsyncReadExt as _; /// A handler that handles a form of this type can similarly by written: /// /// ```rust -/// # #![feature(proc_macro_hygiene, async_await)] +/// # #![feature(proc_macro_hygiene)] /// # #![allow(deprecated, unused_attributes)] /// # #[macro_use] extern crate rocket; /// # use rocket::request::Form; @@ -122,7 +122,7 @@ impl Form { /// # Example /// /// ```rust - /// # #![feature(proc_macro_hygiene, async_await)] + /// # #![feature(proc_macro_hygiene)] /// # #[macro_use] extern crate rocket; /// use rocket::request::Form; /// diff --git a/core/lib/src/request/form/from_form.rs b/core/lib/src/request/form/from_form.rs index 406f7d46..08c55985 100644 --- a/core/lib/src/request/form/from_form.rs +++ b/core/lib/src/request/form/from_form.rs @@ -13,7 +13,7 @@ use crate::request::FormItems; /// validation. /// /// ```rust -/// # #![feature(proc_macro_hygiene, async_await)] +/// # #![feature(proc_macro_hygiene)] /// # #![allow(deprecated, dead_code, unused_attributes)] /// # #[macro_use] extern crate rocket; /// #[derive(FromForm)] @@ -30,7 +30,7 @@ use crate::request::FormItems; /// data via the `data` parameter and `Form` type. /// /// ```rust -/// # #![feature(proc_macro_hygiene, async_await)] +/// # #![feature(proc_macro_hygiene)] /// # #![allow(deprecated, dead_code, unused_attributes)] /// # #[macro_use] extern crate rocket; /// # use rocket::request::Form; diff --git a/core/lib/src/request/form/from_form_value.rs b/core/lib/src/request/form/from_form_value.rs index 2e083d9b..477639d2 100644 --- a/core/lib/src/request/form/from_form_value.rs +++ b/core/lib/src/request/form/from_form_value.rs @@ -43,7 +43,7 @@ use crate::http::RawStr; /// according to its target type: /// /// ```rust -/// # #![feature(proc_macro_hygiene, async_await)] +/// # #![feature(proc_macro_hygiene)] /// # #[macro_use] extern crate rocket; /// # type Size = String; /// #[get("/item?&")] diff --git a/core/lib/src/request/form/lenient.rs b/core/lib/src/request/form/lenient.rs index a70dcce2..d25b3f1c 100644 --- a/core/lib/src/request/form/lenient.rs +++ b/core/lib/src/request/form/lenient.rs @@ -31,7 +31,7 @@ use crate::http::uri::{Query, FromUriParam}; /// handler: /// /// ```rust -/// # #![feature(proc_macro_hygiene, async_await)] +/// # #![feature(proc_macro_hygiene)] /// # #[macro_use] extern crate rocket; /// use rocket::request::LenientForm; /// @@ -67,7 +67,7 @@ impl LenientForm { /// # Example /// /// ```rust - /// # #![feature(proc_macro_hygiene, async_await)] + /// # #![feature(proc_macro_hygiene)] /// # #[macro_use] extern crate rocket; /// use rocket::request::LenientForm; /// diff --git a/core/lib/src/request/from_request.rs b/core/lib/src/request/from_request.rs index cd66d825..8f603487 100644 --- a/core/lib/src/request/from_request.rs +++ b/core/lib/src/request/from_request.rs @@ -55,7 +55,7 @@ impl IntoOutcome for Result { /// guard. /// /// ```rust -/// # #![feature(proc_macro_hygiene, async_await)] +/// # #![feature(proc_macro_hygiene)] /// # #[macro_use] extern crate rocket; /// # use rocket::http::Method; /// # type A = Method; type B = Method; type C = Method; type T = (); @@ -165,7 +165,7 @@ impl IntoOutcome for Result { /// `sensitive` handler. /// /// ```rust -/// # #![feature(proc_macro_hygiene, async_await)] +/// # #![feature(proc_macro_hygiene)] /// # #[macro_use] extern crate rocket; /// # /// use rocket::Outcome; @@ -220,7 +220,7 @@ impl IntoOutcome for Result { /// routes (`admin_dashboard` and `user_dashboard`): /// /// ```rust -/// # #![feature(proc_macro_hygiene, async_await)] +/// # #![feature(proc_macro_hygiene)] /// # #[macro_use] extern crate rocket; /// # #[cfg(feature = "private-cookies")] mod inner { /// # use rocket::outcome::{IntoOutcome, Outcome}; @@ -283,7 +283,7 @@ impl IntoOutcome for Result { /// used, as illustrated below: /// /// ```rust -/// # #![feature(proc_macro_hygiene, async_await)] +/// # #![feature(proc_macro_hygiene)] /// # #[macro_use] extern crate rocket; /// # #[cfg(feature = "private-cookies")] mod inner { /// # use rocket::outcome::{IntoOutcome, Outcome}; diff --git a/core/lib/src/request/param.rs b/core/lib/src/request/param.rs index 68baf0c3..a1d3eaa6 100644 --- a/core/lib/src/request/param.rs +++ b/core/lib/src/request/param.rs @@ -19,7 +19,7 @@ use crate::http::{RawStr, uri::{Segments, SegmentError}}; /// handler for the dynamic `"/"` path: /// /// ```rust -/// # #![feature(proc_macro_hygiene, async_await)] +/// # #![feature(proc_macro_hygiene)] /// # #[macro_use] extern crate rocket; /// #[get("/")] /// fn hello(id: usize) -> String { @@ -54,7 +54,7 @@ use crate::http::{RawStr, uri::{Segments, SegmentError}}; /// parameter as follows: /// /// ```rust -/// # #![feature(proc_macro_hygiene, async_await)] +/// # #![feature(proc_macro_hygiene)] /// # #[macro_use] extern crate rocket; /// # use rocket::http::RawStr; /// #[get("/")] @@ -172,7 +172,7 @@ use crate::http::{RawStr, uri::{Segments, SegmentError}}; /// dynamic path segment: /// /// ```rust -/// # #![feature(proc_macro_hygiene, async_await)] +/// # #![feature(proc_macro_hygiene)] /// # #[macro_use] extern crate rocket; /// # use rocket::request::FromParam; /// # use rocket::http::RawStr; diff --git a/core/lib/src/request/query.rs b/core/lib/src/request/query.rs index c6895ec6..90f06a96 100644 --- a/core/lib/src/request/query.rs +++ b/core/lib/src/request/query.rs @@ -8,7 +8,7 @@ use crate::request::{FormItems, FormItem, Form, LenientForm, FromForm}; /// generation for every trailing query parameter, `` below: /// /// ```rust -/// # #![feature(proc_macro_hygiene, async_await)] +/// # #![feature(proc_macro_hygiene)] /// # #[macro_use] extern crate rocket; /// # /// # use rocket::request::Form; @@ -82,7 +82,7 @@ impl<'q> Iterator for Query<'q> { /// route: /// /// ```rust -/// # #![feature(proc_macro_hygiene, async_await)] +/// # #![feature(proc_macro_hygiene)] /// # #[macro_use] extern crate rocket; /// use rocket::request::Form; /// diff --git a/core/lib/src/request/state.rs b/core/lib/src/request/state.rs index f1caae0b..a2f84c05 100644 --- a/core/lib/src/request/state.rs +++ b/core/lib/src/request/state.rs @@ -22,7 +22,7 @@ use crate::http::Status; /// following example does just this: /// /// ```rust -/// # #![feature(proc_macro_hygiene, async_await)] +/// # #![feature(proc_macro_hygiene)] /// # #[macro_use] extern crate rocket; /// use rocket::State; /// @@ -87,7 +87,7 @@ use crate::http::Status; /// [`State::from()`] static method: /// /// ```rust -/// # #![feature(proc_macro_hygiene, async_await)] +/// # #![feature(proc_macro_hygiene)] /// # #[macro_use] extern crate rocket; /// use rocket::State; /// diff --git a/core/lib/src/response/flash.rs b/core/lib/src/response/flash.rs index ea9bb196..4a0e2bdc 100644 --- a/core/lib/src/response/flash.rs +++ b/core/lib/src/response/flash.rs @@ -48,7 +48,7 @@ const FLASH_COOKIE_DELIM: char = ':'; /// message on both the request and response sides. /// /// ```rust -/// # #![feature(proc_macro_hygiene, async_await)] +/// # #![feature(proc_macro_hygiene)] /// # #[macro_use] extern crate rocket; /// use rocket::response::{Flash, Redirect}; /// use rocket::request::FlashMessage; diff --git a/core/lib/src/response/redirect.rs b/core/lib/src/response/redirect.rs index e56dc4b1..a1d68be0 100644 --- a/core/lib/src/response/redirect.rs +++ b/core/lib/src/response/redirect.rs @@ -26,7 +26,7 @@ use crate::http::Status; /// a route, _always_ use [`uri!`] to construct a valid [`Origin`]: /// /// ```rust -/// # #![feature(proc_macro_hygiene, async_await)] +/// # #![feature(proc_macro_hygiene)] /// # #[macro_use] extern crate rocket; /// use rocket::response::Redirect; /// diff --git a/core/lib/src/response/responder.rs b/core/lib/src/response/responder.rs index 008a27d9..ea672099 100644 --- a/core/lib/src/response/responder.rs +++ b/core/lib/src/response/responder.rs @@ -14,7 +14,7 @@ use crate::request::Request; /// as illustrated below with `T`: /// /// ```rust -/// # #![feature(proc_macro_hygiene, async_await)] +/// # #![feature(proc_macro_hygiene)] /// # #[macro_use] extern crate rocket; /// # type T = (); /// # @@ -155,7 +155,7 @@ use crate::request::Request; /// following `Responder` implementation accomplishes this: /// /// ```rust -/// # #![feature(proc_macro_hygiene, async_await)] +/// # #![feature(proc_macro_hygiene)] /// # #[macro_use] extern crate rocket; /// # /// # #[derive(Debug)] diff --git a/core/lib/src/response/response.rs b/core/lib/src/response/response.rs index ff8ab25f..0d726c6b 100644 --- a/core/lib/src/response/response.rs +++ b/core/lib/src/response/response.rs @@ -345,7 +345,6 @@ impl<'r> ResponseBuilder<'r> { /// # Example /// /// ```rust,ignore - /// # #![feature(async_await)] /// use rocket::Response; /// use futures::compat::{AsyncRead01CompatExt, Future01CompatExt}; /// use tokio::fs::File; @@ -373,7 +372,6 @@ impl<'r> ResponseBuilder<'r> { /// # Example /// /// ```rust - /// # #![feature(async_await)] /// use rocket::Response; /// use futures::compat::{AsyncRead01CompatExt, Future01CompatExt}; /// use tokio::fs::File; @@ -402,7 +400,6 @@ impl<'r> ResponseBuilder<'r> { /// # Example /// /// ```rust - /// # #![feature(async_await)] /// use rocket::Response; /// use futures::compat::{AsyncRead01CompatExt, Future01CompatExt}; /// use tokio::fs::File; @@ -896,7 +893,6 @@ impl<'r> Response<'r> { /// # Example /// /// ```rust - /// # #![feature(async_await)] /// use std::io::Cursor; /// use rocket::Response; /// @@ -928,7 +924,6 @@ impl<'r> Response<'r> { /// # Example /// /// ```rust - /// # #![feature(async_await)] /// use std::io::Cursor; /// use rocket::Response; /// @@ -959,7 +954,6 @@ impl<'r> Response<'r> { /// # Example /// /// ```rust - /// # #![feature(async_await)] /// use std::io::Cursor; /// use rocket::Response; /// @@ -989,7 +983,6 @@ impl<'r> Response<'r> { /// # Example /// /// ```rust - /// # #![feature(async_await)] /// use std::io::Cursor; /// use rocket::Response; /// @@ -1039,7 +1032,6 @@ impl<'r> Response<'r> { /// # Example /// /// ```rust - /// # #![feature(async_await)] /// use std::io::Cursor; /// use rocket::Response; /// @@ -1068,7 +1060,6 @@ impl<'r> Response<'r> { /// # Example /// /// ```rust - /// # #![feature(async_await)] /// use std::io::repeat; /// use futures::io::AsyncReadExt; /// use rocket::Response; @@ -1091,7 +1082,6 @@ impl<'r> Response<'r> { /// # Example /// /// ```rust - /// # #![feature(async_await)] /// use std::io::repeat; /// use futures::io::AsyncReadExt; /// use rocket::Response; @@ -1116,7 +1106,6 @@ impl<'r> Response<'r> { /// # Example /// /// ```rust - /// # #![feature(async_await)] /// use std::io::Cursor; /// use rocket::response::{Response, Body}; /// diff --git a/core/lib/src/rocket.rs b/core/lib/src/rocket.rs index 4a9b1938..62ef912b 100644 --- a/core/lib/src/rocket.rs +++ b/core/lib/src/rocket.rs @@ -497,7 +497,7 @@ impl Rocket { /// dispatched to the `hi` route. /// /// ```rust - /// # #![feature(proc_macro_hygiene, async_await)] + /// # #![feature(proc_macro_hygiene)] /// # #[macro_use] extern crate rocket; /// # /// #[get("/world")] @@ -569,7 +569,7 @@ impl Rocket { /// # Examples /// /// ```rust - /// # #![feature(proc_macro_hygiene, async_await)] + /// # #![feature(proc_macro_hygiene)] /// # #[macro_use] extern crate rocket; /// use rocket::Request; /// @@ -625,7 +625,7 @@ impl Rocket { /// # Example /// /// ```rust - /// # #![feature(proc_macro_hygiene, async_await)] + /// # #![feature(proc_macro_hygiene)] /// # #[macro_use] extern crate rocket; /// use rocket::State; /// @@ -662,7 +662,7 @@ impl Rocket { /// # Example /// /// ```rust - /// # #![feature(proc_macro_hygiene, async_await)] + /// # #![feature(proc_macro_hygiene)] /// # #[macro_use] extern crate rocket; /// use rocket::Rocket; /// use rocket::fairing::AdHoc; @@ -806,7 +806,7 @@ impl Rocket { /// # Example /// /// ```rust - /// # #![feature(proc_macro_hygiene, async_await)] + /// # #![feature(proc_macro_hygiene)] /// # #[macro_use] extern crate rocket; /// use rocket::Rocket; /// use rocket::fairing::AdHoc; @@ -862,7 +862,7 @@ impl Rocket { /// # Example /// /// ```rust - /// # #![feature(proc_macro_hygiene, async_await)] + /// # #![feature(proc_macro_hygiene)] /// # #[macro_use] extern crate rocket; /// use rocket::Rocket; /// use rocket::fairing::AdHoc; diff --git a/core/lib/tests/absolute-uris-okay-issue-443.rs b/core/lib/tests/absolute-uris-okay-issue-443.rs index 7f57295e..758d1d72 100644 --- a/core/lib/tests/absolute-uris-okay-issue-443.rs +++ b/core/lib/tests/absolute-uris-okay-issue-443.rs @@ -1,4 +1,4 @@ -#![feature(proc_macro_hygiene, async_await)] +#![feature(proc_macro_hygiene)] #[macro_use] extern crate rocket; diff --git a/core/lib/tests/conditionally-set-server-header-996.rs b/core/lib/tests/conditionally-set-server-header-996.rs index a6f8fac5..f20f18a1 100644 --- a/core/lib/tests/conditionally-set-server-header-996.rs +++ b/core/lib/tests/conditionally-set-server-header-996.rs @@ -1,4 +1,4 @@ -#![feature(proc_macro_hygiene, async_await)] +#![feature(proc_macro_hygiene)] #[macro_use] extern crate rocket; diff --git a/core/lib/tests/derive-reexports.rs b/core/lib/tests/derive-reexports.rs index 18513acb..a19a7195 100644 --- a/core/lib/tests/derive-reexports.rs +++ b/core/lib/tests/derive-reexports.rs @@ -1,4 +1,4 @@ -#![feature(proc_macro_hygiene, async_await)] +#![feature(proc_macro_hygiene)] use rocket; diff --git a/core/lib/tests/fairing_before_head_strip-issue-546.rs b/core/lib/tests/fairing_before_head_strip-issue-546.rs index cc1536b4..8f196bb2 100644 --- a/core/lib/tests/fairing_before_head_strip-issue-546.rs +++ b/core/lib/tests/fairing_before_head_strip-issue-546.rs @@ -1,4 +1,4 @@ -#![feature(proc_macro_hygiene, async_await)] +#![feature(proc_macro_hygiene)] #[macro_use] extern crate rocket; diff --git a/core/lib/tests/flash-lazy-removes-issue-466.rs b/core/lib/tests/flash-lazy-removes-issue-466.rs index 9a3c73be..3cd3e2ee 100644 --- a/core/lib/tests/flash-lazy-removes-issue-466.rs +++ b/core/lib/tests/flash-lazy-removes-issue-466.rs @@ -1,4 +1,4 @@ -#![feature(proc_macro_hygiene, async_await)] +#![feature(proc_macro_hygiene)] #[macro_use] extern crate rocket; diff --git a/core/lib/tests/form_method-issue-45.rs b/core/lib/tests/form_method-issue-45.rs index b65230e8..a1e67ee8 100644 --- a/core/lib/tests/form_method-issue-45.rs +++ b/core/lib/tests/form_method-issue-45.rs @@ -1,4 +1,4 @@ -#![feature(proc_macro_hygiene, async_await)] +#![feature(proc_macro_hygiene)] #[macro_use] extern crate rocket; diff --git a/core/lib/tests/form_value_decoding-issue-82.rs b/core/lib/tests/form_value_decoding-issue-82.rs index b6fc477f..d4265583 100644 --- a/core/lib/tests/form_value_decoding-issue-82.rs +++ b/core/lib/tests/form_value_decoding-issue-82.rs @@ -1,4 +1,4 @@ -#![feature(proc_macro_hygiene, async_await)] +#![feature(proc_macro_hygiene)] #[macro_use] extern crate rocket; diff --git a/core/lib/tests/head_handling.rs b/core/lib/tests/head_handling.rs index 3792890b..53c4045c 100644 --- a/core/lib/tests/head_handling.rs +++ b/core/lib/tests/head_handling.rs @@ -1,4 +1,4 @@ -#![feature(proc_macro_hygiene, async_await)] +#![feature(proc_macro_hygiene)] #[macro_use] extern crate rocket; diff --git a/core/lib/tests/limits.rs b/core/lib/tests/limits.rs index 7f3dca65..01750db3 100644 --- a/core/lib/tests/limits.rs +++ b/core/lib/tests/limits.rs @@ -1,4 +1,4 @@ -#![feature(proc_macro_hygiene, async_await)] +#![feature(proc_macro_hygiene)] #[macro_use] extern crate rocket; diff --git a/core/lib/tests/local-request-content-type-issue-505.rs b/core/lib/tests/local-request-content-type-issue-505.rs index 8d2f9344..8a661865 100644 --- a/core/lib/tests/local-request-content-type-issue-505.rs +++ b/core/lib/tests/local-request-content-type-issue-505.rs @@ -1,4 +1,4 @@ -#![feature(proc_macro_hygiene, async_await)] +#![feature(proc_macro_hygiene)] #[macro_use] extern crate rocket; diff --git a/core/lib/tests/local_request_private_cookie-issue-368.rs b/core/lib/tests/local_request_private_cookie-issue-368.rs index 247ec6c2..3fb74c25 100644 --- a/core/lib/tests/local_request_private_cookie-issue-368.rs +++ b/core/lib/tests/local_request_private_cookie-issue-368.rs @@ -1,4 +1,4 @@ -#![feature(proc_macro_hygiene, async_await)] +#![feature(proc_macro_hygiene)] #[macro_use] #[cfg(feature = "private-cookies")] diff --git a/core/lib/tests/nested-fairing-attaches.rs b/core/lib/tests/nested-fairing-attaches.rs index ba1554cd..f0f57a91 100644 --- a/core/lib/tests/nested-fairing-attaches.rs +++ b/core/lib/tests/nested-fairing-attaches.rs @@ -1,4 +1,4 @@ -#![feature(proc_macro_hygiene, async_await)] +#![feature(proc_macro_hygiene)] #[macro_use] extern crate rocket; diff --git a/core/lib/tests/precise-content-type-matching.rs b/core/lib/tests/precise-content-type-matching.rs index f1c651dd..652554e6 100644 --- a/core/lib/tests/precise-content-type-matching.rs +++ b/core/lib/tests/precise-content-type-matching.rs @@ -1,4 +1,4 @@ -#![feature(proc_macro_hygiene, async_await)] +#![feature(proc_macro_hygiene)] #[macro_use] extern crate rocket; diff --git a/core/lib/tests/redirect_from_catcher-issue-113.rs b/core/lib/tests/redirect_from_catcher-issue-113.rs index 15c46f27..f50f2ba3 100644 --- a/core/lib/tests/redirect_from_catcher-issue-113.rs +++ b/core/lib/tests/redirect_from_catcher-issue-113.rs @@ -1,4 +1,4 @@ -#![feature(proc_macro_hygiene, async_await)] +#![feature(proc_macro_hygiene)] #[macro_use] extern crate rocket; diff --git a/core/lib/tests/responder_lifetime-issue-345.rs b/core/lib/tests/responder_lifetime-issue-345.rs index 8e5b3ed2..73dbc8d2 100644 --- a/core/lib/tests/responder_lifetime-issue-345.rs +++ b/core/lib/tests/responder_lifetime-issue-345.rs @@ -1,4 +1,4 @@ -#![feature(proc_macro_hygiene, async_await)] +#![feature(proc_macro_hygiene)] #![allow(dead_code)] // This test is only here so that we can ensure it compiles. #[macro_use] extern crate rocket; diff --git a/core/lib/tests/route_guard.rs b/core/lib/tests/route_guard.rs index d914cc65..cdd8f9f6 100644 --- a/core/lib/tests/route_guard.rs +++ b/core/lib/tests/route_guard.rs @@ -1,4 +1,4 @@ -#![feature(proc_macro_hygiene, async_await)] +#![feature(proc_macro_hygiene)] #[macro_use] extern crate rocket; diff --git a/core/lib/tests/segments-issues-41-86.rs b/core/lib/tests/segments-issues-41-86.rs index 0c32d3af..f002e7d9 100644 --- a/core/lib/tests/segments-issues-41-86.rs +++ b/core/lib/tests/segments-issues-41-86.rs @@ -1,4 +1,4 @@ -#![feature(proc_macro_hygiene, async_await)] +#![feature(proc_macro_hygiene)] #[macro_use] extern crate rocket; diff --git a/core/lib/tests/strict_and_lenient_forms.rs b/core/lib/tests/strict_and_lenient_forms.rs index 6643b622..6fcf04ab 100644 --- a/core/lib/tests/strict_and_lenient_forms.rs +++ b/core/lib/tests/strict_and_lenient_forms.rs @@ -1,4 +1,4 @@ -#![feature(proc_macro_hygiene, async_await)] +#![feature(proc_macro_hygiene)] #[macro_use] extern crate rocket; diff --git a/core/lib/tests/uri-percent-encoding-issue-808.rs b/core/lib/tests/uri-percent-encoding-issue-808.rs index f8c88597..86dee9de 100644 --- a/core/lib/tests/uri-percent-encoding-issue-808.rs +++ b/core/lib/tests/uri-percent-encoding-issue-808.rs @@ -1,4 +1,4 @@ -#![feature(proc_macro_hygiene, async_await)] +#![feature(proc_macro_hygiene)] #[macro_use] extern crate rocket; diff --git a/examples/config/tests/development.rs b/examples/config/tests/development.rs index 53dd3ae2..1b5753bc 100644 --- a/examples/config/tests/development.rs +++ b/examples/config/tests/development.rs @@ -1,4 +1,4 @@ -#![feature(proc_macro_hygiene, async_await)] +#![feature(proc_macro_hygiene)] #[macro_use] extern crate rocket; diff --git a/examples/config/tests/production.rs b/examples/config/tests/production.rs index 262c29ff..7208a7a4 100644 --- a/examples/config/tests/production.rs +++ b/examples/config/tests/production.rs @@ -1,4 +1,4 @@ -#![feature(proc_macro_hygiene, async_await)] +#![feature(proc_macro_hygiene)] #[macro_use] extern crate rocket; diff --git a/examples/config/tests/staging.rs b/examples/config/tests/staging.rs index e33a0517..fc88fee8 100644 --- a/examples/config/tests/staging.rs +++ b/examples/config/tests/staging.rs @@ -1,4 +1,4 @@ -#![feature(proc_macro_hygiene, async_await)] +#![feature(proc_macro_hygiene)] #[macro_use] extern crate rocket; diff --git a/examples/content_types/src/main.rs b/examples/content_types/src/main.rs index d6c1e1a4..83b9eda7 100644 --- a/examples/content_types/src/main.rs +++ b/examples/content_types/src/main.rs @@ -1,4 +1,4 @@ -#![feature(proc_macro_hygiene, async_await)] +#![feature(proc_macro_hygiene)] #[macro_use] extern crate rocket; #[macro_use] extern crate serde_derive; diff --git a/examples/cookies/src/main.rs b/examples/cookies/src/main.rs index a53740c1..1232def3 100644 --- a/examples/cookies/src/main.rs +++ b/examples/cookies/src/main.rs @@ -1,4 +1,4 @@ -#![feature(proc_macro_hygiene, async_await)] +#![feature(proc_macro_hygiene)] #[macro_use] extern crate rocket; diff --git a/examples/errors/src/main.rs b/examples/errors/src/main.rs index 1f5a24c1..3aa27066 100644 --- a/examples/errors/src/main.rs +++ b/examples/errors/src/main.rs @@ -1,4 +1,4 @@ -#![feature(proc_macro_hygiene, async_await)] +#![feature(proc_macro_hygiene)] #[macro_use] extern crate rocket; diff --git a/examples/fairings/src/main.rs b/examples/fairings/src/main.rs index da86f1eb..5a3efbbc 100644 --- a/examples/fairings/src/main.rs +++ b/examples/fairings/src/main.rs @@ -1,4 +1,4 @@ -#![feature(proc_macro_hygiene, async_await)] +#![feature(proc_macro_hygiene)] #[macro_use] extern crate rocket; diff --git a/examples/form_kitchen_sink/src/main.rs b/examples/form_kitchen_sink/src/main.rs index c73a9376..af494eaf 100644 --- a/examples/form_kitchen_sink/src/main.rs +++ b/examples/form_kitchen_sink/src/main.rs @@ -1,4 +1,4 @@ -#![feature(proc_macro_hygiene, async_await)] +#![feature(proc_macro_hygiene)] #[macro_use] extern crate rocket; diff --git a/examples/form_validation/src/main.rs b/examples/form_validation/src/main.rs index bddca2ae..0495409b 100644 --- a/examples/form_validation/src/main.rs +++ b/examples/form_validation/src/main.rs @@ -1,4 +1,4 @@ -#![feature(proc_macro_hygiene, async_await)] +#![feature(proc_macro_hygiene)] #[macro_use] extern crate rocket; diff --git a/examples/handlebars_templates/src/main.rs b/examples/handlebars_templates/src/main.rs index def582db..e2b29535 100644 --- a/examples/handlebars_templates/src/main.rs +++ b/examples/handlebars_templates/src/main.rs @@ -1,4 +1,4 @@ -#![feature(proc_macro_hygiene, async_await)] +#![feature(proc_macro_hygiene)] #[macro_use] extern crate rocket; #[macro_use] extern crate serde_derive; diff --git a/examples/hello_2015/src/main.rs b/examples/hello_2015/src/main.rs index e77a36a0..1001fb52 100644 --- a/examples/hello_2015/src/main.rs +++ b/examples/hello_2015/src/main.rs @@ -1,4 +1,4 @@ -#![feature(proc_macro_hygiene, async_await)] +#![feature(proc_macro_hygiene)] #[macro_use] extern crate rocket; diff --git a/examples/hello_2018/src/main.rs b/examples/hello_2018/src/main.rs index abe16b44..d8d7c473 100644 --- a/examples/hello_2018/src/main.rs +++ b/examples/hello_2018/src/main.rs @@ -1,4 +1,4 @@ -#![feature(proc_macro_hygiene, async_await)] +#![feature(proc_macro_hygiene)] #[cfg(test)] mod tests; diff --git a/examples/hello_person/src/main.rs b/examples/hello_person/src/main.rs index 0bd7c999..96c4ae2e 100644 --- a/examples/hello_person/src/main.rs +++ b/examples/hello_person/src/main.rs @@ -1,4 +1,4 @@ -#![feature(proc_macro_hygiene, async_await)] +#![feature(proc_macro_hygiene)] #[macro_use] extern crate rocket; diff --git a/examples/hello_world/src/main.rs b/examples/hello_world/src/main.rs index de05d854..6c1111f4 100644 --- a/examples/hello_world/src/main.rs +++ b/examples/hello_world/src/main.rs @@ -1,4 +1,4 @@ -#![feature(proc_macro_hygiene, async_await)] +#![feature(proc_macro_hygiene)] #[macro_use] extern crate rocket; diff --git a/examples/json/src/main.rs b/examples/json/src/main.rs index 20bcb71e..65698c94 100644 --- a/examples/json/src/main.rs +++ b/examples/json/src/main.rs @@ -1,4 +1,4 @@ -#![feature(proc_macro_hygiene, async_await)] +#![feature(proc_macro_hygiene)] #[macro_use] extern crate rocket; #[macro_use] extern crate rocket_contrib; diff --git a/examples/managed_queue/src/main.rs b/examples/managed_queue/src/main.rs index 9ca56264..d0588bc6 100644 --- a/examples/managed_queue/src/main.rs +++ b/examples/managed_queue/src/main.rs @@ -1,4 +1,4 @@ -#![feature(proc_macro_hygiene, async_await)] +#![feature(proc_macro_hygiene)] #[macro_use] extern crate rocket; diff --git a/examples/msgpack/src/main.rs b/examples/msgpack/src/main.rs index d500ac21..2af8c51d 100644 --- a/examples/msgpack/src/main.rs +++ b/examples/msgpack/src/main.rs @@ -1,4 +1,4 @@ -#![feature(proc_macro_hygiene, async_await)] +#![feature(proc_macro_hygiene)] #[macro_use] extern crate rocket; #[macro_use] extern crate serde_derive; diff --git a/examples/optional_redirect/src/main.rs b/examples/optional_redirect/src/main.rs index c3b0c008..8c81c24a 100644 --- a/examples/optional_redirect/src/main.rs +++ b/examples/optional_redirect/src/main.rs @@ -1,4 +1,4 @@ -#![feature(proc_macro_hygiene, async_await)] +#![feature(proc_macro_hygiene)] #[macro_use] extern crate rocket; diff --git a/examples/pastebin/src/main.rs b/examples/pastebin/src/main.rs index 12a34e60..c561c000 100644 --- a/examples/pastebin/src/main.rs +++ b/examples/pastebin/src/main.rs @@ -1,4 +1,4 @@ -#![feature(proc_macro_hygiene, async_await)] +#![feature(proc_macro_hygiene)] #[macro_use] extern crate rocket; diff --git a/examples/query_params/src/main.rs b/examples/query_params/src/main.rs index 332c607f..c2ba93af 100644 --- a/examples/query_params/src/main.rs +++ b/examples/query_params/src/main.rs @@ -1,4 +1,4 @@ -#![feature(proc_macro_hygiene, async_await)] +#![feature(proc_macro_hygiene)] #[macro_use] extern crate rocket; diff --git a/examples/ranking/src/main.rs b/examples/ranking/src/main.rs index 26e1700d..2267fc3d 100644 --- a/examples/ranking/src/main.rs +++ b/examples/ranking/src/main.rs @@ -1,4 +1,4 @@ -#![feature(proc_macro_hygiene, async_await)] +#![feature(proc_macro_hygiene)] #[macro_use] extern crate rocket; diff --git a/examples/raw_sqlite/src/main.rs b/examples/raw_sqlite/src/main.rs index 60277f99..4daad628 100644 --- a/examples/raw_sqlite/src/main.rs +++ b/examples/raw_sqlite/src/main.rs @@ -1,4 +1,4 @@ -#![feature(proc_macro_hygiene, async_await)] +#![feature(proc_macro_hygiene)] #[macro_use] extern crate rocket; diff --git a/examples/raw_upload/src/main.rs b/examples/raw_upload/src/main.rs index 31614276..9ea67c59 100644 --- a/examples/raw_upload/src/main.rs +++ b/examples/raw_upload/src/main.rs @@ -1,4 +1,4 @@ -#![feature(proc_macro_hygiene, async_await)] +#![feature(proc_macro_hygiene)] #[macro_use] extern crate rocket; diff --git a/examples/redirect/src/main.rs b/examples/redirect/src/main.rs index 3df8f7bf..cfd7db27 100644 --- a/examples/redirect/src/main.rs +++ b/examples/redirect/src/main.rs @@ -1,4 +1,4 @@ -#![feature(proc_macro_hygiene, async_await)] +#![feature(proc_macro_hygiene)] #[macro_use] extern crate rocket; diff --git a/examples/request_guard/src/main.rs b/examples/request_guard/src/main.rs index d1085c84..91653702 100644 --- a/examples/request_guard/src/main.rs +++ b/examples/request_guard/src/main.rs @@ -1,4 +1,4 @@ -#![feature(proc_macro_hygiene, async_await)] +#![feature(proc_macro_hygiene)] #[macro_use] extern crate rocket; diff --git a/examples/request_local_state/src/main.rs b/examples/request_local_state/src/main.rs index 27092881..f2a3ccec 100644 --- a/examples/request_local_state/src/main.rs +++ b/examples/request_local_state/src/main.rs @@ -1,4 +1,4 @@ -#![feature(proc_macro_hygiene, async_await)] +#![feature(proc_macro_hygiene)] #[macro_use] extern crate rocket; diff --git a/examples/session/src/main.rs b/examples/session/src/main.rs index 416b2a06..c4de5208 100644 --- a/examples/session/src/main.rs +++ b/examples/session/src/main.rs @@ -1,4 +1,4 @@ -#![feature(proc_macro_hygiene, async_await)] +#![feature(proc_macro_hygiene)] #[macro_use] extern crate rocket; diff --git a/examples/state/src/main.rs b/examples/state/src/main.rs index 5109da79..9bd48352 100644 --- a/examples/state/src/main.rs +++ b/examples/state/src/main.rs @@ -1,4 +1,4 @@ -#![feature(proc_macro_hygiene, async_await)] +#![feature(proc_macro_hygiene)] #[macro_use] extern crate rocket; diff --git a/examples/static_files/src/main.rs b/examples/static_files/src/main.rs index 14991223..ce4a1776 100644 --- a/examples/static_files/src/main.rs +++ b/examples/static_files/src/main.rs @@ -1,5 +1,3 @@ -#![feature(async_await)] - extern crate rocket; extern crate rocket_contrib; diff --git a/examples/stream/src/main.rs b/examples/stream/src/main.rs index 8a045514..20499be4 100644 --- a/examples/stream/src/main.rs +++ b/examples/stream/src/main.rs @@ -1,4 +1,4 @@ -#![feature(proc_macro_hygiene, async_await)] +#![feature(proc_macro_hygiene)] #[macro_use] extern crate rocket; diff --git a/examples/tera_templates/src/main.rs b/examples/tera_templates/src/main.rs index 061ef2b8..83c53122 100644 --- a/examples/tera_templates/src/main.rs +++ b/examples/tera_templates/src/main.rs @@ -1,4 +1,4 @@ -#![feature(proc_macro_hygiene, async_await)] +#![feature(proc_macro_hygiene)] #[macro_use] extern crate rocket; #[macro_use] extern crate serde_derive; diff --git a/examples/testing/src/main.rs b/examples/testing/src/main.rs index cfcaa2b1..74c2c268 100644 --- a/examples/testing/src/main.rs +++ b/examples/testing/src/main.rs @@ -1,4 +1,4 @@ -#![feature(proc_macro_hygiene, async_await)] +#![feature(proc_macro_hygiene)] #[macro_use] extern crate rocket; diff --git a/examples/tls/src/main.rs b/examples/tls/src/main.rs index de05d854..6c1111f4 100644 --- a/examples/tls/src/main.rs +++ b/examples/tls/src/main.rs @@ -1,4 +1,4 @@ -#![feature(proc_macro_hygiene, async_await)] +#![feature(proc_macro_hygiene)] #[macro_use] extern crate rocket; diff --git a/examples/todo/src/main.rs b/examples/todo/src/main.rs index 1e3aca37..318a13cd 100644 --- a/examples/todo/src/main.rs +++ b/examples/todo/src/main.rs @@ -1,4 +1,4 @@ -#![feature(proc_macro_hygiene, async_await)] +#![feature(proc_macro_hygiene)] #[macro_use] extern crate rocket; #[macro_use] extern crate diesel; diff --git a/examples/uuid/src/main.rs b/examples/uuid/src/main.rs index 0a0bb271..38639da9 100644 --- a/examples/uuid/src/main.rs +++ b/examples/uuid/src/main.rs @@ -1,4 +1,4 @@ -#![feature(proc_macro_hygiene, async_await)] +#![feature(proc_macro_hygiene)] #[macro_use] extern crate rocket; #[macro_use] extern crate lazy_static;