Add feature gate for `const_loop`

This commit is contained in:
Dylan MacKenzie 2019-12-10 12:41:58 -08:00
parent 8f3021bd2c
commit 57959b2bdc
2 changed files with 4 additions and 0 deletions

View File

@ -538,6 +538,9 @@ 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.42.0", Some(52000), None),
// -------------------------------------------------------------------------
// feature-group-end: actual feature gates
// -------------------------------------------------------------------------

View File

@ -213,6 +213,7 @@ symbols! {
const_indexing,
const_in_array_repeat_expressions,
const_let,
const_loop,
const_mut_refs,
const_panic,
const_raw_ptr_deref,