File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -446,14 +446,15 @@ impl<T> NonNull<[T]> {
446
446
/// # Examples
447
447
///
448
448
/// ```rust
449
- /// #![feature(slice_ptr_len, nonnull_slice_from_raw_parts)]
449
+ /// #![feature(nonnull_slice_from_raw_parts)]
450
450
/// use std::ptr::NonNull;
451
451
///
452
452
/// let slice: NonNull<[i8]> = NonNull::slice_from_raw_parts(NonNull::dangling(), 3);
453
453
/// assert_eq!(slice.len(), 3);
454
454
/// ```
455
- #[ unstable( feature = "slice_ptr_len" , issue = "71146" ) ]
456
- #[ rustc_const_unstable( feature = "const_slice_ptr_len" , issue = "71146" ) ]
455
+ #[ stable( feature = "slice_ptr_len_nonnull" , since = "1.61.0" ) ]
456
+ #[ rustc_const_stable( feature = "const_slice_ptr_len_nonnull" , since = "1.61.0" ) ]
457
+ #[ rustc_allow_const_fn_unstable( const_slice_ptr_len) ]
457
458
#[ must_use]
458
459
#[ inline]
459
460
pub const fn len ( self ) -> usize {
You can’t perform that action at this time.
0 commit comments