@@ -1647,16 +1647,15 @@ impl<T> *const [T] {
16471647 /// # Examples
16481648 ///
16491649 /// ```rust
1650- /// #![feature(slice_ptr_len)]
1651- ///
16521650 /// use std::ptr;
16531651 ///
16541652 /// let slice: *const [i8] = ptr::slice_from_raw_parts(ptr::null(), 3);
16551653 /// assert_eq!(slice.len(), 3);
16561654 /// ```
16571655 #[ inline]
1658- #[ unstable( feature = "slice_ptr_len" , issue = "71146" ) ]
1659- #[ rustc_const_unstable( feature = "const_slice_ptr_len" , issue = "71146" ) ]
1656+ #[ stable( feature = "slice_ptr_len" , since = "CURRENT_RUSTC_VERSION" ) ]
1657+ #[ rustc_const_stable( feature = "const_slice_ptr_len" , since = "CURRENT_RUSTC_VERSION" ) ]
1658+ #[ rustc_allow_const_fn_unstable( ptr_metadata) ]
16601659 pub const fn len ( self ) -> usize {
16611660 metadata ( self )
16621661 }
@@ -1666,15 +1665,14 @@ impl<T> *const [T] {
16661665 /// # Examples
16671666 ///
16681667 /// ```
1669- /// #![feature(slice_ptr_len)]
16701668 /// use std::ptr;
16711669 ///
16721670 /// let slice: *const [i8] = ptr::slice_from_raw_parts(ptr::null(), 3);
16731671 /// assert!(!slice.is_empty());
16741672 /// ```
16751673 #[ inline( always) ]
1676- #[ unstable ( feature = "slice_ptr_len" , issue = "71146 " ) ]
1677- #[ rustc_const_unstable ( feature = "const_slice_ptr_len" , issue = "71146 " ) ]
1674+ #[ stable ( feature = "slice_ptr_len" , since = "CURRENT_RUSTC_VERSION " ) ]
1675+ #[ rustc_const_stable ( feature = "const_slice_ptr_len" , since = "CURRENT_RUSTC_VERSION " ) ]
16781676 pub const fn is_empty ( self ) -> bool {
16791677 self . len ( ) == 0
16801678 }
@@ -1804,7 +1802,7 @@ impl<T, const N: usize> *const [T; N] {
18041802 /// # Examples
18051803 ///
18061804 /// ```
1807- /// #![feature(array_ptr_get, slice_ptr_len )]
1805+ /// #![feature(array_ptr_get)]
18081806 ///
18091807 /// let arr: *const [i32; 3] = &[1, 2, 4] as *const [i32; 3];
18101808 /// let slice: *const [i32] = arr.as_slice();
0 commit comments