@@ -1950,7 +1950,7 @@ impl<T> Vec<T> {
1950
1950
/// assert_eq!(u, &[1, 2]);
1951
1951
/// ```
1952
1952
#[ inline]
1953
- #[ stable( feature = "vec_splice" , since = "1.22 .0" ) ]
1953
+ #[ stable( feature = "vec_splice" , since = "1.21 .0" ) ]
1954
1954
pub fn splice < R , I > ( & mut self , range : R , replace_with : I ) -> Splice < I :: IntoIter >
1955
1955
where R : RangeArgument < usize > , I : IntoIterator < Item =T >
1956
1956
{
@@ -2553,13 +2553,13 @@ impl<'a, T> InPlace<T> for PlaceBack<'a, T> {
2553
2553
/// [`splice()`]: struct.Vec.html#method.splice
2554
2554
/// [`Vec`]: struct.Vec.html
2555
2555
#[ derive( Debug ) ]
2556
- #[ stable( feature = "vec_splice" , since = "1.22 .0" ) ]
2556
+ #[ stable( feature = "vec_splice" , since = "1.21 .0" ) ]
2557
2557
pub struct Splice < ' a , I : Iterator + ' a > {
2558
2558
drain : Drain < ' a , I :: Item > ,
2559
2559
replace_with : I ,
2560
2560
}
2561
2561
2562
- #[ stable( feature = "vec_splice" , since = "1.22 .0" ) ]
2562
+ #[ stable( feature = "vec_splice" , since = "1.21 .0" ) ]
2563
2563
impl < ' a , I : Iterator > Iterator for Splice < ' a , I > {
2564
2564
type Item = I :: Item ;
2565
2565
@@ -2572,18 +2572,18 @@ impl<'a, I: Iterator> Iterator for Splice<'a, I> {
2572
2572
}
2573
2573
}
2574
2574
2575
- #[ stable( feature = "vec_splice" , since = "1.22 .0" ) ]
2575
+ #[ stable( feature = "vec_splice" , since = "1.21 .0" ) ]
2576
2576
impl < ' a , I : Iterator > DoubleEndedIterator for Splice < ' a , I > {
2577
2577
fn next_back ( & mut self ) -> Option < Self :: Item > {
2578
2578
self . drain . next_back ( )
2579
2579
}
2580
2580
}
2581
2581
2582
- #[ stable( feature = "vec_splice" , since = "1.22 .0" ) ]
2582
+ #[ stable( feature = "vec_splice" , since = "1.21 .0" ) ]
2583
2583
impl < ' a , I : Iterator > ExactSizeIterator for Splice < ' a , I > { }
2584
2584
2585
2585
2586
- #[ stable( feature = "vec_splice" , since = "1.22 .0" ) ]
2586
+ #[ stable( feature = "vec_splice" , since = "1.21 .0" ) ]
2587
2587
impl < ' a , I : Iterator > Drop for Splice < ' a , I > {
2588
2588
fn drop ( & mut self ) {
2589
2589
// exhaust drain first
0 commit comments