update bootstrap configs
This commit is contained in:
@@ -171,7 +171,6 @@ impl<T> [T] {
|
||||
/// assert_eq!(None, y.first_mut());
|
||||
/// ```
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
#[cfg_attr(bootstrap, rustc_allow_const_fn_unstable(const_mut_refs))]
|
||||
#[rustc_const_stable(feature = "const_slice_first_last", since = "1.83.0")]
|
||||
#[inline]
|
||||
#[must_use]
|
||||
@@ -214,7 +213,6 @@ impl<T> [T] {
|
||||
/// assert_eq!(x, &[3, 4, 5]);
|
||||
/// ```
|
||||
#[stable(feature = "slice_splits", since = "1.5.0")]
|
||||
#[cfg_attr(bootstrap, rustc_allow_const_fn_unstable(const_mut_refs))]
|
||||
#[rustc_const_stable(feature = "const_slice_first_last", since = "1.83.0")]
|
||||
#[inline]
|
||||
#[must_use]
|
||||
@@ -257,7 +255,6 @@ impl<T> [T] {
|
||||
/// assert_eq!(x, &[4, 5, 3]);
|
||||
/// ```
|
||||
#[stable(feature = "slice_splits", since = "1.5.0")]
|
||||
#[cfg_attr(bootstrap, rustc_allow_const_fn_unstable(const_mut_refs))]
|
||||
#[rustc_const_stable(feature = "const_slice_first_last", since = "1.83.0")]
|
||||
#[inline]
|
||||
#[must_use]
|
||||
@@ -300,7 +297,6 @@ impl<T> [T] {
|
||||
/// assert_eq!(None, y.last_mut());
|
||||
/// ```
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
#[cfg_attr(bootstrap, rustc_allow_const_fn_unstable(const_mut_refs))]
|
||||
#[rustc_const_stable(feature = "const_slice_first_last", since = "1.83.0")]
|
||||
#[inline]
|
||||
#[must_use]
|
||||
@@ -357,7 +353,6 @@ impl<T> [T] {
|
||||
#[inline]
|
||||
#[stable(feature = "slice_first_last_chunk", since = "1.77.0")]
|
||||
#[rustc_const_stable(feature = "const_slice_first_last_chunk", since = "1.83.0")]
|
||||
#[cfg_attr(bootstrap, rustc_allow_const_fn_unstable(const_mut_refs))]
|
||||
pub const fn first_chunk_mut<const N: usize>(&mut self) -> Option<&mut [T; N]> {
|
||||
if self.len() < N {
|
||||
None
|
||||
@@ -423,7 +418,6 @@ impl<T> [T] {
|
||||
#[inline]
|
||||
#[stable(feature = "slice_first_last_chunk", since = "1.77.0")]
|
||||
#[rustc_const_stable(feature = "const_slice_first_last_chunk", since = "1.83.0")]
|
||||
#[cfg_attr(bootstrap, rustc_allow_const_fn_unstable(const_mut_refs))]
|
||||
pub const fn split_first_chunk_mut<const N: usize>(
|
||||
&mut self,
|
||||
) -> Option<(&mut [T; N], &mut [T])> {
|
||||
@@ -494,7 +488,6 @@ impl<T> [T] {
|
||||
#[inline]
|
||||
#[stable(feature = "slice_first_last_chunk", since = "1.77.0")]
|
||||
#[rustc_const_stable(feature = "const_slice_first_last_chunk", since = "1.83.0")]
|
||||
#[cfg_attr(bootstrap, rustc_allow_const_fn_unstable(const_mut_refs))]
|
||||
pub const fn split_last_chunk_mut<const N: usize>(
|
||||
&mut self,
|
||||
) -> Option<(&mut [T], &mut [T; N])> {
|
||||
@@ -564,7 +557,6 @@ impl<T> [T] {
|
||||
#[inline]
|
||||
#[stable(feature = "slice_first_last_chunk", since = "1.77.0")]
|
||||
#[rustc_const_stable(feature = "const_slice_first_last_chunk", since = "1.83.0")]
|
||||
#[cfg_attr(bootstrap, rustc_allow_const_fn_unstable(const_mut_refs))]
|
||||
pub const fn last_chunk_mut<const N: usize>(&mut self) -> Option<&mut [T; N]> {
|
||||
if self.len() < N {
|
||||
None
|
||||
@@ -853,7 +845,6 @@ impl<T> [T] {
|
||||
/// [`as_mut_ptr`]: slice::as_mut_ptr
|
||||
#[stable(feature = "slice_ptr_range", since = "1.48.0")]
|
||||
#[rustc_const_stable(feature = "const_ptr_offset", since = "1.61.0")]
|
||||
#[cfg_attr(bootstrap, rustc_allow_const_fn_unstable(const_mut_refs, const_refs_to_cell))]
|
||||
#[inline]
|
||||
#[must_use]
|
||||
pub const fn as_mut_ptr_range(&mut self) -> Range<*mut T> {
|
||||
@@ -1908,7 +1899,6 @@ impl<T> [T] {
|
||||
#[track_caller]
|
||||
#[must_use]
|
||||
#[rustc_const_stable(feature = "const_slice_split_at_mut", since = "1.83.0")]
|
||||
#[cfg_attr(bootstrap, rustc_allow_const_fn_unstable(const_mut_refs))]
|
||||
pub const fn split_at_mut(&mut self, mid: usize) -> (&mut [T], &mut [T]) {
|
||||
match self.split_at_mut_checked(mid) {
|
||||
Some(pair) => pair,
|
||||
@@ -2011,7 +2001,6 @@ impl<T> [T] {
|
||||
/// ```
|
||||
#[stable(feature = "slice_split_at_unchecked", since = "1.79.0")]
|
||||
#[rustc_const_stable(feature = "const_slice_split_at_mut", since = "1.83.0")]
|
||||
#[cfg_attr(bootstrap, rustc_allow_const_fn_unstable(const_mut_refs))]
|
||||
#[inline]
|
||||
#[must_use]
|
||||
pub const unsafe fn split_at_mut_unchecked(&mut self, mid: usize) -> (&mut [T], &mut [T]) {
|
||||
@@ -2112,7 +2101,6 @@ impl<T> [T] {
|
||||
/// ```
|
||||
#[stable(feature = "split_at_checked", since = "1.80.0")]
|
||||
#[rustc_const_stable(feature = "const_slice_split_at_mut", since = "1.83.0")]
|
||||
#[cfg_attr(bootstrap, rustc_allow_const_fn_unstable(const_mut_refs))]
|
||||
#[inline]
|
||||
#[must_use]
|
||||
pub const fn split_at_mut_checked(&mut self, mid: usize) -> Option<(&mut [T], &mut [T])> {
|
||||
|
||||
Reference in New Issue
Block a user