Skip to content

Commit e801f3e

Browse files
committed
Change slice_as_array feature name to core_slice_as_array for [_] and *(mut|const) [_].
1 parent a20b847 commit e801f3e

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

library/core/src/ptr/const_ptr.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1462,8 +1462,8 @@ impl<T> *const [T] {
14621462
/// Gets a raw pointer to the underlying array.
14631463
///
14641464
/// If `N` is not exactly equal to the length of `self`, then this method returns `None`.
1465-
#[stable(feature = "slice_as_array", since = "CURRENT_RUSTC_VERSION")]
1466-
#[rustc_const_stable(feature = "slice_as_array", since = "CURRENT_RUSTC_VERSION")]
1465+
#[stable(feature = "core_slice_as_array", since = "CURRENT_RUSTC_VERSION")]
1466+
#[rustc_const_stable(feature = "core_slice_as_array", since = "CURRENT_RUSTC_VERSION")]
14671467
#[inline]
14681468
#[must_use]
14691469
pub const fn as_array<const N: usize>(self) -> Option<*const [T; N]> {

library/core/src/ptr/mut_ptr.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1708,8 +1708,8 @@ impl<T> *mut [T] {
17081708
/// Gets a raw, mutable pointer to the underlying array.
17091709
///
17101710
/// If `N` is not exactly equal to the length of `self`, then this method returns `None`.
1711-
#[stable(feature = "slice_as_array", since = "CURRENT_RUSTC_VERSION")]
1712-
#[rustc_const_stable(feature = "slice_as_array", since = "CURRENT_RUSTC_VERSION")]
1711+
#[stable(feature = "core_slice_as_array", since = "CURRENT_RUSTC_VERSION")]
1712+
#[rustc_const_stable(feature = "core_slice_as_array", since = "CURRENT_RUSTC_VERSION")]
17131713
#[inline]
17141714
#[must_use]
17151715
pub const fn as_mut_array<const N: usize>(self) -> Option<*mut [T; N]> {

library/core/src/slice/mod.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -841,8 +841,8 @@ impl<T> [T] {
841841
/// Gets a reference to the underlying array.
842842
///
843843
/// If `N` is not exactly equal to the length of `self`, then this method returns `None`.
844-
#[stable(feature = "slice_as_array", since = "CURRENT_RUSTC_VERSION")]
845-
#[rustc_const_stable(feature = "slice_as_array", since = "CURRENT_RUSTC_VERSION")]
844+
#[stable(feature = "core_slice_as_array", since = "CURRENT_RUSTC_VERSION")]
845+
#[rustc_const_stable(feature = "core_slice_as_array", since = "CURRENT_RUSTC_VERSION")]
846846
#[inline]
847847
#[must_use]
848848
pub const fn as_array<const N: usize>(&self) -> Option<&[T; N]> {
@@ -860,8 +860,8 @@ impl<T> [T] {
860860
/// Gets a mutable reference to the slice's underlying array.
861861
///
862862
/// If `N` is not exactly equal to the length of `self`, then this method returns `None`.
863-
#[stable(feature = "slice_as_array", since = "CURRENT_RUSTC_VERSION")]
864-
#[rustc_const_stable(feature = "slice_as_array", since = "CURRENT_RUSTC_VERSION")]
863+
#[stable(feature = "core_slice_as_array", since = "CURRENT_RUSTC_VERSION")]
864+
#[rustc_const_stable(feature = "core_slice_as_array", since = "CURRENT_RUSTC_VERSION")]
865865
#[inline]
866866
#[must_use]
867867
pub const fn as_mut_array<const N: usize>(&mut self) -> Option<&mut [T; N]> {

0 commit comments

Comments
 (0)