Skip to content

Commit 57959b2

Browse files
Add feature gate for const_loop
1 parent 8f3021b commit 57959b2

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/librustc_feature/active.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -538,6 +538,9 @@ declare_features! (
538538
/// Allows using `&mut` in constant functions.
539539
(active, const_mut_refs, "1.41.0", Some(57349), None),
540540

541+
/// Allows the use of `loop` and `while` in constants.
542+
(active, const_loop, "1.42.0", Some(52000), None),
543+
541544
// -------------------------------------------------------------------------
542545
// feature-group-end: actual feature gates
543546
// -------------------------------------------------------------------------

src/libsyntax_pos/symbol.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,7 @@ symbols! {
213213
const_indexing,
214214
const_in_array_repeat_expressions,
215215
const_let,
216+
const_loop,
216217
const_mut_refs,
217218
const_panic,
218219
const_raw_ptr_deref,

0 commit comments

Comments
 (0)