Skip to content

Commit

Permalink
ptr: add tracking issue for len() method on raw slices
Browse files Browse the repository at this point in the history
  • Loading branch information
neocturne committed Apr 14, 2020
1 parent 2a29f8f commit dfd6844
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/libcore/ptr/const_ptr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
4 changes: 2 additions & 2 deletions src/libcore/ptr/mut_ptr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit dfd6844

Please sign in to comment.