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