Remove use of the 'const_fn' feature.

This commit is contained in:
jeb 2018-08-19 03:43:56 -06:00 committed by Sergio Benitez
parent 42361c31f1
commit 1da506ea5d
4 changed files with 3 additions and 5 deletions

View File

@ -1,6 +1,5 @@
#![feature(specialization)]
#![feature(proc_macro_non_items)]
#![feature(const_fn)]
#![feature(try_from)]
#![feature(crate_visibility_modifier)]
#![recursion_limit="256"]

View File

@ -101,7 +101,7 @@ macro_rules! ctrs {
#[doc=$reason]
#[doc="</i>."]
#[allow(non_upper_case_globals)]
pub const $name: Status = Status::new($code, $reason);
pub const $name: Status = Status { code: $code, reason: $reason };
)+
/// Returns a Status given a standard status code `code`. If `code` is
@ -155,7 +155,7 @@ impl Status {
/// assert_eq!(custom.to_string(), "299 Somewhat Successful".to_string());
/// ```
#[inline(always)]
pub const fn new(code: u16, reason: &'static str) -> Status {
pub fn new(code: u16, reason: &'static str) -> Status {
Status { code, reason }
}

View File

@ -1,5 +1,4 @@
#![feature(specialization)]
#![feature(const_fn)]
#![feature(plugin, decl_macro)]
#![feature(try_trait)]
#![feature(fnbox)]

View File

@ -1,4 +1,4 @@
#![feature(plugin, decl_macro, custom_derive, const_fn)]
#![feature(plugin, decl_macro, custom_derive)]
#![plugin(rocket_codegen)]
#[macro_use] extern crate rocket;