Skip to content

Commit

Permalink
Stabilize min_const_fn feature gate
Browse files Browse the repository at this point in the history
  • Loading branch information
oli-obk committed Oct 5, 2018
1 parent ccbe787 commit fb04e26
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions src/libsyntax/feature_gate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,6 @@ use symbol::{keywords, Symbol};
use std::{env};

macro_rules! set {
// The const_fn feature also enables the min_const_fn feature, because `min_const_fn` allows
// the declaration `const fn`, but the `const_fn` feature gate enables things inside those
// functions that we do not want to expose to the user for now.
(const_fn) => {{
fn f(features: &mut Features, _: Span) {
features.const_fn = true;
features.min_const_fn = true;
}
f as fn(&mut Features, Span)
}};
($field: ident) => {{
fn f(features: &mut Features, _: Span) {
features.$field = true;
Expand Down Expand Up @@ -219,9 +209,6 @@ declare_features! (
// Allows the definition of `const fn` functions with some advanced features.
(active, const_fn, "1.2.0", Some(24111), None),

// Allows the definition of `const fn` functions.
(active, min_const_fn, "1.30.0", Some(53555), None),

// Allows let bindings and destructuring in `const fn` functions and constants.
(active, const_let, "1.22.1", Some(48821), None),

Expand Down Expand Up @@ -685,6 +672,8 @@ declare_features! (
(accepted, extern_prelude, "1.30.0", Some(44660), None),
// Parentheses in patterns
(accepted, pattern_parentheses, "1.31.0", Some(51087), None),
// Allows the definition of `const fn` functions.
(accepted, min_const_fn, "1.31.0", Some(53555), None),
);

// If you change this, please modify src/doc/unstable-book as well. You must
Expand Down

0 comments on commit fb04e26

Please sign in to comment.