mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-17 05:25:37 +03:00
ptr: add tracking issue for len() method on raw slices
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user