ptr: add tracking issue for len() method on raw slices
This commit is contained in:
parent
2a29f8f89d
commit
dfd68441be
2 changed files with 4 additions and 4 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue