Skip to content

Commit 51ed903

Browse files
library: Stabilize const_unsafecell_get_mut
Const-stabilizes: - `UnsafeCell::get_mut`
1 parent cd6c1cc commit 51ed903

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

core/src/cell.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -2173,7 +2173,8 @@ impl<T: ?Sized> UnsafeCell<T> {
21732173
/// ```
21742174
#[inline(always)]
21752175
#[stable(feature = "unsafe_cell_get_mut", since = "1.50.0")]
2176-
#[rustc_const_unstable(feature = "const_unsafecell_get_mut", issue = "88836")]
2176+
#[cfg_attr(bootstrap, rustc_allow_const_fn_unstable(const_mut_refs))]
2177+
#[rustc_const_stable(feature = "const_unsafecell_get_mut", since = "CURRENT_RUSTC_VERSION")]
21772178
pub const fn get_mut(&mut self) -> &mut T {
21782179
&mut self.value
21792180
}

core/src/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,6 @@
158158
#![feature(const_typed_swap)]
159159
#![feature(const_ub_checks)]
160160
#![feature(const_unicode_case_lookup)]
161-
#![feature(const_unsafecell_get_mut)]
162161
#![feature(coverage_attribute)]
163162
#![feature(do_not_recommend)]
164163
#![feature(duration_consts_float)]

0 commit comments

Comments
 (0)