Skip to content

Commit 22fe76d

Browse files
committed
Add reference to tracking issue rust-lang#86302 for const_ptr_write
1 parent 1aa032f commit 22fe76d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

library/core/src/ptr/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -871,7 +871,7 @@ pub const unsafe fn read_unaligned<T>(src: *const T) -> T {
871871
/// ```
872872
#[inline]
873873
#[stable(feature = "rust1", since = "1.0.0")]
874-
#[rustc_const_unstable(feature = "const_ptr_write", issue = "none")]
874+
#[rustc_const_unstable(feature = "const_ptr_write", issue = "86302")]
875875
pub const unsafe fn write<T>(dst: *mut T, src: T) {
876876
// We are calling the intrinsics directly to avoid function calls in the generated code
877877
// as `intrinsics::copy_nonoverlapping` is a wrapper function.
@@ -968,7 +968,7 @@ pub const unsafe fn write<T>(dst: *mut T, src: T) {
968968
/// ```
969969
#[inline]
970970
#[stable(feature = "ptr_unaligned", since = "1.17.0")]
971-
#[rustc_const_unstable(feature = "const_ptr_write", issue = "none")]
971+
#[rustc_const_unstable(feature = "const_ptr_write", issue = "86302")]
972972
pub const unsafe fn write_unaligned<T>(dst: *mut T, src: T) {
973973
// SAFETY: the caller must guarantee that `dst` is valid for writes.
974974
// `dst` cannot overlap `src` because the caller has mutable access

library/core/src/ptr/mut_ptr.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1002,7 +1002,7 @@ impl<T: ?Sized> *mut T {
10021002
///
10031003
/// [`ptr::write`]: crate::ptr::write()
10041004
#[stable(feature = "pointer_methods", since = "1.26.0")]
1005-
#[rustc_const_unstable(feature = "const_ptr_write", issue = "none")]
1005+
#[rustc_const_unstable(feature = "const_ptr_write", issue = "86302")]
10061006
#[inline(always)]
10071007
pub const unsafe fn write(self, val: T)
10081008
where
@@ -1057,7 +1057,7 @@ impl<T: ?Sized> *mut T {
10571057
///
10581058
/// [`ptr::write_unaligned`]: crate::ptr::write_unaligned()
10591059
#[stable(feature = "pointer_methods", since = "1.26.0")]
1060-
#[rustc_const_unstable(feature = "const_ptr_write", issue = "none")]
1060+
#[rustc_const_unstable(feature = "const_ptr_write", issue = "86302")]
10611061
#[inline(always)]
10621062
pub const unsafe fn write_unaligned(self, val: T)
10631063
where

0 commit comments

Comments
 (0)