Skip to content

Commit 94e8677

Browse files
library: Stabilize const_unsafecell_get_mut
1 parent 2a2c315 commit 94e8677

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

library/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
}

library/core/src/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,6 @@
155155
#![feature(const_typed_swap)]
156156
#![feature(const_ub_checks)]
157157
#![feature(const_unicode_case_lookup)]
158-
#![feature(const_unsafecell_get_mut)]
159158
#![feature(coverage_attribute)]
160159
#![feature(do_not_recommend)]
161160
#![feature(duration_consts_float)]

0 commit comments

Comments
 (0)