From 86e1555e9fe6a000958db50710838826952e4515 Mon Sep 17 00:00:00 2001 From: Dylan MacKenzie Date: Thu, 25 Jun 2020 17:40:06 -0700 Subject: [PATCH] Mark `const_loop` feature gate as accepted --- src/librustc_feature/accepted.rs | 2 ++ src/librustc_feature/active.rs | 3 --- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/librustc_feature/accepted.rs b/src/librustc_feature/accepted.rs index 28a08330d4913..b164b21913d6e 100644 --- a/src/librustc_feature/accepted.rs +++ b/src/librustc_feature/accepted.rs @@ -263,6 +263,8 @@ declare_features! ( (accepted, slice_patterns, "1.42.0", Some(62254), None), /// Allows the use of `if` and `match` in constants. (accepted, const_if_match, "1.45.0", Some(49146), None), + /// Allows the use of `loop` and `while` in constants. + (accepted, const_loop, "1.45.0", Some(52000), None), // ------------------------------------------------------------------------- // feature-group-end: accepted features diff --git a/src/librustc_feature/active.rs b/src/librustc_feature/active.rs index a80ac3105ce5d..8660d6a8d6410 100644 --- a/src/librustc_feature/active.rs +++ b/src/librustc_feature/active.rs @@ -527,9 +527,6 @@ declare_features! ( /// Allows using `&mut` in constant functions. (active, const_mut_refs, "1.41.0", Some(57349), None), - /// Allows the use of `loop` and `while` in constants. - (active, const_loop, "1.41.0", Some(52000), None), - /// Allows bindings in the subpattern of a binding pattern. /// For example, you can write `x @ Some(y)`. (active, bindings_after_at, "1.41.0", Some(65490), None),