diff options
| author | Ralf Jung <post@ralfj.de> | 2020-07-12 12:48:43 +0200 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2020-07-12 12:48:43 +0200 |
| commit | ff5e1078fc911c6ca97c64fbaefe7a2aebedbb0d (patch) | |
| tree | 072b6a3292cc153a0c2d0d81844361c128975123 /src/libcore | |
| parent | 5f5c98bd8a27b5313d0b1a5830076139c562b6b6 (diff) | |
| download | rust-ff5e1078fc911c6ca97c64fbaefe7a2aebedbb0d.tar.gz rust-ff5e1078fc911c6ca97c64fbaefe7a2aebedbb0d.zip | |
assign tracking issue
Diffstat (limited to 'src/libcore')
| -rw-r--r-- | src/libcore/ptr/const_ptr.rs | 6 | ||||
| -rw-r--r-- | src/libcore/ptr/mut_ptr.rs | 6 | ||||
| -rw-r--r-- | src/libcore/ptr/non_null.rs | 6 |
3 files changed, 9 insertions, 9 deletions
diff --git a/src/libcore/ptr/const_ptr.rs b/src/libcore/ptr/const_ptr.rs index 22c741d4651..39d4aca636a 100644 --- a/src/libcore/ptr/const_ptr.rs +++ b/src/libcore/ptr/const_ptr.rs @@ -842,8 +842,8 @@ impl<T> *const [T] { /// 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 @@ impl<T> *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 diff --git a/src/libcore/ptr/mut_ptr.rs b/src/libcore/ptr/mut_ptr.rs index 56bade70694..644465d7d17 100644 --- a/src/libcore/ptr/mut_ptr.rs +++ b/src/libcore/ptr/mut_ptr.rs @@ -1043,8 +1043,8 @@ impl<T> *mut [T] { /// 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 @@ impl<T> *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 diff --git a/src/libcore/ptr/non_null.rs b/src/libcore/ptr/non_null.rs index f59da631b46..b362a49d604 100644 --- a/src/libcore/ptr/non_null.rs +++ b/src/libcore/ptr/non_null.rs @@ -217,8 +217,8 @@ impl<T> NonNull<[T]> { /// 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 @@ impl<T> 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 |
