@@ -1949,7 +1949,7 @@ impl<T> Vec<T> {
19491949 /// assert_eq!(u, &[1, 2]);
19501950 /// ```
19511951 #[ inline]
1952- #[ stable( feature = "vec_splice" , since = "1.22 .0" ) ]
1952+ #[ stable( feature = "vec_splice" , since = "1.21 .0" ) ]
19531953 pub fn splice < R , I > ( & mut self , range : R , replace_with : I ) -> Splice < I :: IntoIter >
19541954 where R : RangeArgument < usize > , I : IntoIterator < Item =T >
19551955 {
@@ -2549,13 +2549,13 @@ impl<'a, T> InPlace<T> for PlaceBack<'a, T> {
25492549/// [`splice()`]: struct.Vec.html#method.splice
25502550/// [`Vec`]: struct.Vec.html
25512551#[ derive( Debug ) ]
2552- #[ stable( feature = "vec_splice" , since = "1.22 .0" ) ]
2552+ #[ stable( feature = "vec_splice" , since = "1.21 .0" ) ]
25532553pub struct Splice < ' a , I : Iterator + ' a > {
25542554 drain : Drain < ' a , I :: Item > ,
25552555 replace_with : I ,
25562556}
25572557
2558- #[ stable( feature = "vec_splice" , since = "1.22 .0" ) ]
2558+ #[ stable( feature = "vec_splice" , since = "1.21 .0" ) ]
25592559impl < ' a , I : Iterator > Iterator for Splice < ' a , I > {
25602560 type Item = I :: Item ;
25612561
@@ -2568,18 +2568,18 @@ impl<'a, I: Iterator> Iterator for Splice<'a, I> {
25682568 }
25692569}
25702570
2571- #[ stable( feature = "vec_splice" , since = "1.22 .0" ) ]
2571+ #[ stable( feature = "vec_splice" , since = "1.21 .0" ) ]
25722572impl < ' a , I : Iterator > DoubleEndedIterator for Splice < ' a , I > {
25732573 fn next_back ( & mut self ) -> Option < Self :: Item > {
25742574 self . drain . next_back ( )
25752575 }
25762576}
25772577
2578- #[ stable( feature = "vec_splice" , since = "1.22 .0" ) ]
2578+ #[ stable( feature = "vec_splice" , since = "1.21 .0" ) ]
25792579impl < ' a , I : Iterator > ExactSizeIterator for Splice < ' a , I > { }
25802580
25812581
2582- #[ stable( feature = "vec_splice" , since = "1.22 .0" ) ]
2582+ #[ stable( feature = "vec_splice" , since = "1.21 .0" ) ]
25832583impl < ' a , I : Iterator > Drop for Splice < ' a , I > {
25842584 fn drop ( & mut self ) {
25852585 // exhaust drain first
0 commit comments