From bd2c072b9b85847a7fe18e66398f2b607e2691a2 Mon Sep 17 00:00:00 2001 From: Ashley Mannix Date: Wed, 13 Jan 2021 13:48:36 +1000 Subject: [PATCH] bump split_inclusive stabilization to 1.51.0 --- library/core/src/slice/iter.rs | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/library/core/src/slice/iter.rs b/library/core/src/slice/iter.rs index 53fdc7bc53be..93358f58d2b7 100644 --- a/library/core/src/slice/iter.rs +++ b/library/core/src/slice/iter.rs @@ -452,7 +452,7 @@ impl FusedIterator for Split<'_, T, P> where P: FnMut(&T) -> bool {} /// /// [`split_inclusive`]: ../../std/primitive.slice.html#method.split_inclusive /// [slices]: ../../std/primitive.slice.html -#[stable(feature = "split_inclusive", since = "1.49.0")] +#[stable(feature = "split_inclusive", since = "1.51.0")] pub struct SplitInclusive<'a, T: 'a, P> where P: FnMut(&T) -> bool, @@ -469,7 +469,7 @@ pub(super) fn new(slice: &'a [T], pred: P) -> Self { } } -#[stable(feature = "split_inclusive", since = "1.49.0")] +#[stable(feature = "split_inclusive", since = "1.51.0")] impl fmt::Debug for SplitInclusive<'_, T, P> where P: FnMut(&T) -> bool, @@ -483,7 +483,7 @@ fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { } // FIXME(#26925) Remove in favor of `#[derive(Clone)]` -#[stable(feature = "split_inclusive", since = "1.49.0")] +#[stable(feature = "split_inclusive", since = "1.51.0")] impl Clone for SplitInclusive<'_, T, P> where P: Clone + FnMut(&T) -> bool, @@ -493,7 +493,7 @@ fn clone(&self) -> Self { } } -#[stable(feature = "split_inclusive", since = "1.49.0")] +#[stable(feature = "split_inclusive", since = "1.51.0")] impl<'a, T, P> Iterator for SplitInclusive<'a, T, P> where P: FnMut(&T) -> bool, @@ -522,7 +522,7 @@ fn size_hint(&self) -> (usize, Option) { } } -#[stable(feature = "split_inclusive", since = "1.49.0")] +#[stable(feature = "split_inclusive", since = "1.51.0")] impl<'a, T, P> DoubleEndedIterator for SplitInclusive<'a, T, P> where P: FnMut(&T) -> bool, @@ -547,7 +547,7 @@ fn next_back(&mut self) -> Option<&'a [T]> { } } -#[stable(feature = "split_inclusive", since = "1.49.0")] +#[stable(feature = "split_inclusive", since = "1.51.0")] impl FusedIterator for SplitInclusive<'_, T, P> where P: FnMut(&T) -> bool {} /// An iterator over the mutable subslices of the vector which are separated @@ -693,7 +693,7 @@ impl FusedIterator for SplitMut<'_, T, P> where P: FnMut(&T) -> bool {} /// /// [`split_inclusive_mut`]: ../../std/primitive.slice.html#method.split_inclusive_mut /// [slices]: ../../std/primitive.slice.html -#[stable(feature = "split_inclusive", since = "1.49.0")] +#[stable(feature = "split_inclusive", since = "1.51.0")] pub struct SplitInclusiveMut<'a, T: 'a, P> where P: FnMut(&T) -> bool, @@ -710,7 +710,7 @@ pub(super) fn new(slice: &'a mut [T], pred: P) -> Self { } } -#[stable(feature = "split_inclusive", since = "1.49.0")] +#[stable(feature = "split_inclusive", since = "1.51.0")] impl fmt::Debug for SplitInclusiveMut<'_, T, P> where P: FnMut(&T) -> bool, @@ -723,7 +723,7 @@ fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { } } -#[stable(feature = "split_inclusive", since = "1.49.0")] +#[stable(feature = "split_inclusive", since = "1.51.0")] impl<'a, T, P> Iterator for SplitInclusiveMut<'a, T, P> where P: FnMut(&T) -> bool, @@ -763,7 +763,7 @@ fn size_hint(&self) -> (usize, Option) { } } -#[stable(feature = "split_inclusive", since = "1.49.0")] +#[stable(feature = "split_inclusive", since = "1.51.0")] impl<'a, T, P> DoubleEndedIterator for SplitInclusiveMut<'a, T, P> where P: FnMut(&T) -> bool, @@ -797,7 +797,7 @@ fn next_back(&mut self) -> Option<&'a mut [T]> { } } -#[stable(feature = "split_inclusive", since = "1.49.0")] +#[stable(feature = "split_inclusive", since = "1.51.0")] impl FusedIterator for SplitInclusiveMut<'_, T, P> where P: FnMut(&T) -> bool {} /// An iterator over subslices separated by elements that match a predicate