Skip to content

Commit d24ae25

Browse files
committed
Rename feature gate
1 parent 8b0f5ac commit d24ae25

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/librustc_feature/active.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,7 @@ declare_features! (
528528
(active, cfg_sanitize, "1.41.0", Some(39699), None),
529529

530530
/// Allows using `&mut` in constant functions.
531-
(active, const_fn_mut_refs, "1.41.0", None, None),
531+
(active, const_mut_refs, "1.41.0", Some(57349), None),
532532

533533
// -------------------------------------------------------------------------
534534
// feature-group-end: actual feature gates

src/librustc_mir/transform/qualify_min_const_fn.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ fn check_ty(tcx: TyCtxt<'tcx>, ty: Ty<'tcx>, span: Span, fn_def_id: DefId) -> Mc
8181
for ty in ty.walk() {
8282
match ty.kind {
8383
ty::Ref(_, _, hir::Mutability::Mutable) => {
84-
if !tcx.features().const_fn_mut_refs {
84+
if !tcx.features().const_mut_refs {
8585
return Err((
8686
span,
8787
"mutable references in const fn are unstable".into(),

src/libsyntax_pos/symbol.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,13 +203,13 @@ symbols! {
203203
const_constructor,
204204
const_extern_fn,
205205
const_fn,
206-
const_fn_mut_refs,
207206
const_fn_union,
208207
const_generics,
209208
const_if_match,
210209
const_indexing,
211210
const_in_array_repeat_expressions,
212211
const_let,
212+
const_mut_refs,
213213
const_panic,
214214
const_raw_ptr_deref,
215215
const_raw_ptr_to_usize_cast,

src/test/ui/consts/const_fn_mut_refs.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// run-pass
22

3-
#![feature(const_fn_mut_refs)]
3+
#![feature(const_mut_refs)]
44

55
struct Foo {
66
x: i32

0 commit comments

Comments
 (0)