File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -1580,16 +1580,14 @@ impl<T> NonNull<[T]> {
15801580 /// # Examples
15811581 ///
15821582 /// ```rust
1583+ /// #![feature(slice_ptr_is_empty_nonnull)]
15831584 /// use std::ptr::NonNull;
15841585 ///
15851586 /// let slice: NonNull<[i8]> = NonNull::slice_from_raw_parts(NonNull::dangling(), 3);
15861587 /// assert!(!slice.is_empty());
15871588 /// ```
1588- #[ stable( feature = "slice_ptr_is_empty_nonnull" , since = "CURRENT_RUSTC_VERSION" ) ]
1589- #[ rustc_const_stable(
1590- feature = "const_slice_ptr_is_empty_nonnull" ,
1591- since = "CURRENT_RUSTC_VERSION"
1592- ) ]
1589+ #[ unstable( feature = "slice_ptr_is_empty_nonnull" , issue = "71146" ) ]
1590+ #[ rustc_const_unstable( feature = "const_slice_ptr_is_empty_nonnull" , issue = "71146" ) ]
15931591 #[ must_use]
15941592 #[ inline]
15951593 pub const fn is_empty ( self ) -> bool {
You can’t perform that action at this time.
0 commit comments