@@ -40,16 +40,6 @@ use symbol::{keywords, Symbol};
40
40
use std:: { env} ;
41
41
42
42
macro_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
- } } ;
53
43
( $field: ident) => { {
54
44
fn f( features: & mut Features , _: Span ) {
55
45
features. $field = true ;
@@ -219,9 +209,6 @@ declare_features! (
219
209
// Allows the definition of `const fn` functions with some advanced features.
220
210
( active, const_fn, "1.2.0" , Some ( 24111 ) , None ) ,
221
211
222
- // Allows the definition of `const fn` functions.
223
- ( active, min_const_fn, "1.30.0" , Some ( 53555 ) , None ) ,
224
-
225
212
// Allows let bindings and destructuring in `const fn` functions and constants.
226
213
( active, const_let, "1.22.1" , Some ( 48821 ) , None ) ,
227
214
@@ -685,6 +672,8 @@ declare_features! (
685
672
( accepted, extern_prelude, "1.30.0" , Some ( 44660 ) , None ) ,
686
673
// Parentheses in patterns
687
674
( 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 ) ,
688
677
) ;
689
678
690
679
// If you change this, please modify src/doc/unstable-book as well. You must
0 commit comments