Added reference to tracking issue #80377
This commit is contained in:
parent
5e27765ddf
commit
0cea1c9206
@ -725,7 +725,7 @@ impl<T: ?Sized> *const T {
|
||||
///
|
||||
/// [`ptr::read`]: crate::ptr::read()
|
||||
#[stable(feature = "pointer_methods", since = "1.26.0")]
|
||||
#[rustc_const_unstable(feature = "const_ptr_read", issue = "none")]
|
||||
#[rustc_const_unstable(feature = "const_ptr_read", issue = "80377")]
|
||||
#[inline]
|
||||
pub const unsafe fn read(self) -> T
|
||||
where
|
||||
@ -764,7 +764,7 @@ impl<T: ?Sized> *const T {
|
||||
///
|
||||
/// [`ptr::read_unaligned`]: crate::ptr::read_unaligned()
|
||||
#[stable(feature = "pointer_methods", since = "1.26.0")]
|
||||
#[rustc_const_unstable(feature = "const_ptr_read", issue = "none")]
|
||||
#[rustc_const_unstable(feature = "const_ptr_read", issue = "80377")]
|
||||
#[inline]
|
||||
pub const unsafe fn read_unaligned(self) -> T
|
||||
where
|
||||
|
@ -685,7 +685,7 @@ pub unsafe fn replace<T>(dst: *mut T, mut src: T) -> T {
|
||||
/// [valid]: self#safety
|
||||
#[inline]
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
#[rustc_const_unstable(feature = "const_ptr_read", issue = "none")]
|
||||
#[rustc_const_unstable(feature = "const_ptr_read", issue = "80377")]
|
||||
pub const unsafe fn read<T>(src: *const T) -> T {
|
||||
// `copy_nonoverlapping` takes care of debug_assert.
|
||||
let mut tmp = MaybeUninit::<T>::uninit();
|
||||
@ -785,7 +785,7 @@ pub const unsafe fn read<T>(src: *const T) -> T {
|
||||
/// ```
|
||||
#[inline]
|
||||
#[stable(feature = "ptr_unaligned", since = "1.17.0")]
|
||||
#[rustc_const_unstable(feature = "const_ptr_read", issue = "none")]
|
||||
#[rustc_const_unstable(feature = "const_ptr_read", issue = "80377")]
|
||||
pub const unsafe fn read_unaligned<T>(src: *const T) -> T {
|
||||
// `copy_nonoverlapping` takes care of debug_assert.
|
||||
let mut tmp = MaybeUninit::<T>::uninit();
|
||||
|
@ -832,7 +832,7 @@ impl<T: ?Sized> *mut T {
|
||||
///
|
||||
/// [`ptr::read`]: crate::ptr::read()
|
||||
#[stable(feature = "pointer_methods", since = "1.26.0")]
|
||||
#[rustc_const_unstable(feature = "const_ptr_read", issue = "none")]
|
||||
#[rustc_const_unstable(feature = "const_ptr_read", issue = "80377")]
|
||||
#[inline]
|
||||
pub const unsafe fn read(self) -> T
|
||||
where
|
||||
@ -871,7 +871,7 @@ impl<T: ?Sized> *mut T {
|
||||
///
|
||||
/// [`ptr::read_unaligned`]: crate::ptr::read_unaligned()
|
||||
#[stable(feature = "pointer_methods", since = "1.26.0")]
|
||||
#[rustc_const_unstable(feature = "const_ptr_read", issue = "none")]
|
||||
#[rustc_const_unstable(feature = "const_ptr_read", issue = "80377")]
|
||||
#[inline]
|
||||
pub const unsafe fn read_unaligned(self) -> T
|
||||
where
|
||||
|
Loading…
x
Reference in New Issue
Block a user