diff options
| author | Jubilee Young <workingjubilee@gmail.com> | 2024-09-27 13:49:49 -0700 |
|---|---|---|
| committer | Jubilee Young <workingjubilee@gmail.com> | 2024-10-02 14:10:12 -0700 |
| commit | 75db6b29b5ad03f4ca4a8cfcc18f76feca32731a (patch) | |
| tree | 35c0e29d18beb0af272030914b761a31eeab7476 | |
| parent | 966405d1072bda18810a886418be1ed7da4dac15 (diff) | |
| download | rust-75db6b29b5ad03f4ca4a8cfcc18f76feca32731a.tar.gz rust-75db6b29b5ad03f4ca4a8cfcc18f76feca32731a.zip | |
library: Stabilize `const_unsafecell_get_mut`
Const-stabilizes: - `UnsafeCell::get_mut`
| -rw-r--r-- | library/core/src/cell.rs | 3 | ||||
| -rw-r--r-- | library/core/src/lib.rs | 1 |
2 files changed, 2 insertions, 2 deletions
diff --git a/library/core/src/cell.rs b/library/core/src/cell.rs index c99f1aece4f..a5cfddd281d 100644 --- a/library/core/src/cell.rs +++ b/library/core/src/cell.rs @@ -2173,7 +2173,8 @@ impl<T: ?Sized> UnsafeCell<T> { /// ``` #[inline(always)] #[stable(feature = "unsafe_cell_get_mut", since = "1.50.0")] - #[rustc_const_unstable(feature = "const_unsafecell_get_mut", issue = "88836")] + #[cfg_attr(bootstrap, rustc_allow_const_fn_unstable(const_mut_refs))] + #[rustc_const_stable(feature = "const_unsafecell_get_mut", since = "CURRENT_RUSTC_VERSION")] pub const fn get_mut(&mut self) -> &mut T { &mut self.value } diff --git a/library/core/src/lib.rs b/library/core/src/lib.rs index bcc38720ad1..dc5716a5bb3 100644 --- a/library/core/src/lib.rs +++ b/library/core/src/lib.rs @@ -158,7 +158,6 @@ #![feature(const_typed_swap)] #![feature(const_ub_checks)] #![feature(const_unicode_case_lookup)] -#![feature(const_unsafecell_get_mut)] #![feature(coverage_attribute)] #![feature(do_not_recommend)] #![feature(duration_consts_float)] |
