ptr: add tracking issue for len() method on raw slices

This commit is contained in:
Matthias Schiffer 2020-04-14 21:34:27 +02:00
parent 2a29f8f89d
commit dfd68441be
No known key found for this signature in database
GPG key ID: 16EF3F64CB201D9C
2 changed files with 4 additions and 4 deletions

View file

@ -727,8 +727,8 @@ impl<T> *const [T] {
/// assert_eq!(slice.len(), 3);
/// ```
#[inline]
#[unstable(feature = "slice_ptr_len", issue = "none")]
#[rustc_const_unstable(feature = "const_slice_ptr_len", issue = "none")]
#[unstable(feature = "slice_ptr_len", issue = "71146")]
#[rustc_const_unstable(feature = "const_slice_ptr_len", issue = "71146")]
pub const fn len(self) -> usize {
unsafe { Repr { rust: self }.raw }.len
}

View file

@ -915,8 +915,8 @@ impl<T> *mut [T] {
/// assert_eq!(slice.len(), 3);
/// ```
#[inline]
#[unstable(feature = "slice_ptr_len", issue = "none")]
#[rustc_const_unstable(feature = "const_slice_ptr_len", issue = "none")]
#[unstable(feature = "slice_ptr_len", issue = "71146")]
#[rustc_const_unstable(feature = "const_slice_ptr_len", issue = "71146")]
pub const fn len(self) -> usize {
unsafe { Repr { rust_mut: self }.raw }.len
}