Skip to content

Commit

Permalink
Add feature gate for &mut in const fns
Browse files Browse the repository at this point in the history
  • Loading branch information
pvdrz committed Dec 2, 2019
1 parent 4af3ee8 commit 12ac49a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/librustc_feature/active.rs
Expand Up @@ -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
// -------------------------------------------------------------------------
Expand Down
1 change: 1 addition & 0 deletions src/libsyntax_pos/symbol.rs
Expand Up @@ -203,6 +203,7 @@ symbols! {
const_constructor,
const_extern_fn,
const_fn,
const_fn_mut_refs,
const_fn_union,
const_generics,
const_if_match,
Expand Down

0 comments on commit 12ac49a

Please sign in to comment.