Remove use of the 'decl_macro' feature.

Also removes one internal use in the 'typed-uris' codegen test.
This commit is contained in:
Jeb Rosen 2019-06-19 23:03:21 -07:00 committed by Sergio Benitez
parent 2f458b5217
commit 3e4f8453ce
109 changed files with 161 additions and 164 deletions

View File

@ -10,7 +10,7 @@ Rocket is web framework for Rust (nightly) with a focus on ease-of-use,
expressibility, and speed. Here's an example of a complete Rocket application: expressibility, and speed. Here's an example of a complete Rocket application:
```rust ```rust
#![feature(proc_macro_hygiene, decl_macro)] #![feature(proc_macro_hygiene)]
#[macro_use] extern crate rocket; #[macro_use] extern crate rocket;

View File

@ -50,7 +50,7 @@
//! In your application's source code, one-time: //! In your application's source code, one-time:
//! //!
//! ```rust //! ```rust
//! #![feature(proc_macro_hygiene, decl_macro)] //! #![feature(proc_macro_hygiene)]
//! //!
//! #[macro_use] extern crate rocket; //! #[macro_use] extern crate rocket;
//! #[macro_use] extern crate rocket_contrib; //! #[macro_use] extern crate rocket_contrib;
@ -73,7 +73,7 @@
//! Whenever a connection to the database is needed: //! Whenever a connection to the database is needed:
//! //!
//! ```rust //! ```rust
//! # #![feature(proc_macro_hygiene, decl_macro)] //! # #![feature(proc_macro_hygiene)]
//! # //! #
//! # #[macro_use] extern crate rocket; //! # #[macro_use] extern crate rocket;
//! # #[macro_use] extern crate rocket_contrib; //! # #[macro_use] extern crate rocket_contrib;
@ -289,7 +289,7 @@
//! connection to a given database: //! connection to a given database:
//! //!
//! ```rust //! ```rust
//! # #![feature(proc_macro_hygiene, decl_macro)] //! # #![feature(proc_macro_hygiene)]
//! # //! #
//! # #[macro_use] extern crate rocket; //! # #[macro_use] extern crate rocket;
//! # #[macro_use] extern crate rocket_contrib; //! # #[macro_use] extern crate rocket_contrib;
@ -311,7 +311,7 @@
//! connection type: //! connection type:
//! //!
//! ```rust //! ```rust
//! # #![feature(proc_macro_hygiene, decl_macro)] //! # #![feature(proc_macro_hygiene)]
//! # //! #
//! # #[macro_use] extern crate rocket; //! # #[macro_use] extern crate rocket;
//! # #[macro_use] extern crate rocket_contrib; //! # #[macro_use] extern crate rocket_contrib;

View File

@ -41,7 +41,7 @@ pub use serde_json::{json_internal, json_internal_vec};
/// or from [`serde`]. The data is parsed from the HTTP request body. /// or from [`serde`]. The data is parsed from the HTTP request body.
/// ///
/// ```rust /// ```rust
/// # #![feature(proc_macro_hygiene, decl_macro)] /// # #![feature(proc_macro_hygiene)]
/// # #[macro_use] extern crate rocket; /// # #[macro_use] extern crate rocket;
/// # extern crate rocket_contrib; /// # extern crate rocket_contrib;
/// # type User = usize; /// # type User = usize;
@ -65,7 +65,7 @@ pub use serde_json::{json_internal, json_internal_vec};
/// set to `application/json` automatically. /// set to `application/json` automatically.
/// ///
/// ```rust /// ```rust
/// # #![feature(proc_macro_hygiene, decl_macro)] /// # #![feature(proc_macro_hygiene)]
/// # #[macro_use] extern crate rocket; /// # #[macro_use] extern crate rocket;
/// # extern crate rocket_contrib; /// # extern crate rocket_contrib;
/// # type User = usize; /// # type User = usize;
@ -210,7 +210,7 @@ impl<T> DerefMut for Json<T> {
/// fashion during request handling. This looks something like: /// fashion during request handling. This looks something like:
/// ///
/// ```rust /// ```rust
/// # #![feature(proc_macro_hygiene, decl_macro)] /// # #![feature(proc_macro_hygiene)]
/// # #[macro_use] extern crate rocket; /// # #[macro_use] extern crate rocket;
/// # #[macro_use] extern crate rocket_contrib; /// # #[macro_use] extern crate rocket_contrib;
/// use rocket_contrib::json::JsonValue; /// use rocket_contrib::json::JsonValue;
@ -305,7 +305,7 @@ impl<'a> Responder<'a> for JsonValue {
/// value created with this macro can be returned from a handler as follows: /// value created with this macro can be returned from a handler as follows:
/// ///
/// ```rust /// ```rust
/// # #![feature(proc_macro_hygiene, decl_macro)] /// # #![feature(proc_macro_hygiene)]
/// # #[macro_use] extern crate rocket; /// # #[macro_use] extern crate rocket;
/// # #[macro_use] extern crate rocket_contrib; /// # #[macro_use] extern crate rocket_contrib;
/// use rocket_contrib::json::JsonValue; /// use rocket_contrib::json::JsonValue;

View File

@ -40,7 +40,7 @@ pub use rmp_serde::decode::Error;
/// request body. /// request body.
/// ///
/// ```rust /// ```rust
/// # #![feature(proc_macro_hygiene, decl_macro)] /// # #![feature(proc_macro_hygiene)]
/// # #[macro_use] extern crate rocket; /// # #[macro_use] extern crate rocket;
/// # extern crate rocket_contrib; /// # extern crate rocket_contrib;
/// # type User = usize; /// # type User = usize;
@ -64,7 +64,7 @@ pub use rmp_serde::decode::Error;
/// response is set to `application/msgpack` automatically. /// response is set to `application/msgpack` automatically.
/// ///
/// ```rust /// ```rust
/// # #![feature(proc_macro_hygiene, decl_macro)] /// # #![feature(proc_macro_hygiene)]
/// # #[macro_use] extern crate rocket; /// # #[macro_use] extern crate rocket;
/// # extern crate rocket_contrib; /// # extern crate rocket_contrib;
/// # type User = usize; /// # type User = usize;

View File

@ -12,7 +12,7 @@ use crate::templates::ContextManager;
/// used as a request guard in any request handler. /// used as a request guard in any request handler.
/// ///
/// ```rust /// ```rust
/// # #![feature(proc_macro_hygiene, decl_macro)] /// # #![feature(proc_macro_hygiene)]
/// # #[macro_use] extern crate rocket; /// # #[macro_use] extern crate rocket;
/// # #[macro_use] extern crate rocket_contrib; /// # #[macro_use] extern crate rocket_contrib;
/// use rocket_contrib::templates::{Template, Metadata}; /// use rocket_contrib::templates::{Template, Metadata};
@ -46,7 +46,7 @@ impl Metadata<'_> {
/// # Example /// # Example
/// ///
/// ```rust /// ```rust
/// # #![feature(proc_macro_hygiene, decl_macro)] /// # #![feature(proc_macro_hygiene)]
/// # #[macro_use] extern crate rocket; /// # #[macro_use] extern crate rocket;
/// # extern crate rocket_contrib; /// # extern crate rocket_contrib;
/// # /// #
@ -67,7 +67,7 @@ impl Metadata<'_> {
/// # Example /// # Example
/// ///
/// ```rust /// ```rust
/// # #![feature(proc_macro_hygiene, decl_macro)] /// # #![feature(proc_macro_hygiene)]
/// # #[macro_use] extern crate rocket; /// # #[macro_use] extern crate rocket;
/// # extern crate rocket_contrib; /// # extern crate rocket_contrib;
/// # /// #

View File

@ -37,7 +37,7 @@
//! of the template file minus the last two extensions, from a handler. //! of the template file minus the last two extensions, from a handler.
//! //!
//! ```rust //! ```rust
//! # #![feature(proc_macro_hygiene, decl_macro)] //! # #![feature(proc_macro_hygiene)]
//! # #[macro_use] extern crate rocket; //! # #[macro_use] extern crate rocket;
//! # #[macro_use] extern crate rocket_contrib; //! # #[macro_use] extern crate rocket_contrib;
//! # fn context() { } //! # fn context() { }
@ -179,7 +179,7 @@ const DEFAULT_TEMPLATE_DIR: &str = "templates";
/// returned from a request handler directly: /// returned from a request handler directly:
/// ///
/// ```rust /// ```rust
/// # #![feature(proc_macro_hygiene, decl_macro)] /// # #![feature(proc_macro_hygiene)]
/// # #[macro_use] extern crate rocket; /// # #[macro_use] extern crate rocket;
/// # #[macro_use] extern crate rocket_contrib; /// # #[macro_use] extern crate rocket_contrib;
/// # fn context() { } /// # fn context() { }

View File

@ -42,7 +42,7 @@ pub use self::uuid_crate::parser::ParseError;
/// You can use the `Uuid` type directly as a target of a dynamic parameter: /// You can use the `Uuid` type directly as a target of a dynamic parameter:
/// ///
/// ```rust /// ```rust
/// # #![feature(proc_macro_hygiene, decl_macro)] /// # #![feature(proc_macro_hygiene)]
/// # #[macro_use] extern crate rocket; /// # #[macro_use] extern crate rocket;
/// # #[macro_use] extern crate rocket_contrib; /// # #[macro_use] extern crate rocket_contrib;
/// use rocket_contrib::uuid::Uuid; /// use rocket_contrib::uuid::Uuid;
@ -56,7 +56,7 @@ pub use self::uuid_crate::parser::ParseError;
/// You can also use the `Uuid` as a form value, including in query strings: /// You can also use the `Uuid` as a form value, including in query strings:
/// ///
/// ```rust /// ```rust
/// # #![feature(proc_macro_hygiene, decl_macro)] /// # #![feature(proc_macro_hygiene)]
/// # #[macro_use] extern crate rocket; /// # #[macro_use] extern crate rocket;
/// # #[macro_use] extern crate rocket_contrib; /// # #[macro_use] extern crate rocket_contrib;
/// use rocket_contrib::uuid::Uuid; /// use rocket_contrib::uuid::Uuid;

View File

@ -1,4 +1,4 @@
#![feature(decl_macro, proc_macro_hygiene)] #![feature(proc_macro_hygiene)]
#[macro_use] #[macro_use]
#[cfg(all(feature = "brotli_compression", feature = "gzip_compression"))] #[cfg(all(feature = "brotli_compression", feature = "gzip_compression"))]

View File

@ -1,4 +1,4 @@
#![feature(decl_macro, proc_macro_hygiene)] #![feature(proc_macro_hygiene)]
#[macro_use] #[macro_use]
#[cfg(all(feature = "brotli_compression", feature = "gzip_compression"))] #[cfg(all(feature = "brotli_compression", feature = "gzip_compression"))]

View File

@ -1,4 +1,4 @@
#![feature(proc_macro_hygiene, decl_macro)] #![feature(proc_macro_hygiene)]
#[macro_use] #[macro_use]
#[cfg(feature = "helmet")] #[cfg(feature = "helmet")]

View File

@ -1,4 +1,4 @@
#![feature(proc_macro_hygiene, decl_macro)] #![feature(proc_macro_hygiene)]
#[cfg(feature = "serve")] #[cfg(feature = "serve")]
mod static_tests { mod static_tests {

View File

@ -1,4 +1,4 @@
#![feature(proc_macro_hygiene, decl_macro)] #![feature(proc_macro_hygiene)]
#[cfg(feature = "templates")] #[cfg(feature = "templates")]
#[macro_use] extern crate rocket; #[macro_use] extern crate rocket;

View File

@ -30,7 +30,7 @@
//! crate root: //! crate root:
//! //!
//! ```rust //! ```rust
//! #![feature(proc_macro_hygiene, decl_macro)] //! #![feature(proc_macro_hygiene)]
//! //!
//! #[macro_use] extern crate rocket; //! #[macro_use] extern crate rocket;
//! # #[get("/")] fn hello() { } //! # #[get("/")] fn hello() { }
@ -40,7 +40,7 @@
//! Or, alternatively, selectively import from the top-level scope: //! Or, alternatively, selectively import from the top-level scope:
//! //!
//! ```rust //! ```rust
//! #![feature(proc_macro_hygiene, decl_macro)] //! #![feature(proc_macro_hygiene)]
//! # extern crate rocket; //! # extern crate rocket;
//! //!
//! use rocket::{get, routes}; //! use rocket::{get, routes};
@ -131,7 +131,7 @@ macro_rules! route_attribute {
/// functions: /// functions:
/// ///
/// ```rust /// ```rust
/// # #![feature(proc_macro_hygiene, decl_macro)] /// # #![feature(proc_macro_hygiene)]
/// # #[macro_use] extern crate rocket; /// # #[macro_use] extern crate rocket;
/// # /// #
/// #[get("/")] /// #[get("/")]
@ -154,7 +154,7 @@ macro_rules! route_attribute {
/// explicitly specified: /// explicitly specified:
/// ///
/// ```rust /// ```rust
/// # #![feature(proc_macro_hygiene, decl_macro)] /// # #![feature(proc_macro_hygiene)]
/// # #[macro_use] extern crate rocket; /// # #[macro_use] extern crate rocket;
/// # /// #
/// #[route(GET, path = "/")] /// #[route(GET, path = "/")]
@ -215,7 +215,7 @@ macro_rules! route_attribute {
/// the arguments `foo`, `baz`, `msg`, `rest`, and `form`: /// the arguments `foo`, `baz`, `msg`, `rest`, and `form`:
/// ///
/// ```rust /// ```rust
/// # #![feature(proc_macro_hygiene, decl_macro)] /// # #![feature(proc_macro_hygiene)]
/// # #[macro_use] extern crate rocket; /// # #[macro_use] extern crate rocket;
/// # use rocket::request::Form; /// # use rocket::request::Form;
/// # use std::path::PathBuf; /// # use std::path::PathBuf;
@ -327,7 +327,7 @@ route_attribute!(options => Method::Options);
/// This attribute can only be applied to free functions: /// This attribute can only be applied to free functions:
/// ///
/// ```rust /// ```rust
/// # #![feature(proc_macro_hygiene, decl_macro)] /// # #![feature(proc_macro_hygiene)]
/// # #[macro_use] extern crate rocket; /// # #[macro_use] extern crate rocket;
/// # /// #
/// use rocket::Request; /// use rocket::Request;
@ -739,7 +739,7 @@ pub fn derive_uri_display_path(input: TokenStream) -> TokenStream {
/// corresponding [`Route`] structures. For example, given the following routes: /// corresponding [`Route`] structures. For example, given the following routes:
/// ///
/// ```rust /// ```rust
/// # #![feature(proc_macro_hygiene, decl_macro)] /// # #![feature(proc_macro_hygiene)]
/// # #[macro_use] extern crate rocket; /// # #[macro_use] extern crate rocket;
/// # /// #
/// #[get("/")] /// #[get("/")]
@ -754,7 +754,7 @@ pub fn derive_uri_display_path(input: TokenStream) -> TokenStream {
/// The `routes!` macro can be used as: /// The `routes!` macro can be used as:
/// ///
/// ```rust /// ```rust
/// # #![feature(proc_macro_hygiene, decl_macro)] /// # #![feature(proc_macro_hygiene)]
/// # #[macro_use] extern crate rocket; /// # #[macro_use] extern crate rocket;
/// # /// #
/// # use rocket::http::Method; /// # use rocket::http::Method;
@ -798,7 +798,7 @@ pub fn routes(input: TokenStream) -> TokenStream {
/// catchers: /// catchers:
/// ///
/// ```rust /// ```rust
/// # #![feature(proc_macro_hygiene, decl_macro)] /// # #![feature(proc_macro_hygiene)]
/// # #[macro_use] extern crate rocket; /// # #[macro_use] extern crate rocket;
/// # /// #
/// #[catch(404)] /// #[catch(404)]
@ -813,7 +813,7 @@ pub fn routes(input: TokenStream) -> TokenStream {
/// The `catchers!` macro can be used as: /// The `catchers!` macro can be used as:
/// ///
/// ```rust /// ```rust
/// # #![feature(proc_macro_hygiene, decl_macro)] /// # #![feature(proc_macro_hygiene)]
/// # #[macro_use] extern crate rocket; /// # #[macro_use] extern crate rocket;
/// # /// #
/// # #[catch(404)] fn not_found() { /* .. */ } /// # #[catch(404)] fn not_found() { /* .. */ }
@ -855,7 +855,7 @@ pub fn catchers(input: TokenStream) -> TokenStream {
/// For example, for the following route: /// For example, for the following route:
/// ///
/// ```rust /// ```rust
/// # #![feature(proc_macro_hygiene, decl_macro)] /// # #![feature(proc_macro_hygiene)]
/// # #[macro_use] extern crate rocket; /// # #[macro_use] extern crate rocket;
/// # /// #
/// #[get("/person/<name>?<age>")] /// #[get("/person/<name>?<age>")]
@ -869,7 +869,7 @@ pub fn catchers(input: TokenStream) -> TokenStream {
/// A URI can be created as follows: /// A URI can be created as follows:
/// ///
/// ```rust /// ```rust
/// # #![feature(proc_macro_hygiene, decl_macro)] /// # #![feature(proc_macro_hygiene)]
/// # #[macro_use] extern crate rocket; /// # #[macro_use] extern crate rocket;
/// # /// #
/// # #[get("/person/<name>?<age>")] /// # #[get("/person/<name>?<age>")]

View File

@ -1,4 +1,4 @@
#![feature(proc_macro_hygiene, decl_macro)] #![feature(proc_macro_hygiene)]
#[macro_use] extern crate rocket; #[macro_use] extern crate rocket;

View File

@ -1,4 +1,4 @@
#![feature(proc_macro_hygiene, decl_macro)] #![feature(proc_macro_hygiene)]
use rocket::local::Client; use rocket::local::Client;
use rocket::response::Responder; use rocket::response::Responder;

View File

@ -1,4 +1,4 @@
#![feature(proc_macro_hygiene, decl_macro)] #![feature(proc_macro_hygiene)]
#[macro_use] extern crate rocket; #[macro_use] extern crate rocket;

View File

@ -1,4 +1,4 @@
#![feature(proc_macro_hygiene, decl_macro)] #![feature(proc_macro_hygiene)]
#[macro_use] extern crate rocket; #[macro_use] extern crate rocket;

View File

@ -1,4 +1,4 @@
#![feature(proc_macro_hygiene, decl_macro)] #![feature(proc_macro_hygiene)]
#[macro_use] extern crate rocket; #[macro_use] extern crate rocket;

View File

@ -1,4 +1,4 @@
#![feature(proc_macro_hygiene, decl_macro)] #![feature(proc_macro_hygiene)]
// Rocket sometimes generates mangled identifiers that activate the // Rocket sometimes generates mangled identifiers that activate the
// non_snake_case lint. We deny the lint in this test to ensure that // non_snake_case lint. We deny the lint in this test to ensure that

View File

@ -1,4 +1,4 @@
#![feature(proc_macro_hygiene, decl_macro)] #![feature(proc_macro_hygiene)]
#![allow(dead_code, unused_variables)] #![allow(dead_code, unused_variables)]
#[macro_use] extern crate rocket; #[macro_use] extern crate rocket;
@ -6,7 +6,7 @@
use std::path::PathBuf; use std::path::PathBuf;
use rocket::http::{RawStr, Cookies}; use rocket::http::{RawStr, Cookies};
use rocket::http::uri::{Origin, FromUriParam, Query}; use rocket::http::uri::{FromUriParam, Query};
use rocket::request::Form; use rocket::request::Form;
#[derive(FromForm, UriDisplayQuery)] #[derive(FromForm, UriDisplayQuery)]
@ -82,8 +82,10 @@ fn param_and_segments(path: PathBuf, id: usize) { }
#[post("/a/<id>/then/<path..>")] #[post("/a/<id>/then/<path..>")]
fn guarded_segments(cookies: Cookies<'_>, path: PathBuf, id: usize) { } fn guarded_segments(cookies: Cookies<'_>, path: PathBuf, id: usize) { }
macro assert_uri_eq($($uri:expr => $expected:expr,)+) { macro_rules! assert_uri_eq {
$(assert_eq!($uri, Origin::parse($expected).expect("valid origin URI"));)+ ($($uri:expr => $expected:expr,)+) => {
$(assert_eq!($uri, rocket::http::uri::Origin::parse($expected).expect("valid origin URI"));)+
};
} }
#[test] #[test]
@ -323,8 +325,6 @@ fn check_scoped() {
} }
mod typed_uris { mod typed_uris {
use super::assert_uri_eq;
#[post("/typed_uris/<id>")] #[post("/typed_uris/<id>")]
fn simple(id: i32) { } fn simple(id: i32) { }
@ -339,8 +339,6 @@ mod typed_uris {
} }
pub mod deeper { pub mod deeper {
use super::assert_uri_eq;
#[post("/typed_uris/deeper/<id>")] #[post("/typed_uris/deeper/<id>")]
fn simple(id: i32) { } fn simple(id: i32) { }

View File

@ -1,4 +1,4 @@
#![feature(proc_macro_hygiene, decl_macro)] #![feature(proc_macro_hygiene)]
#[macro_use] extern crate rocket; #[macro_use] extern crate rocket;

View File

@ -1,4 +1,4 @@
#![feature(proc_macro_hygiene, decl_macro)] #![feature(proc_macro_hygiene)]
#[macro_use] extern crate rocket; #[macro_use] extern crate rocket;

View File

@ -1,4 +1,4 @@
#![feature(proc_macro_hygiene, decl_macro)] #![feature(proc_macro_hygiene)]
#[macro_use] extern crate rocket; #[macro_use] extern crate rocket;

View File

@ -1,6 +1,6 @@
// must-compile-successfully // must-compile-successfully
#![feature(proc_macro_hygiene, decl_macro)] #![feature(proc_macro_hygiene)]
#[macro_use] extern crate rocket; #[macro_use] extern crate rocket;

View File

@ -1,7 +1,7 @@
// normalize-stderr-test: "<(.*) as (.*)>" -> "$1 as $$TRAIT" // normalize-stderr-test: "<(.*) as (.*)>" -> "$1 as $$TRAIT"
// normalize-stderr-test: "and \d+ others" -> "and $$N others" // normalize-stderr-test: "and \d+ others" -> "and $$N others"
#![feature(proc_macro_hygiene, decl_macro)] #![feature(proc_macro_hygiene)]
#[macro_use] extern crate rocket; #[macro_use] extern crate rocket;

View File

@ -1,4 +1,4 @@
#![feature(proc_macro_hygiene, decl_macro)] #![feature(proc_macro_hygiene)]
#[macro_use] extern crate rocket; #[macro_use] extern crate rocket;

View File

@ -1,4 +1,4 @@
#![feature(proc_macro_hygiene, decl_macro)] #![feature(proc_macro_hygiene)]
#[macro_use] extern crate rocket; #[macro_use] extern crate rocket;

View File

@ -1,4 +1,4 @@
#![feature(proc_macro_hygiene, decl_macro)] #![feature(proc_macro_hygiene)]
#[macro_use] extern crate rocket; #[macro_use] extern crate rocket;

View File

@ -54,7 +54,7 @@ mod key {
/// a handler to retrieve the value of a "message" cookie. /// a handler to retrieve the value of a "message" cookie.
/// ///
/// ```rust /// ```rust
/// # #![feature(proc_macro_hygiene, decl_macro)] /// # #![feature(proc_macro_hygiene)]
/// # #[macro_use] extern crate rocket; /// # #[macro_use] extern crate rocket;
/// use rocket::http::Cookies; /// use rocket::http::Cookies;
/// ///
@ -74,7 +74,7 @@ mod key {
/// [private cookie]: Cookies::add_private() /// [private cookie]: Cookies::add_private()
/// ///
/// ```rust /// ```rust
/// # #![feature(proc_macro_hygiene, decl_macro)] /// # #![feature(proc_macro_hygiene)]
/// # #[macro_use] extern crate rocket; /// # #[macro_use] extern crate rocket;
/// # /// #
/// use rocket::http::Status; /// use rocket::http::Status;

View File

@ -155,7 +155,7 @@ use crate::uri::{self, UriPart, UriDisplay};
/// With these implementations, the following typechecks: /// With these implementations, the following typechecks:
/// ///
/// ```rust /// ```rust
/// # #![feature(proc_macro_hygiene, decl_macro)] /// # #![feature(proc_macro_hygiene)]
/// # #[macro_use] extern crate rocket; /// # #[macro_use] extern crate rocket;
/// # use std::fmt; /// # use std::fmt;
/// use rocket::http::RawStr; /// use rocket::http::RawStr;

View File

@ -61,7 +61,7 @@ use crate::uri::{Uri, UriPart, Path, Query, Formatter};
/// the following route: /// the following route:
/// ///
/// ```rust /// ```rust
/// # #![feature(proc_macro_hygiene, decl_macro)] /// # #![feature(proc_macro_hygiene)]
/// # #[macro_use] extern crate rocket; /// # #[macro_use] extern crate rocket;
/// #[get("/item/<id>?<track>")] /// #[get("/item/<id>?<track>")]
/// fn get_item(id: i32, track: Option<String>) { /* .. */ } /// fn get_item(id: i32, track: Option<String>) { /* .. */ }
@ -70,7 +70,7 @@ use crate::uri::{Uri, UriPart, Path, Query, Formatter};
/// A URI for this route can be generated as follows: /// A URI for this route can be generated as follows:
/// ///
/// ```rust /// ```rust
/// # #![feature(proc_macro_hygiene, decl_macro)] /// # #![feature(proc_macro_hygiene)]
/// # #[macro_use] extern crate rocket; /// # #[macro_use] extern crate rocket;
/// # type T = (); /// # type T = ();
/// # #[get("/item/<id>?<track>")] /// # #[get("/item/<id>?<track>")]
@ -234,7 +234,7 @@ use crate::uri::{Uri, UriPart, Path, Query, Formatter};
/// `UriDisplay` implementation is required. /// `UriDisplay` implementation is required.
/// ///
/// ```rust /// ```rust
/// # #![feature(proc_macro_hygiene, decl_macro)] /// # #![feature(proc_macro_hygiene)]
/// # #[macro_use] extern crate rocket; /// # #[macro_use] extern crate rocket;
/// use rocket::http::RawStr; /// use rocket::http::RawStr;
/// use rocket::request::FromParam; /// use rocket::request::FromParam;
@ -432,7 +432,7 @@ impl<T: UriDisplay<Query>, E> UriDisplay<Query> for Result<T, E> {
/// trait for the corresponding `UriPart`. /// trait for the corresponding `UriPart`.
/// ///
/// ```rust /// ```rust
/// # #![feature(proc_macro_hygiene, decl_macro)] /// # #![feature(proc_macro_hygiene)]
/// # #[macro_use] extern crate rocket; /// # #[macro_use] extern crate rocket;
/// #[get("/item/<id>?<track>")] /// #[get("/item/<id>?<track>")]
/// fn get_item(id: i32, track: Option<u8>) { /* .. */ } /// fn get_item(id: i32, track: Option<u8>) { /* .. */ }

View File

@ -1,4 +1,4 @@
#![feature(proc_macro_hygiene, decl_macro)] #![feature(proc_macro_hygiene)]
#[macro_use] extern crate rocket; #[macro_use] extern crate rocket;

View File

@ -1,4 +1,4 @@
#![feature(proc_macro_hygiene, decl_macro)] #![feature(proc_macro_hygiene)]
#[macro_use] extern crate rocket; #[macro_use] extern crate rocket;

View File

@ -1,4 +1,4 @@
#![feature(proc_macro_hygiene, decl_macro)] #![feature(proc_macro_hygiene)]
// #![feature(alloc_system)] // #![feature(alloc_system)]
// extern crate alloc_system; // extern crate alloc_system;

View File

@ -34,7 +34,7 @@ use yansi::Color::*;
/// declared using the `catch` decorator, as follows: /// declared using the `catch` decorator, as follows:
/// ///
/// ```rust /// ```rust
/// #![feature(proc_macro_hygiene, decl_macro)] /// #![feature(proc_macro_hygiene)]
/// ///
/// #[macro_use] extern crate rocket; /// #[macro_use] extern crate rocket;
/// ///

View File

@ -31,7 +31,7 @@ const PEEK_BYTES: usize = 512;
/// specifying the `data = "<var>"` route parameter as follows: /// specifying the `data = "<var>"` route parameter as follows:
/// ///
/// ```rust /// ```rust
/// # #![feature(proc_macro_hygiene, decl_macro)] /// # #![feature(proc_macro_hygiene)]
/// # #[macro_use] extern crate rocket; /// # #[macro_use] extern crate rocket;
/// # type DataGuard = rocket::data::Data; /// # type DataGuard = rocket::data::Data;
/// #[post("/submit", data = "<var>")] /// #[post("/submit", data = "<var>")]

View File

@ -135,7 +135,7 @@ pub type Transformed<'a, T> =
/// if the guard returns successfully. /// if the guard returns successfully.
/// ///
/// ```rust /// ```rust
/// # #![feature(proc_macro_hygiene, decl_macro)] /// # #![feature(proc_macro_hygiene)]
/// # #[macro_use] extern crate rocket; /// # #[macro_use] extern crate rocket;
/// # type DataGuard = rocket::data::Data; /// # type DataGuard = rocket::data::Data;
/// #[post("/submit", data = "<var>")] /// #[post("/submit", data = "<var>")]
@ -181,7 +181,7 @@ pub type Transformed<'a, T> =
/// `String` (an `&str`). /// `String` (an `&str`).
/// ///
/// ```rust /// ```rust
/// # #![feature(proc_macro_hygiene, decl_macro)] /// # #![feature(proc_macro_hygiene)]
/// # #[macro_use] extern crate rocket; /// # #[macro_use] extern crate rocket;
/// # #[derive(Debug)] /// # #[derive(Debug)]
/// # struct Name<'a> { first: &'a str, last: &'a str, } /// # struct Name<'a> { first: &'a str, last: &'a str, }
@ -427,7 +427,7 @@ impl<'f> FromData<'f> for Data {
/// that you can retrieve it directly from a client's request body: /// that you can retrieve it directly from a client's request body:
/// ///
/// ```rust /// ```rust
/// # #![feature(proc_macro_hygiene, decl_macro)] /// # #![feature(proc_macro_hygiene)]
/// # #[macro_use] extern crate rocket; /// # #[macro_use] extern crate rocket;
/// # type Person = rocket::data::Data; /// # type Person = rocket::data::Data;
/// #[post("/person", data = "<person>")] /// #[post("/person", data = "<person>")]
@ -439,7 +439,7 @@ impl<'f> FromData<'f> for Data {
/// A `FromDataSimple` implementation allowing this looks like: /// A `FromDataSimple` implementation allowing this looks like:
/// ///
/// ```rust /// ```rust
/// # #![feature(proc_macro_hygiene, decl_macro)] /// # #![feature(proc_macro_hygiene)]
/// # #[macro_use] extern crate rocket; /// # #[macro_use] extern crate rocket;
/// # /// #
/// # #[derive(Debug)] /// # #[derive(Debug)]

View File

@ -86,7 +86,7 @@ pub type Outcome<'r> = outcome::Outcome<Response<'r>, Status, Data>;
/// managed state and a static route, as follows: /// managed state and a static route, as follows:
/// ///
/// ```rust /// ```rust
/// # #![feature(proc_macro_hygiene, decl_macro)] /// # #![feature(proc_macro_hygiene)]
/// # #[macro_use] extern crate rocket; /// # #[macro_use] extern crate rocket;
/// # /// #
/// # #[derive(Copy, Clone)] /// # #[derive(Copy, Clone)]

View File

@ -1,5 +1,4 @@
#![feature(specialization)] #![feature(specialization)]
#![feature(decl_macro)]
#![feature(try_trait)] #![feature(try_trait)]
#![feature(proc_macro_hygiene)] #![feature(proc_macro_hygiene)]
#![feature(crate_visibility_modifier)] #![feature(crate_visibility_modifier)]
@ -52,7 +51,7 @@
//! Then, add the following to the top of your `main.rs` file: //! Then, add the following to the top of your `main.rs` file:
//! //!
//! ```rust //! ```rust
//! #![feature(proc_macro_hygiene, decl_macro)] //! #![feature(proc_macro_hygiene)]
//! //!
//! #[macro_use] extern crate rocket; //! #[macro_use] extern crate rocket;
//! # #[get("/")] fn hello() { } //! # #[get("/")] fn hello() { }
@ -63,7 +62,7 @@
//! write Rocket applications. Here's a simple example to get you started: //! write Rocket applications. Here's a simple example to get you started:
//! //!
//! ```rust //! ```rust
//! #![feature(proc_macro_hygiene, decl_macro)] //! #![feature(proc_macro_hygiene)]
//! //!
//! #[macro_use] extern crate rocket; //! #[macro_use] extern crate rocket;
//! //!

View File

@ -67,7 +67,7 @@
//! consider the following complete "Hello, world!" application, with testing. //! consider the following complete "Hello, world!" application, with testing.
//! //!
//! ```rust //! ```rust
//! #![feature(proc_macro_hygiene, decl_macro)] //! #![feature(proc_macro_hygiene)]
//! //!
//! #[macro_use] extern crate rocket; //! #[macro_use] extern crate rocket;
//! //!

View File

@ -50,7 +50,7 @@ pub enum FormDataError<'f, E> {
/// # Example /// # Example
/// ///
/// ```rust /// ```rust
/// # #![feature(proc_macro_hygiene, decl_macro)] /// # #![feature(proc_macro_hygiene)]
/// # #[macro_use] extern crate rocket; /// # #[macro_use] extern crate rocket;
/// use rocket::request::{Form, FormError, FormDataError}; /// use rocket::request::{Form, FormError, FormDataError};
/// ///

View File

@ -30,7 +30,7 @@ use crate::http::{Status, uri::{Query, FromUriParam}};
/// implements the `FromForm` trait: /// implements the `FromForm` trait:
/// ///
/// ```rust /// ```rust
/// # #![feature(proc_macro_hygiene, decl_macro)] /// # #![feature(proc_macro_hygiene)]
/// # #[macro_use] extern crate rocket; /// # #[macro_use] extern crate rocket;
/// use rocket::request::Form; /// use rocket::request::Form;
/// use rocket::http::RawStr; /// use rocket::http::RawStr;
@ -66,7 +66,7 @@ use crate::http::{Status, uri::{Query, FromUriParam}};
/// A handler that handles a form of this type can similarly by written: /// A handler that handles a form of this type can similarly by written:
/// ///
/// ```rust /// ```rust
/// # #![feature(proc_macro_hygiene, decl_macro)] /// # #![feature(proc_macro_hygiene)]
/// # #![allow(deprecated, unused_attributes)] /// # #![allow(deprecated, unused_attributes)]
/// # #[macro_use] extern crate rocket; /// # #[macro_use] extern crate rocket;
/// # use rocket::request::Form; /// # use rocket::request::Form;
@ -119,7 +119,7 @@ impl<T> Form<T> {
/// # Example /// # Example
/// ///
/// ```rust /// ```rust
/// # #![feature(proc_macro_hygiene, decl_macro)] /// # #![feature(proc_macro_hygiene)]
/// # #[macro_use] extern crate rocket; /// # #[macro_use] extern crate rocket;
/// use rocket::request::Form; /// use rocket::request::Form;
/// ///

View File

@ -13,7 +13,7 @@ use crate::request::FormItems;
/// validation. /// validation.
/// ///
/// ```rust /// ```rust
/// # #![feature(proc_macro_hygiene, decl_macro)] /// # #![feature(proc_macro_hygiene)]
/// # #![allow(deprecated, dead_code, unused_attributes)] /// # #![allow(deprecated, dead_code, unused_attributes)]
/// # #[macro_use] extern crate rocket; /// # #[macro_use] extern crate rocket;
/// #[derive(FromForm)] /// #[derive(FromForm)]
@ -30,7 +30,7 @@ use crate::request::FormItems;
/// data via the `data` parameter and `Form` type. /// data via the `data` parameter and `Form` type.
/// ///
/// ```rust /// ```rust
/// # #![feature(proc_macro_hygiene, decl_macro)] /// # #![feature(proc_macro_hygiene)]
/// # #![allow(deprecated, dead_code, unused_attributes)] /// # #![allow(deprecated, dead_code, unused_attributes)]
/// # #[macro_use] extern crate rocket; /// # #[macro_use] extern crate rocket;
/// # use rocket::request::Form; /// # use rocket::request::Form;

View File

@ -43,7 +43,7 @@ use crate::http::RawStr;
/// according to its target type: /// according to its target type:
/// ///
/// ```rust /// ```rust
/// # #![feature(proc_macro_hygiene, decl_macro)] /// # #![feature(proc_macro_hygiene)]
/// # #[macro_use] extern crate rocket; /// # #[macro_use] extern crate rocket;
/// # type Size = String; /// # type Size = String;
/// #[get("/item?<id>&<size>")] /// #[get("/item?<id>&<size>")]

View File

@ -31,7 +31,7 @@ use crate::http::uri::{Query, FromUriParam};
/// handler: /// handler:
/// ///
/// ```rust /// ```rust
/// # #![feature(proc_macro_hygiene, decl_macro)] /// # #![feature(proc_macro_hygiene)]
/// # #[macro_use] extern crate rocket; /// # #[macro_use] extern crate rocket;
/// use rocket::request::LenientForm; /// use rocket::request::LenientForm;
/// ///
@ -67,7 +67,7 @@ impl<T> LenientForm<T> {
/// # Example /// # Example
/// ///
/// ```rust /// ```rust
/// # #![feature(proc_macro_hygiene, decl_macro)] /// # #![feature(proc_macro_hygiene)]
/// # #[macro_use] extern crate rocket; /// # #[macro_use] extern crate rocket;
/// use rocket::request::LenientForm; /// use rocket::request::LenientForm;
/// ///

View File

@ -55,7 +55,7 @@ impl<S, E> IntoOutcome<S, (Status, E), ()> for Result<S, E> {
/// guard. /// guard.
/// ///
/// ```rust /// ```rust
/// # #![feature(proc_macro_hygiene, decl_macro)] /// # #![feature(proc_macro_hygiene)]
/// # #[macro_use] extern crate rocket; /// # #[macro_use] extern crate rocket;
/// # use rocket::http::Method; /// # use rocket::http::Method;
/// # type A = Method; type B = Method; type C = Method; type T = (); /// # type A = Method; type B = Method; type C = Method; type T = ();
@ -165,7 +165,7 @@ impl<S, E> IntoOutcome<S, (Status, E), ()> for Result<S, E> {
/// `sensitive` handler. /// `sensitive` handler.
/// ///
/// ```rust /// ```rust
/// # #![feature(proc_macro_hygiene, decl_macro)] /// # #![feature(proc_macro_hygiene)]
/// # #[macro_use] extern crate rocket; /// # #[macro_use] extern crate rocket;
/// # /// #
/// use rocket::Outcome; /// use rocket::Outcome;
@ -220,7 +220,7 @@ impl<S, E> IntoOutcome<S, (Status, E), ()> for Result<S, E> {
/// routes (`admin_dashboard` and `user_dashboard`): /// routes (`admin_dashboard` and `user_dashboard`):
/// ///
/// ```rust /// ```rust
/// # #![feature(proc_macro_hygiene, decl_macro)] /// # #![feature(proc_macro_hygiene)]
/// # #[macro_use] extern crate rocket; /// # #[macro_use] extern crate rocket;
/// # #[cfg(feature = "private-cookies")] mod inner { /// # #[cfg(feature = "private-cookies")] mod inner {
/// # use rocket::outcome::{IntoOutcome, Outcome}; /// # use rocket::outcome::{IntoOutcome, Outcome};
@ -283,7 +283,7 @@ impl<S, E> IntoOutcome<S, (Status, E), ()> for Result<S, E> {
/// used, as illustrated below: /// used, as illustrated below:
/// ///
/// ```rust /// ```rust
/// # #![feature(proc_macro_hygiene, decl_macro)] /// # #![feature(proc_macro_hygiene)]
/// # #[macro_use] extern crate rocket; /// # #[macro_use] extern crate rocket;
/// # #[cfg(feature = "private-cookies")] mod inner { /// # #[cfg(feature = "private-cookies")] mod inner {
/// # use rocket::outcome::{IntoOutcome, Outcome}; /// # use rocket::outcome::{IntoOutcome, Outcome};

View File

@ -19,7 +19,7 @@ use crate::http::{RawStr, uri::{Segments, SegmentError}};
/// handler for the dynamic `"/<id>"` path: /// handler for the dynamic `"/<id>"` path:
/// ///
/// ```rust /// ```rust
/// # #![feature(proc_macro_hygiene, decl_macro)] /// # #![feature(proc_macro_hygiene)]
/// # #[macro_use] extern crate rocket; /// # #[macro_use] extern crate rocket;
/// #[get("/<id>")] /// #[get("/<id>")]
/// fn hello(id: usize) -> String { /// fn hello(id: usize) -> String {
@ -54,7 +54,7 @@ use crate::http::{RawStr, uri::{Segments, SegmentError}};
/// parameter as follows: /// parameter as follows:
/// ///
/// ```rust /// ```rust
/// # #![feature(proc_macro_hygiene, decl_macro)] /// # #![feature(proc_macro_hygiene)]
/// # #[macro_use] extern crate rocket; /// # #[macro_use] extern crate rocket;
/// # use rocket::http::RawStr; /// # use rocket::http::RawStr;
/// #[get("/<id>")] /// #[get("/<id>")]
@ -172,7 +172,7 @@ use crate::http::{RawStr, uri::{Segments, SegmentError}};
/// dynamic path segment: /// dynamic path segment:
/// ///
/// ```rust /// ```rust
/// # #![feature(proc_macro_hygiene, decl_macro)] /// # #![feature(proc_macro_hygiene)]
/// # #[macro_use] extern crate rocket; /// # #[macro_use] extern crate rocket;
/// # use rocket::request::FromParam; /// # use rocket::request::FromParam;
/// # use rocket::http::RawStr; /// # use rocket::http::RawStr;

View File

@ -8,7 +8,7 @@ use crate::request::{FormItems, FormItem, Form, LenientForm, FromForm};
/// generation for every trailing query parameter, `<params..>` below: /// generation for every trailing query parameter, `<params..>` below:
/// ///
/// ```rust /// ```rust
/// # #![feature(proc_macro_hygiene, decl_macro)] /// # #![feature(proc_macro_hygiene)]
/// # #[macro_use] extern crate rocket; /// # #[macro_use] extern crate rocket;
/// # /// #
/// # use rocket::request::Form; /// # use rocket::request::Form;
@ -82,7 +82,7 @@ impl<'q> Iterator for Query<'q> {
/// route: /// route:
/// ///
/// ```rust /// ```rust
/// # #![feature(proc_macro_hygiene, decl_macro)] /// # #![feature(proc_macro_hygiene)]
/// # #[macro_use] extern crate rocket; /// # #[macro_use] extern crate rocket;
/// use rocket::request::Form; /// use rocket::request::Form;
/// ///

View File

@ -22,7 +22,7 @@ use crate::http::Status;
/// following example does just this: /// following example does just this:
/// ///
/// ```rust /// ```rust
/// # #![feature(proc_macro_hygiene, decl_macro)] /// # #![feature(proc_macro_hygiene)]
/// # #[macro_use] extern crate rocket; /// # #[macro_use] extern crate rocket;
/// use rocket::State; /// use rocket::State;
/// ///
@ -87,7 +87,7 @@ use crate::http::Status;
/// [`State::from()`] static method: /// [`State::from()`] static method:
/// ///
/// ```rust /// ```rust
/// # #![feature(proc_macro_hygiene, decl_macro)] /// # #![feature(proc_macro_hygiene)]
/// # #[macro_use] extern crate rocket; /// # #[macro_use] extern crate rocket;
/// use rocket::State; /// use rocket::State;
/// ///

View File

@ -45,7 +45,7 @@ const FLASH_COOKIE_NAME: &str = "_flash";
/// message on both the request and response sides. /// message on both the request and response sides.
/// ///
/// ```rust /// ```rust
/// # #![feature(proc_macro_hygiene, decl_macro)] /// # #![feature(proc_macro_hygiene)]
/// # #[macro_use] extern crate rocket; /// # #[macro_use] extern crate rocket;
/// use rocket::response::{Flash, Redirect}; /// use rocket::response::{Flash, Redirect};
/// use rocket::request::FlashMessage; /// use rocket::request::FlashMessage;

View File

@ -26,7 +26,7 @@ use crate::http::Status;
/// a route, _always_ use [`uri!`] to construct a valid [`Origin`]: /// a route, _always_ use [`uri!`] to construct a valid [`Origin`]:
/// ///
/// ```rust /// ```rust
/// # #![feature(proc_macro_hygiene, decl_macro)] /// # #![feature(proc_macro_hygiene)]
/// # #[macro_use] extern crate rocket; /// # #[macro_use] extern crate rocket;
/// use rocket::response::Redirect; /// use rocket::response::Redirect;
/// ///

View File

@ -12,7 +12,7 @@ use crate::request::Request;
/// as illustrated below with `T`: /// as illustrated below with `T`:
/// ///
/// ```rust /// ```rust
/// # #![feature(proc_macro_hygiene, decl_macro)] /// # #![feature(proc_macro_hygiene)]
/// # #[macro_use] extern crate rocket; /// # #[macro_use] extern crate rocket;
/// # type T = (); /// # type T = ();
/// # /// #
@ -153,7 +153,7 @@ use crate::request::Request;
/// following `Responder` implementation accomplishes this: /// following `Responder` implementation accomplishes this:
/// ///
/// ```rust /// ```rust
/// # #![feature(proc_macro_hygiene, decl_macro)] /// # #![feature(proc_macro_hygiene)]
/// # #[macro_use] extern crate rocket; /// # #[macro_use] extern crate rocket;
/// # /// #
/// # #[derive(Debug)] /// # #[derive(Debug)]

View File

@ -457,7 +457,7 @@ impl Rocket {
/// dispatched to the `hi` route. /// dispatched to the `hi` route.
/// ///
/// ```rust /// ```rust
/// # #![feature(proc_macro_hygiene, decl_macro)] /// # #![feature(proc_macro_hygiene)]
/// # #[macro_use] extern crate rocket; /// # #[macro_use] extern crate rocket;
/// # /// #
/// #[get("/world")] /// #[get("/world")]
@ -529,7 +529,7 @@ impl Rocket {
/// # Examples /// # Examples
/// ///
/// ```rust /// ```rust
/// # #![feature(proc_macro_hygiene, decl_macro)] /// # #![feature(proc_macro_hygiene)]
/// # #[macro_use] extern crate rocket; /// # #[macro_use] extern crate rocket;
/// use rocket::Request; /// use rocket::Request;
/// ///
@ -584,7 +584,7 @@ impl Rocket {
/// # Example /// # Example
/// ///
/// ```rust /// ```rust
/// # #![feature(proc_macro_hygiene, decl_macro)] /// # #![feature(proc_macro_hygiene)]
/// # #[macro_use] extern crate rocket; /// # #[macro_use] extern crate rocket;
/// use rocket::State; /// use rocket::State;
/// ///
@ -621,7 +621,7 @@ impl Rocket {
/// # Example /// # Example
/// ///
/// ```rust /// ```rust
/// # #![feature(proc_macro_hygiene, decl_macro)] /// # #![feature(proc_macro_hygiene)]
/// # #[macro_use] extern crate rocket; /// # #[macro_use] extern crate rocket;
/// use rocket::Rocket; /// use rocket::Rocket;
/// use rocket::fairing::AdHoc; /// use rocket::fairing::AdHoc;
@ -735,7 +735,7 @@ impl Rocket {
/// # Example /// # Example
/// ///
/// ```rust /// ```rust
/// # #![feature(proc_macro_hygiene, decl_macro)] /// # #![feature(proc_macro_hygiene)]
/// # #[macro_use] extern crate rocket; /// # #[macro_use] extern crate rocket;
/// use rocket::Rocket; /// use rocket::Rocket;
/// use rocket::fairing::AdHoc; /// use rocket::fairing::AdHoc;
@ -791,7 +791,7 @@ impl Rocket {
/// # Example /// # Example
/// ///
/// ```rust /// ```rust
/// # #![feature(proc_macro_hygiene, decl_macro)] /// # #![feature(proc_macro_hygiene)]
/// # #[macro_use] extern crate rocket; /// # #[macro_use] extern crate rocket;
/// use rocket::Rocket; /// use rocket::Rocket;
/// use rocket::fairing::AdHoc; /// use rocket::fairing::AdHoc;

View File

@ -1,4 +1,4 @@
#![feature(proc_macro_hygiene, decl_macro)] #![feature(proc_macro_hygiene)]
#[macro_use] extern crate rocket; #[macro_use] extern crate rocket;

View File

@ -1,4 +1,4 @@
#![feature(proc_macro_hygiene, decl_macro)] #![feature(proc_macro_hygiene)]
#[macro_use] extern crate rocket; #[macro_use] extern crate rocket;

View File

@ -1,4 +1,4 @@
#![feature(proc_macro_hygiene, decl_macro)] #![feature(proc_macro_hygiene)]
use rocket; use rocket;

View File

@ -1,4 +1,4 @@
#![feature(proc_macro_hygiene, decl_macro)] #![feature(proc_macro_hygiene)]
#[macro_use] extern crate rocket; #[macro_use] extern crate rocket;

View File

@ -1,4 +1,4 @@
#![feature(proc_macro_hygiene, decl_macro)] #![feature(proc_macro_hygiene)]
#[macro_use] extern crate rocket; #[macro_use] extern crate rocket;

View File

@ -1,4 +1,4 @@
#![feature(proc_macro_hygiene, decl_macro)] #![feature(proc_macro_hygiene)]
#[macro_use] extern crate rocket; #[macro_use] extern crate rocket;

View File

@ -1,4 +1,4 @@
#![feature(proc_macro_hygiene, decl_macro)] #![feature(proc_macro_hygiene)]
#[macro_use] extern crate rocket; #[macro_use] extern crate rocket;

View File

@ -1,4 +1,4 @@
#![feature(proc_macro_hygiene, decl_macro)] #![feature(proc_macro_hygiene)]
#[macro_use] extern crate rocket; #[macro_use] extern crate rocket;

View File

@ -1,4 +1,4 @@
#![feature(proc_macro_hygiene, decl_macro)] #![feature(proc_macro_hygiene)]
#[macro_use] extern crate rocket; #[macro_use] extern crate rocket;

View File

@ -1,4 +1,4 @@
#![feature(proc_macro_hygiene, decl_macro)] #![feature(proc_macro_hygiene)]
#[macro_use] extern crate rocket; #[macro_use] extern crate rocket;

View File

@ -1,4 +1,4 @@
#![feature(proc_macro_hygiene, decl_macro)] #![feature(proc_macro_hygiene)]
#[macro_use] #[macro_use]
#[cfg(feature = "private-cookies")] #[cfg(feature = "private-cookies")]

View File

@ -1,4 +1,4 @@
#![feature(proc_macro_hygiene, decl_macro)] #![feature(proc_macro_hygiene)]
#[macro_use] extern crate rocket; #[macro_use] extern crate rocket;

View File

@ -1,4 +1,4 @@
#![feature(proc_macro_hygiene, decl_macro)] #![feature(proc_macro_hygiene)]
#[macro_use] extern crate rocket; #[macro_use] extern crate rocket;

View File

@ -1,4 +1,4 @@
#![feature(proc_macro_hygiene, decl_macro)] #![feature(proc_macro_hygiene)]
#[macro_use] extern crate rocket; #[macro_use] extern crate rocket;

View File

@ -1,4 +1,4 @@
#![feature(proc_macro_hygiene, decl_macro)] #![feature(proc_macro_hygiene)]
#![allow(dead_code)] // This test is only here so that we can ensure it compiles. #![allow(dead_code)] // This test is only here so that we can ensure it compiles.
#[macro_use] extern crate rocket; #[macro_use] extern crate rocket;

View File

@ -1,4 +1,4 @@
#![feature(proc_macro_hygiene, decl_macro)] #![feature(proc_macro_hygiene)]
#[macro_use] extern crate rocket; #[macro_use] extern crate rocket;

View File

@ -1,4 +1,4 @@
#![feature(proc_macro_hygiene, decl_macro)] #![feature(proc_macro_hygiene)]
#[macro_use] extern crate rocket; #[macro_use] extern crate rocket;

View File

@ -1,4 +1,4 @@
#![feature(proc_macro_hygiene, decl_macro)] #![feature(proc_macro_hygiene)]
#[macro_use] extern crate rocket; #[macro_use] extern crate rocket;

View File

@ -1,4 +1,4 @@
#![feature(proc_macro_hygiene, decl_macro)] #![feature(proc_macro_hygiene)]
#[macro_use] extern crate rocket; #[macro_use] extern crate rocket;

View File

@ -1,4 +1,4 @@
#![feature(proc_macro_hygiene, decl_macro)] #![feature(proc_macro_hygiene)]
#[macro_use] extern crate rocket; #[macro_use] extern crate rocket;

View File

@ -1,4 +1,4 @@
#![feature(proc_macro_hygiene, decl_macro)] #![feature(proc_macro_hygiene)]
#[macro_use] extern crate rocket; #[macro_use] extern crate rocket;

View File

@ -1,4 +1,4 @@
#![feature(proc_macro_hygiene, decl_macro)] #![feature(proc_macro_hygiene)]
#[macro_use] extern crate rocket; #[macro_use] extern crate rocket;

View File

@ -1,4 +1,4 @@
#![feature(proc_macro_hygiene, decl_macro)] #![feature(proc_macro_hygiene)]
#[macro_use] extern crate rocket; #[macro_use] extern crate rocket;
#[macro_use] extern crate serde_derive; #[macro_use] extern crate serde_derive;

View File

@ -1,4 +1,4 @@
#![feature(proc_macro_hygiene, decl_macro)] #![feature(proc_macro_hygiene)]
#[macro_use] extern crate rocket; #[macro_use] extern crate rocket;

View File

@ -1,4 +1,4 @@
#![feature(proc_macro_hygiene, decl_macro)] #![feature(proc_macro_hygiene)]
#[macro_use] extern crate rocket; #[macro_use] extern crate rocket;

View File

@ -1,4 +1,4 @@
#![feature(proc_macro_hygiene, decl_macro)] #![feature(proc_macro_hygiene)]
#[macro_use] extern crate rocket; #[macro_use] extern crate rocket;

View File

@ -1,4 +1,4 @@
#![feature(proc_macro_hygiene, decl_macro)] #![feature(proc_macro_hygiene)]
#[macro_use] extern crate rocket; #[macro_use] extern crate rocket;

View File

@ -1,4 +1,4 @@
#![feature(proc_macro_hygiene, decl_macro)] #![feature(proc_macro_hygiene)]
#[macro_use] extern crate rocket; #[macro_use] extern crate rocket;

View File

@ -1,4 +1,4 @@
#![feature(proc_macro_hygiene, decl_macro)] #![feature(proc_macro_hygiene)]
#[macro_use] extern crate rocket; #[macro_use] extern crate rocket;
#[macro_use] extern crate serde_derive; #[macro_use] extern crate serde_derive;

View File

@ -1,4 +1,4 @@
#![feature(proc_macro_hygiene, decl_macro)] #![feature(proc_macro_hygiene)]
#[macro_use] extern crate rocket; #[macro_use] extern crate rocket;

View File

@ -1,4 +1,4 @@
#![feature(proc_macro_hygiene, decl_macro)] #![feature(proc_macro_hygiene)]
#[macro_use] extern crate rocket; #[macro_use] extern crate rocket;

View File

@ -1,4 +1,4 @@
#![feature(proc_macro_hygiene, decl_macro)] #![feature(proc_macro_hygiene)]
#[macro_use] extern crate rocket; #[macro_use] extern crate rocket;

View File

@ -1,4 +1,4 @@
#![feature(proc_macro_hygiene, decl_macro)] #![feature(proc_macro_hygiene)]
#[macro_use] extern crate rocket; #[macro_use] extern crate rocket;
#[macro_use] extern crate rocket_contrib; #[macro_use] extern crate rocket_contrib;

View File

@ -1,4 +1,4 @@
#![feature(proc_macro_hygiene, decl_macro)] #![feature(proc_macro_hygiene)]
#[macro_use] extern crate rocket; #[macro_use] extern crate rocket;

View File

@ -1,4 +1,4 @@
#![feature(proc_macro_hygiene, decl_macro)] #![feature(proc_macro_hygiene)]
#[macro_use] extern crate rocket; #[macro_use] extern crate rocket;
#[macro_use] extern crate serde_derive; #[macro_use] extern crate serde_derive;

View File

@ -1,4 +1,4 @@
#![feature(proc_macro_hygiene, decl_macro)] #![feature(proc_macro_hygiene)]
#[macro_use] extern crate rocket; #[macro_use] extern crate rocket;

View File

@ -1,4 +1,4 @@
#![feature(proc_macro_hygiene, decl_macro)] #![feature(proc_macro_hygiene)]
#[macro_use] extern crate rocket; #[macro_use] extern crate rocket;

View File

@ -1,4 +1,4 @@
#![feature(proc_macro_hygiene, decl_macro)] #![feature(proc_macro_hygiene)]
#[macro_use] extern crate rocket; #[macro_use] extern crate rocket;

View File

@ -1,4 +1,4 @@
#![feature(proc_macro_hygiene, decl_macro)] #![feature(proc_macro_hygiene)]
#[macro_use] extern crate rocket; #[macro_use] extern crate rocket;

View File

@ -1,4 +1,4 @@
#![feature(proc_macro_hygiene, decl_macro)] #![feature(proc_macro_hygiene)]
#[macro_use] extern crate rocket; #[macro_use] extern crate rocket;

View File

@ -1,4 +1,4 @@
#![feature(proc_macro_hygiene, decl_macro)] #![feature(proc_macro_hygiene)]
#[macro_use] extern crate rocket; #[macro_use] extern crate rocket;

View File

@ -1,4 +1,4 @@
#![feature(proc_macro_hygiene, decl_macro)] #![feature(proc_macro_hygiene)]
#[macro_use] extern crate rocket; #[macro_use] extern crate rocket;

View File

@ -1,4 +1,4 @@
#![feature(proc_macro_hygiene, decl_macro)] #![feature(proc_macro_hygiene)]
#[macro_use] extern crate rocket; #[macro_use] extern crate rocket;

View File

@ -1,4 +1,4 @@
#![feature(proc_macro_hygiene, decl_macro)] #![feature(proc_macro_hygiene)]
#[macro_use] extern crate rocket; #[macro_use] extern crate rocket;

View File

@ -1,4 +1,4 @@
#![feature(proc_macro_hygiene, decl_macro)] #![feature(proc_macro_hygiene)]
#[macro_use] extern crate rocket; #[macro_use] extern crate rocket;

View File

@ -1,4 +1,4 @@
#![feature(proc_macro_hygiene, decl_macro)] #![feature(proc_macro_hygiene)]
#[macro_use] extern crate rocket; #[macro_use] extern crate rocket;

View File

@ -1,4 +1,4 @@
#![feature(proc_macro_hygiene, decl_macro)] #![feature(proc_macro_hygiene)]
#[macro_use] extern crate rocket; #[macro_use] extern crate rocket;

Some files were not shown because too many files have changed in this diff Show More