Add feature gate for &mut in const fns

This commit is contained in:
Christian Poveda 2019-11-17 18:43:26 -05:00
parent 4af3ee8ee2
commit 12ac49afc9
2 changed files with 4 additions and 0 deletions

View File

@ -527,6 +527,9 @@ declare_features! (
/// Allows the use of `#[cfg(sanitize = "option")]`; set when -Zsanitizer is used.
(active, cfg_sanitize, "1.41.0", Some(39699), None),
/// Allows using `&mut` in constant functions.
(active, const_fn_mut_refs, "1.41.0", None, None),
// -------------------------------------------------------------------------
// feature-group-end: actual feature gates
// -------------------------------------------------------------------------

View File

@ -203,6 +203,7 @@ symbols! {
const_constructor,
const_extern_fn,
const_fn,
const_fn_mut_refs,
const_fn_union,
const_generics,
const_if_match,