@@ -40,16 +40,6 @@ use symbol::{keywords, Symbol};
4040use std:: { env} ;
4141
4242macro_rules! set {
43- // The const_fn feature also enables the min_const_fn feature, because `min_const_fn` allows
44- // the declaration `const fn`, but the `const_fn` feature gate enables things inside those
45- // functions that we do not want to expose to the user for now.
46- ( const_fn) => { {
47- fn f( features: & mut Features , _: Span ) {
48- features. const_fn = true ;
49- features. min_const_fn = true ;
50- }
51- f as fn ( & mut Features , Span )
52- } } ;
5343 ( $field: ident) => { {
5444 fn f( features: & mut Features , _: Span ) {
5545 features. $field = true ;
@@ -219,9 +209,6 @@ declare_features! (
219209 // Allows the definition of `const fn` functions with some advanced features.
220210 ( active, const_fn, "1.2.0" , Some ( 24111 ) , None ) ,
221211
222- // Allows the definition of `const fn` functions.
223- ( active, min_const_fn, "1.30.0" , Some ( 53555 ) , None ) ,
224-
225212 // Allows let bindings and destructuring in `const fn` functions and constants.
226213 ( active, const_let, "1.22.1" , Some ( 48821 ) , None ) ,
227214
@@ -685,6 +672,8 @@ declare_features! (
685672 ( accepted, extern_prelude, "1.30.0" , Some ( 44660 ) , None ) ,
686673 // Parentheses in patterns
687674 ( accepted, pattern_parentheses, "1.31.0" , Some ( 51087 ) , None ) ,
675+ // Allows the definition of `const fn` functions.
676+ ( accepted, min_const_fn, "1.31.0" , Some ( 53555 ) , None ) ,
688677) ;
689678
690679// If you change this, please modify src/doc/unstable-book as well. You must
0 commit comments