Skip to content

Commit 524a5e1

Browse files
committed
also stabilize const_refs_to_cell
1 parent 29c8eef commit 524a5e1

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

alloc/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,6 @@
114114
#![feature(const_maybe_uninit_write)]
115115
#![feature(const_option)]
116116
#![feature(const_pin)]
117-
#![feature(const_refs_to_cell)]
118117
#![feature(const_size_of_val)]
119118
#![feature(core_intrinsics)]
120119
#![feature(deprecated_suggestion)]
@@ -165,6 +164,7 @@
165164
// Language features:
166165
// tidy-alphabetical-start
167166
#![cfg_attr(bootstrap, feature(const_mut_refs))]
167+
#![cfg_attr(bootstrap, feature(const_refs_to_cell))]
168168
#![cfg_attr(not(test), feature(coroutine_trait))]
169169
#![cfg_attr(test, feature(panic_update_hook))]
170170
#![cfg_attr(test, feature(test))]

core/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,7 @@
192192
// Language features:
193193
// tidy-alphabetical-start
194194
#![cfg_attr(bootstrap, feature(const_mut_refs))]
195+
#![cfg_attr(bootstrap, feature(const_refs_to_cell))]
195196
#![feature(abi_unadjusted)]
196197
#![feature(adt_const_params)]
197198
#![feature(allow_internal_unsafe)]
@@ -203,7 +204,6 @@
203204
#![feature(cfg_ub_checks)]
204205
#![feature(const_for)]
205206
#![feature(const_precise_live_drops)]
206-
#![feature(const_refs_to_cell)]
207207
#![feature(decl_macro)]
208208
#![feature(deprecated_suggestion)]
209209
#![feature(doc_cfg)]

core/src/slice/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -846,7 +846,7 @@ impl<T> [T] {
846846
/// [`as_mut_ptr`]: slice::as_mut_ptr
847847
#[stable(feature = "slice_ptr_range", since = "1.48.0")]
848848
#[rustc_const_stable(feature = "const_ptr_offset", since = "1.61.0")]
849-
#[rustc_allow_const_fn_unstable(const_mut_refs, const_refs_to_cell)]
849+
#[cfg_attr(bootstrap, rustc_allow_const_fn_unstable(const_mut_refs, const_refs_to_cell))]
850850
#[inline]
851851
#[must_use]
852852
pub const fn as_mut_ptr_range(&mut self) -> Range<*mut T> {

0 commit comments

Comments
 (0)