Skip to content

Commit bf59451

Browse files
authoredOct 1, 2020
Rollup merge of rust-lang#77111 - fusion-engineering-forks:stabilize-slice-ptr-range, r=dtolnay
Stabilize slice_ptr_range. This has been unstable for almost a year now. Time to stabilize? Closes rust-lang#65807. @rustbot modify labels: +T-libs +A-raw-pointers +A-slice +needs-fcp
2 parents d2e06b7 + f289468 commit bf59451

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed
 

‎library/core/src/slice/mod.rs

+2-4
Original file line numberDiff line numberDiff line change
@@ -458,8 +458,6 @@ impl<T> [T] {
458458
/// element of this slice:
459459
///
460460
/// ```
461-
/// #![feature(slice_ptr_range)]
462-
///
463461
/// let a = [1, 2, 3];
464462
/// let x = &a[1] as *const _;
465463
/// let y = &5 as *const _;
@@ -469,7 +467,7 @@ impl<T> [T] {
469467
/// ```
470468
///
471469
/// [`as_ptr`]: #method.as_ptr
472-
#[unstable(feature = "slice_ptr_range", issue = "65807")]
470+
#[stable(feature = "slice_ptr_range", since = "1.48.0")]
473471
#[rustc_const_unstable(feature = "const_ptr_offset", issue = "71499")]
474472
#[inline]
475473
pub const fn as_ptr_range(&self) -> Range<*const T> {
@@ -511,7 +509,7 @@ impl<T> [T] {
511509
/// common in C++.
512510
///
513511
/// [`as_mut_ptr`]: #method.as_mut_ptr
514-
#[unstable(feature = "slice_ptr_range", issue = "65807")]
512+
#[stable(feature = "slice_ptr_range", since = "1.48.0")]
515513
#[rustc_const_unstable(feature = "const_ptr_offset", issue = "71499")]
516514
#[inline]
517515
pub const fn as_mut_ptr_range(&mut self) -> Range<*mut T> {

0 commit comments

Comments
 (0)