]> git.lizzy.rs Git - rust.git/commitdiff
assign tracking issue
authorRalf Jung <post@ralfj.de>
Sun, 12 Jul 2020 10:48:43 +0000 (12:48 +0200)
committerRalf Jung <post@ralfj.de>
Sun, 12 Jul 2020 10:48:43 +0000 (12:48 +0200)
src/libcore/ptr/const_ptr.rs
src/libcore/ptr/mut_ptr.rs
src/libcore/ptr/non_null.rs

index 22c741d4651a5fcc2580a13d45580a12266a2d8c..39d4aca636a05c6a632bc1a0347dd1913f52e4d1 100644 (file)
@@ -842,8 +842,8 @@ pub const fn len(self) -> usize {
     /// assert_eq!(slice.as_ptr(), 0 as *const i8);
     /// ```
     #[inline]
-    #[unstable(feature = "slice_ptr_get", issue = "none")]
-    #[rustc_const_unstable(feature = "slice_ptr_get", issue = "none")]
+    #[unstable(feature = "slice_ptr_get", issue = "74265")]
+    #[rustc_const_unstable(feature = "slice_ptr_get", issue = "74265")]
     pub const fn as_ptr(self) -> *const T {
         self as *const T
     }
@@ -867,7 +867,7 @@ pub const fn as_ptr(self) -> *const T {
     ///     assert_eq!(x.get_unchecked(1), x.as_ptr().add(1));
     /// }
     /// ```
-    #[unstable(feature = "slice_ptr_get", issue = "none")]
+    #[unstable(feature = "slice_ptr_get", issue = "74265")]
     #[inline]
     pub unsafe fn get_unchecked<I>(self, index: I) -> *const I::Output
     where
index 56bade706942a3ade6774154a54cf39e857fced5..644465d7d17f8a60fc92dcb49f515124a4a6ab84 100644 (file)
@@ -1043,8 +1043,8 @@ pub const fn len(self) -> usize {
     /// assert_eq!(slice.as_mut_ptr(), 0 as *mut i8);
     /// ```
     #[inline]
-    #[unstable(feature = "slice_ptr_get", issue = "none")]
-    #[rustc_const_unstable(feature = "slice_ptr_get", issue = "none")]
+    #[unstable(feature = "slice_ptr_get", issue = "74265")]
+    #[rustc_const_unstable(feature = "slice_ptr_get", issue = "74265")]
     pub const fn as_mut_ptr(self) -> *mut T {
         self as *mut T
     }
@@ -1068,7 +1068,7 @@ pub const fn as_mut_ptr(self) -> *mut T {
     ///     assert_eq!(x.get_unchecked_mut(1), x.as_mut_ptr().add(1));
     /// }
     /// ```
-    #[unstable(feature = "slice_ptr_get", issue = "none")]
+    #[unstable(feature = "slice_ptr_get", issue = "74265")]
     #[inline]
     pub unsafe fn get_unchecked_mut<I>(self, index: I) -> *mut I::Output
     where
index f59da631b46aba889f82dfcd54b4294e8e6d6675..b362a49d604e7ffd2a3ccdecee89c4f33c17f440 100644 (file)
@@ -217,8 +217,8 @@ pub const fn len(self) -> usize {
     /// assert_eq!(slice.as_non_null_ptr(), NonNull::new(1 as *mut i8).unwrap());
     /// ```
     #[inline]
-    #[unstable(feature = "slice_ptr_get", issue = "none")]
-    #[rustc_const_unstable(feature = "slice_ptr_get", issue = "none")]
+    #[unstable(feature = "slice_ptr_get", issue = "74265")]
+    #[rustc_const_unstable(feature = "slice_ptr_get", issue = "74265")]
     pub const fn as_non_null_ptr(self) -> NonNull<T> {
         // SAFETY: We know `self` is non-null.
         unsafe { NonNull::new_unchecked(self.as_ptr().as_mut_ptr()) }
@@ -245,7 +245,7 @@ pub const fn as_non_null_ptr(self) -> NonNull<T> {
     ///     assert_eq!(x.get_unchecked_mut(1).as_ptr(), x.as_non_null_ptr().as_ptr().add(1));
     /// }
     /// ```
-    #[unstable(feature = "slice_ptr_get", issue = "none")]
+    #[unstable(feature = "slice_ptr_get", issue = "74265")]
     #[inline]
     pub unsafe fn get_unchecked_mut<I>(self, index: I) -> NonNull<I::Output>
     where