diff options
| author | Albin Hedman <albin9604@gmail.com> | 2021-06-14 19:58:34 +0200 |
|---|---|---|
| committer | Albin Hedman <albin9604@gmail.com> | 2021-06-27 12:05:19 +0200 |
| commit | 22fe76d97dce25882a72ba1c0b35c45801d87fdc (patch) | |
| tree | 45c1a66812c880406b53e85d4e75bfcda374d903 | |
| parent | 1aa032f5065d511073dfd9a25c78c91f275d40e4 (diff) | |
| download | rust-22fe76d97dce25882a72ba1c0b35c45801d87fdc.tar.gz rust-22fe76d97dce25882a72ba1c0b35c45801d87fdc.zip | |
Add reference to tracking issue #86302 for const_ptr_write
| -rw-r--r-- | library/core/src/ptr/mod.rs | 4 | ||||
| -rw-r--r-- | library/core/src/ptr/mut_ptr.rs | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/library/core/src/ptr/mod.rs b/library/core/src/ptr/mod.rs index e7375ddc84c..4b81c39ea1d 100644 --- a/library/core/src/ptr/mod.rs +++ b/library/core/src/ptr/mod.rs @@ -871,7 +871,7 @@ pub const unsafe fn read_unaligned<T>(src: *const T) -> T { /// ``` #[inline] #[stable(feature = "rust1", since = "1.0.0")] -#[rustc_const_unstable(feature = "const_ptr_write", issue = "none")] +#[rustc_const_unstable(feature = "const_ptr_write", issue = "86302")] pub const unsafe fn write<T>(dst: *mut T, src: T) { // We are calling the intrinsics directly to avoid function calls in the generated code // as `intrinsics::copy_nonoverlapping` is a wrapper function. @@ -968,7 +968,7 @@ pub const unsafe fn write<T>(dst: *mut T, src: T) { /// ``` #[inline] #[stable(feature = "ptr_unaligned", since = "1.17.0")] -#[rustc_const_unstable(feature = "const_ptr_write", issue = "none")] +#[rustc_const_unstable(feature = "const_ptr_write", issue = "86302")] pub const unsafe fn write_unaligned<T>(dst: *mut T, src: T) { // SAFETY: the caller must guarantee that `dst` is valid for writes. // `dst` cannot overlap `src` because the caller has mutable access diff --git a/library/core/src/ptr/mut_ptr.rs b/library/core/src/ptr/mut_ptr.rs index 750279ac0db..93ee74719ff 100644 --- a/library/core/src/ptr/mut_ptr.rs +++ b/library/core/src/ptr/mut_ptr.rs @@ -1002,7 +1002,7 @@ impl<T: ?Sized> *mut T { /// /// [`ptr::write`]: crate::ptr::write() #[stable(feature = "pointer_methods", since = "1.26.0")] - #[rustc_const_unstable(feature = "const_ptr_write", issue = "none")] + #[rustc_const_unstable(feature = "const_ptr_write", issue = "86302")] #[inline(always)] pub const unsafe fn write(self, val: T) where @@ -1057,7 +1057,7 @@ impl<T: ?Sized> *mut T { /// /// [`ptr::write_unaligned`]: crate::ptr::write_unaligned() #[stable(feature = "pointer_methods", since = "1.26.0")] - #[rustc_const_unstable(feature = "const_ptr_write", issue = "none")] + #[rustc_const_unstable(feature = "const_ptr_write", issue = "86302")] #[inline(always)] pub const unsafe fn write_unaligned(self, val: T) where |
