Skip to content

Commit 12ac49a

Browse files
committed
Add feature gate for &mut in const fns
1 parent 4af3ee8 commit 12ac49a

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
@@ -527,6 +527,9 @@ declare_features! (
527527
/// Allows the use of `#[cfg(sanitize = "option")]`; set when -Zsanitizer is used.
528528
(active, cfg_sanitize, "1.41.0", Some(39699), None),
529529

530+
/// Allows using `&mut` in constant functions.
531+
(active, const_fn_mut_refs, "1.41.0", None, None),
532+
530533
// -------------------------------------------------------------------------
531534
// feature-group-end: actual feature gates
532535
// -------------------------------------------------------------------------

src/libsyntax_pos/symbol.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,7 @@ symbols! {
203203
const_constructor,
204204
const_extern_fn,
205205
const_fn,
206+
const_fn_mut_refs,
206207
const_fn_union,
207208
const_generics,
208209
const_if_match,

0 commit comments

Comments
 (0)