From fd6d577158018d458a08da6d610b3e313b8ad271 Mon Sep 17 00:00:00 2001 From: Sergio Benitez Date: Sat, 18 Aug 2018 17:06:28 -0700 Subject: [PATCH] Remove 'use_extern_macros' feature: stabilized. --- contrib/lib/src/databases.rs | 9 ++------- contrib/lib/src/lib.rs | 1 - contrib/lib/tests/databases.rs | 2 -- core/codegen/build.rs | 2 +- core/http/src/lib.rs | 2 +- core/lib/build.rs | 4 ++-- core/lib/src/lib.rs | 2 +- examples/todo/src/main.rs | 2 +- 8 files changed, 8 insertions(+), 16 deletions(-) diff --git a/contrib/lib/src/databases.rs b/contrib/lib/src/databases.rs index bf2d0be6..529ade82 100644 --- a/contrib/lib/src/databases.rs +++ b/contrib/lib/src/databases.rs @@ -54,8 +54,6 @@ //! In your application's source code, one-time: //! //! ```rust -//! # #![feature(use_extern_macros)] -//! # //! # extern crate rocket; //! # extern crate rocket_contrib; //! # @@ -76,7 +74,7 @@ //! Whenever a connection to the database is needed: //! //! ```rust -//! # #![feature(plugin, decl_macro, use_extern_macros)] +//! # #![feature(plugin, decl_macro)] //! # #![plugin(rocket_codegen)] //! # //! # extern crate rocket; @@ -192,7 +190,6 @@ //! internal type of the structure must implement [`Poolable`]. //! //! ```rust -//! # #![feature(use_extern_macros)] //! # extern crate rocket; //! # extern crate rocket_contrib; //! use rocket_contrib::databases::{database, diesel}; @@ -228,7 +225,6 @@ //! together, a use of the `#[database]` attribute looks as follows: //! //! ```rust -//! # #![feature(use_extern_macros)] //! # extern crate rocket; //! # extern crate rocket_contrib; //! # @@ -267,7 +263,6 @@ //! connection to a given database: //! //! ```rust -//! # #![feature(use_extern_macros)] //! # #![feature(plugin, decl_macro)] //! # #![plugin(rocket_codegen)] //! # @@ -290,7 +285,7 @@ //! connection type: //! //! ```rust -//! # #![feature(plugin, decl_macro, use_extern_macros)] +//! # #![feature(plugin, decl_macro)] //! # #![plugin(rocket_codegen)] //! # //! # extern crate rocket; diff --git a/contrib/lib/src/lib.rs b/contrib/lib/src/lib.rs index 1e93c8ce..72932463 100644 --- a/contrib/lib/src/lib.rs +++ b/contrib/lib/src/lib.rs @@ -1,4 +1,3 @@ -#![feature(use_extern_macros)] #![feature(crate_visibility_modifier)] #![feature(never_type)] #![feature(doc_cfg)] diff --git a/contrib/lib/tests/databases.rs b/contrib/lib/tests/databases.rs index 31d7ff89..c3351772 100644 --- a/contrib/lib/tests/databases.rs +++ b/contrib/lib/tests/databases.rs @@ -1,5 +1,3 @@ -#![feature(use_extern_macros)] - extern crate rocket; extern crate rocket_contrib; diff --git a/core/codegen/build.rs b/core/codegen/build.rs index 68a0afc2..a2024820 100644 --- a/core/codegen/build.rs +++ b/core/codegen/build.rs @@ -8,7 +8,7 @@ use yansi::Color::{Red, Yellow, Blue, White}; use version_check::{supports_features, is_min_version, is_min_date}; // Specifies the minimum nightly version needed to compile Rocket's codegen. -const MIN_DATE: &'static str = "2018-08-14"; +const MIN_DATE: &'static str = "2018-08-17"; const MIN_VERSION: &'static str = "1.30.0-nightly"; fn main() { diff --git a/core/http/src/lib.rs b/core/http/src/lib.rs index f719c4cd..c8148a32 100644 --- a/core/http/src/lib.rs +++ b/core/http/src/lib.rs @@ -1,5 +1,5 @@ #![feature(specialization)] -#![feature(proc_macro_non_items, use_extern_macros)] +#![feature(proc_macro_non_items)] #![feature(const_fn)] #![feature(try_from)] #![feature(crate_visibility_modifier)] diff --git a/core/lib/build.rs b/core/lib/build.rs index 74c60fe9..68fb4db0 100644 --- a/core/lib/build.rs +++ b/core/lib/build.rs @@ -8,8 +8,8 @@ use yansi::Color::{Red, Yellow, Blue, White}; use version_check::{supports_features, is_min_version, is_min_date}; // Specifies the minimum nightly version needed to compile Rocket. -const MIN_DATE: &'static str = "2018-07-16"; -const MIN_VERSION: &'static str = "1.29.0-nightly"; +const MIN_DATE: &'static str = "2018-08-17"; +const MIN_VERSION: &'static str = "1.30.0-nightly"; fn main() { let ok_channel = supports_features(); diff --git a/core/lib/src/lib.rs b/core/lib/src/lib.rs index 4b02764e..6e0ee5e0 100644 --- a/core/lib/src/lib.rs +++ b/core/lib/src/lib.rs @@ -4,7 +4,7 @@ #![feature(try_trait)] #![feature(fnbox)] #![feature(never_type)] -#![feature(proc_macro_non_items, use_extern_macros)] +#![feature(proc_macro_non_items)] #![feature(crate_visibility_modifier)] #![feature(try_from)] diff --git a/examples/todo/src/main.rs b/examples/todo/src/main.rs index e697b1fa..51536365 100644 --- a/examples/todo/src/main.rs +++ b/examples/todo/src/main.rs @@ -1,4 +1,4 @@ -#![feature(plugin, decl_macro, use_extern_macros, custom_derive, const_fn)] +#![feature(plugin, decl_macro, custom_derive, const_fn)] #![plugin(rocket_codegen)] #[macro_use] extern crate rocket;