We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 267cf8d commit 874aee7Copy full SHA for 874aee7
library/core/src/cell.rs
@@ -2125,7 +2125,8 @@ impl<T: ?Sized> UnsafeCell<T> {
2125
/// assert_eq!(*uc.get_mut(), 41);
2126
/// ```
2127
#[inline(always)]
2128
- #[unstable(feature = "unsafe_cell_from_mut", issue = "111645")]
+ #[stable(feature = "unsafe_cell_from_mut", since = "CURRENT_RUSTC_VERSION")]
2129
+ #[rustc_const_stable(feature = "unsafe_cell_from_mut", since = "CURRENT_RUSTC_VERSION")]
2130
pub const fn from_mut(value: &mut T) -> &mut UnsafeCell<T> {
2131
// SAFETY: `UnsafeCell<T>` has the same memory layout as `T` due to #[repr(transparent)].
2132
unsafe { &mut *(value as *mut T as *mut UnsafeCell<T>) }
0 commit comments