File tree 1 file changed +3
-5
lines changed
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]> {
1580
1580
/// # Examples
1581
1581
///
1582
1582
/// ```rust
1583
+ /// #![feature(slice_ptr_is_empty_nonnull)]
1583
1584
/// use std::ptr::NonNull;
1584
1585
///
1585
1586
/// let slice: NonNull<[i8]> = NonNull::slice_from_raw_parts(NonNull::dangling(), 3);
1586
1587
/// assert!(!slice.is_empty());
1587
1588
/// ```
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" ) ]
1593
1591
#[ must_use]
1594
1592
#[ inline]
1595
1593
pub const fn is_empty ( self ) -> bool {
You can’t perform that action at this time.
0 commit comments