diff options
| author | Mara Bos <m-ou.se@m-ou.se> | 2020-09-23 17:02:58 +0200 |
|---|---|---|
| committer | Mara Bos <m-ou.se@m-ou.se> | 2020-09-26 00:25:32 +0200 |
| commit | f289468045c248e3543f2b0cd50cc37ecd3fd717 (patch) | |
| tree | bde44575ff91503415639d30f6a7b23fd80d2368 | |
| parent | c6e4db620a7d2f569f11dcab627430921ea8aacf (diff) | |
| download | rust-f289468045c248e3543f2b0cd50cc37ecd3fd717.tar.gz rust-f289468045c248e3543f2b0cd50cc37ecd3fd717.zip | |
Stabilize slice_ptr_range.
Closes #65807.
| -rw-r--r-- | library/core/src/slice/mod.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/library/core/src/slice/mod.rs b/library/core/src/slice/mod.rs index 12dcd6c6ba8..b3fff060ead 100644 --- a/library/core/src/slice/mod.rs +++ b/library/core/src/slice/mod.rs @@ -458,8 +458,6 @@ impl<T> [T] { /// element of this slice: /// /// ``` - /// #![feature(slice_ptr_range)] - /// /// let a = [1, 2, 3]; /// let x = &a[1] as *const _; /// let y = &5 as *const _; @@ -469,7 +467,7 @@ impl<T> [T] { /// ``` /// /// [`as_ptr`]: #method.as_ptr - #[unstable(feature = "slice_ptr_range", issue = "65807")] + #[stable(feature = "slice_ptr_range", since = "1.48.0")] #[rustc_const_unstable(feature = "const_ptr_offset", issue = "71499")] #[inline] pub const fn as_ptr_range(&self) -> Range<*const T> { @@ -511,7 +509,7 @@ impl<T> [T] { /// common in C++. /// /// [`as_mut_ptr`]: #method.as_mut_ptr - #[unstable(feature = "slice_ptr_range", issue = "65807")] + #[stable(feature = "slice_ptr_range", since = "1.48.0")] #[rustc_const_unstable(feature = "const_ptr_offset", issue = "71499")] #[inline] pub const fn as_mut_ptr_range(&mut self) -> Range<*mut T> { |
