Skip to content

Commit 9db1f42

Browse files
committed
Stabilize unsafe_cell_get_mut
1 parent 774bce7 commit 9db1f42

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

library/core/src/cell.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1618,7 +1618,6 @@ impl<T: ?Sized + fmt::Display> fmt::Display for RefMut<'_, T> {
16181618
/// implies exclusive access to its `T`:
16191619
///
16201620
/// ```rust
1621-
/// #![feature(unsafe_cell_get_mut)]
16221621
/// #![forbid(unsafe_code)] // with exclusive accesses,
16231622
/// // `UnsafeCell` is a transparent no-op wrapper,
16241623
/// // so no need for `unsafe` here.
@@ -1722,7 +1721,6 @@ impl<T: ?Sized> UnsafeCell<T> {
17221721
/// # Examples
17231722
///
17241723
/// ```
1725-
/// #![feature(unsafe_cell_get_mut)]
17261724
/// use std::cell::UnsafeCell;
17271725
///
17281726
/// let mut c = UnsafeCell::new(5);
@@ -1731,7 +1729,7 @@ impl<T: ?Sized> UnsafeCell<T> {
17311729
/// assert_eq!(*c.get_mut(), 6);
17321730
/// ```
17331731
#[inline]
1734-
#[unstable(feature = "unsafe_cell_get_mut", issue = "76943")]
1732+
#[stable(feature = "unsafe_cell_get_mut", since = "1.50.0")]
17351733
pub fn get_mut(&mut self) -> &mut T {
17361734
&mut self.value
17371735
}

library/std/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,6 @@
320320
#![feature(try_reserve)]
321321
#![feature(unboxed_closures)]
322322
#![feature(unsafe_block_in_unsafe_fn)]
323-
#![feature(unsafe_cell_get_mut)]
324323
#![feature(unsafe_cell_raw_get)]
325324
#![feature(unwind_attributes)]
326325
#![feature(vec_into_raw_parts)]

0 commit comments

Comments
 (0)