@@ -1950,7 +1950,7 @@ impl<T> Vec<T> {
19501950 /// assert_eq!(u, &[1, 2]);
19511951 /// ```
19521952 #[ inline]
1953- #[ stable( feature = "vec_splice" , since = "1.22 .0" ) ]
1953+ #[ stable( feature = "vec_splice" , since = "1.21 .0" ) ]
19541954 pub fn splice < R , I > ( & mut self , range : R , replace_with : I ) -> Splice < I :: IntoIter >
19551955 where R : RangeArgument < usize > , I : IntoIterator < Item =T >
19561956 {
@@ -2553,13 +2553,13 @@ impl<'a, T> InPlace<T> for PlaceBack<'a, T> {
25532553/// [`splice()`]: struct.Vec.html#method.splice
25542554/// [`Vec`]: struct.Vec.html
25552555#[ derive( Debug ) ]
2556- #[ stable( feature = "vec_splice" , since = "1.22 .0" ) ]
2556+ #[ stable( feature = "vec_splice" , since = "1.21 .0" ) ]
25572557pub struct Splice < ' a , I : Iterator + ' a > {
25582558 drain : Drain < ' a , I :: Item > ,
25592559 replace_with : I ,
25602560}
25612561
2562- #[ stable( feature = "vec_splice" , since = "1.22 .0" ) ]
2562+ #[ stable( feature = "vec_splice" , since = "1.21 .0" ) ]
25632563impl < ' a , I : Iterator > Iterator for Splice < ' a , I > {
25642564 type Item = I :: Item ;
25652565
@@ -2572,18 +2572,18 @@ impl<'a, I: Iterator> Iterator for Splice<'a, I> {
25722572 }
25732573}
25742574
2575- #[ stable( feature = "vec_splice" , since = "1.22 .0" ) ]
2575+ #[ stable( feature = "vec_splice" , since = "1.21 .0" ) ]
25762576impl < ' a , I : Iterator > DoubleEndedIterator for Splice < ' a , I > {
25772577 fn next_back ( & mut self ) -> Option < Self :: Item > {
25782578 self . drain . next_back ( )
25792579 }
25802580}
25812581
2582- #[ stable( feature = "vec_splice" , since = "1.22 .0" ) ]
2582+ #[ stable( feature = "vec_splice" , since = "1.21 .0" ) ]
25832583impl < ' a , I : Iterator > ExactSizeIterator for Splice < ' a , I > { }
25842584
25852585
2586- #[ stable( feature = "vec_splice" , since = "1.22 .0" ) ]
2586+ #[ stable( feature = "vec_splice" , since = "1.21 .0" ) ]
25872587impl < ' a , I : Iterator > Drop for Splice < ' a , I > {
25882588 fn drop ( & mut self ) {
25892589 // exhaust drain first
0 commit comments