@@ -1943,15 +1943,14 @@ impl<T> Vec<T> {
1943
1943
/// # Examples
1944
1944
///
1945
1945
/// ```
1946
- /// #![feature(splice)]
1947
1946
/// let mut v = vec![1, 2, 3];
1948
1947
/// let new = [7, 8];
1949
1948
/// let u: Vec<_> = v.splice(..2, new.iter().cloned()).collect();
1950
1949
/// assert_eq!(v, &[7, 8, 3]);
1951
1950
/// assert_eq!(u, &[1, 2]);
1952
1951
/// ```
1953
1952
#[ inline]
1954
- #[ unstable ( feature = "splice " , reason = "recently added" , issue = "32310 ") ]
1953
+ #[ stable ( feature = "vec_splice " , since = "1.22.0 " ) ]
1955
1954
pub fn splice < R , I > ( & mut self , range : R , replace_with : I ) -> Splice < I :: IntoIter >
1956
1955
where R : RangeArgument < usize > , I : IntoIterator < Item =T >
1957
1956
{
@@ -2554,13 +2553,13 @@ impl<'a, T> InPlace<T> for PlaceBack<'a, T> {
2554
2553
/// [`splice()`]: struct.Vec.html#method.splice
2555
2554
/// [`Vec`]: struct.Vec.html
2556
2555
#[ derive( Debug ) ]
2557
- #[ unstable ( feature = "splice " , reason = "recently added" , issue = "32310 ") ]
2556
+ #[ stable ( feature = "vec_splice " , since = "1.22.0 " ) ]
2558
2557
pub struct Splice < ' a , I : Iterator + ' a > {
2559
2558
drain : Drain < ' a , I :: Item > ,
2560
2559
replace_with : I ,
2561
2560
}
2562
2561
2563
- #[ unstable ( feature = "splice " , reason = "recently added" , issue = "32310 ") ]
2562
+ #[ stable ( feature = "vec_splice " , since = "1.22.0 " ) ]
2564
2563
impl < ' a , I : Iterator > Iterator for Splice < ' a , I > {
2565
2564
type Item = I :: Item ;
2566
2565
@@ -2573,18 +2572,18 @@ impl<'a, I: Iterator> Iterator for Splice<'a, I> {
2573
2572
}
2574
2573
}
2575
2574
2576
- #[ unstable ( feature = "splice " , reason = "recently added" , issue = "32310 ") ]
2575
+ #[ stable ( feature = "vec_splice " , since = "1.22.0 " ) ]
2577
2576
impl < ' a , I : Iterator > DoubleEndedIterator for Splice < ' a , I > {
2578
2577
fn next_back ( & mut self ) -> Option < Self :: Item > {
2579
2578
self . drain . next_back ( )
2580
2579
}
2581
2580
}
2582
2581
2583
- #[ unstable ( feature = "splice " , reason = "recently added" , issue = "32310 ") ]
2582
+ #[ stable ( feature = "vec_splice " , since = "1.22.0 " ) ]
2584
2583
impl < ' a , I : Iterator > ExactSizeIterator for Splice < ' a , I > { }
2585
2584
2586
2585
2587
- #[ unstable ( feature = "splice " , reason = "recently added" , issue = "32310 ") ]
2586
+ #[ stable ( feature = "vec_splice " , since = "1.22.0 " ) ]
2588
2587
impl < ' a , I : Iterator > Drop for Splice < ' a , I > {
2589
2588
fn drop ( & mut self ) {
2590
2589
// exhaust drain first
0 commit comments