Skip to content

Commit 1b95760

Browse files
committed
Not insta-stable
1 parent 4250216 commit 1b95760

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

library/core/src/ptr/non_null.rs

+3-5
Original file line numberDiff line numberDiff 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 {

0 commit comments

Comments
 (0)