File tree 2 files changed +2
-4
lines changed
2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -1921,7 +1921,7 @@ impl<T: ?Sized> UnsafeCell<T> {
1921
1921
}
1922
1922
1923
1923
/// Gets a mutable pointer to the wrapped value.
1924
- /// The difference to [`get`] is that this function accepts a raw pointer,
1924
+ /// The difference from [`get`] is that this function accepts a raw pointer,
1925
1925
/// which is useful to avoid the creation of temporary references.
1926
1926
///
1927
1927
/// The result can be cast to a pointer of any kind.
@@ -1937,7 +1937,6 @@ impl<T: ?Sized> UnsafeCell<T> {
1937
1937
/// calling `get` would require creating a reference to uninitialized data:
1938
1938
///
1939
1939
/// ```
1940
- /// #![feature(unsafe_cell_raw_get)]
1941
1940
/// use std::cell::UnsafeCell;
1942
1941
/// use std::mem::MaybeUninit;
1943
1942
///
@@ -1948,7 +1947,7 @@ impl<T: ?Sized> UnsafeCell<T> {
1948
1947
/// assert_eq!(uc.into_inner(), 5);
1949
1948
/// ```
1950
1949
#[ inline( always) ]
1951
- #[ unstable ( feature = "unsafe_cell_raw_get" , issue = "66358 " ) ]
1950
+ #[ stable ( feature = "unsafe_cell_raw_get" , since = "1.56.0 " ) ]
1952
1951
pub const fn raw_get ( this : * const Self ) -> * mut T {
1953
1952
// We can just cast the pointer from `UnsafeCell<T>` to `T` because of
1954
1953
// #[repr(transparent)]. This exploits libstd's special status, there is
Original file line number Diff line number Diff line change 331
331
#![ feature( try_reserve) ]
332
332
#![ feature( try_reserve_kind) ]
333
333
#![ feature( unboxed_closures) ]
334
- #![ feature( unsafe_cell_raw_get) ]
335
334
#![ feature( unwrap_infallible) ]
336
335
#![ feature( vec_into_raw_parts) ]
337
336
#![ feature( vec_spare_capacity) ]
You can’t perform that action at this time.
0 commit comments