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