File tree 2 files changed +1
-4
lines changed
2 files changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -1618,7 +1618,6 @@ impl<T: ?Sized + fmt::Display> fmt::Display for RefMut<'_, T> {
1618
1618
/// implies exclusive access to its `T`:
1619
1619
///
1620
1620
/// ```rust
1621
- /// #![feature(unsafe_cell_get_mut)]
1622
1621
/// #![forbid(unsafe_code)] // with exclusive accesses,
1623
1622
/// // `UnsafeCell` is a transparent no-op wrapper,
1624
1623
/// // so no need for `unsafe` here.
@@ -1722,7 +1721,6 @@ impl<T: ?Sized> UnsafeCell<T> {
1722
1721
/// # Examples
1723
1722
///
1724
1723
/// ```
1725
- /// #![feature(unsafe_cell_get_mut)]
1726
1724
/// use std::cell::UnsafeCell;
1727
1725
///
1728
1726
/// let mut c = UnsafeCell::new(5);
@@ -1731,7 +1729,7 @@ impl<T: ?Sized> UnsafeCell<T> {
1731
1729
/// assert_eq!(*c.get_mut(), 6);
1732
1730
/// ```
1733
1731
#[ inline]
1734
- #[ unstable ( feature = "unsafe_cell_get_mut" , issue = "76943 " ) ]
1732
+ #[ stable ( feature = "unsafe_cell_get_mut" , since = "1.50.0 " ) ]
1735
1733
pub fn get_mut ( & mut self ) -> & mut T {
1736
1734
& mut self . value
1737
1735
}
Original file line number Diff line number Diff line change 320
320
#![ feature( try_reserve) ]
321
321
#![ feature( unboxed_closures) ]
322
322
#![ feature( unsafe_block_in_unsafe_fn) ]
323
- #![ feature( unsafe_cell_get_mut) ]
324
323
#![ feature( unsafe_cell_raw_get) ]
325
324
#![ feature( unwind_attributes) ]
326
325
#![ feature( vec_into_raw_parts) ]
You can’t perform that action at this time.
0 commit comments