File tree 5 files changed +6
-1
lines changed
5 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 11
11
#![ feature( associated_type_bounds) ]
12
12
#![ feature( binary_heap_into_iter_sorted) ]
13
13
#![ feature( binary_heap_drain_sorted) ]
14
+ #![ feature( vec_remove_item) ]
14
15
15
16
use std:: collections:: hash_map:: DefaultHasher ;
16
17
use std:: hash:: { Hash , Hasher } ;
Original file line number Diff line number Diff line change @@ -1696,13 +1696,14 @@ impl<T> Vec<T> {
1696
1696
/// # Examples
1697
1697
///
1698
1698
/// ```
1699
+ /// # #![feature(vec_remove_item)]
1699
1700
/// let mut vec = vec![1, 2, 3, 1];
1700
1701
///
1701
1702
/// vec.remove_item(&1);
1702
1703
///
1703
1704
/// assert_eq!(vec, vec![2, 3, 1]);
1704
1705
/// ```
1705
- #[ stable ( feature = "vec_remove_item" , since = "1.42.0 " ) ]
1706
+ #[ unstable ( feature = "vec_remove_item" , reason = "recently added" , issue = "40062 ") ]
1706
1707
pub fn remove_item < V > ( & mut self , item : & V ) -> Option < T >
1707
1708
where
1708
1709
T : PartialEq < V > ,
Original file line number Diff line number Diff line change 49
49
#![ feature( thread_local) ]
50
50
#![ feature( trace_macros) ]
51
51
#![ feature( trusted_len) ]
52
+ #![ feature( vec_remove_item) ]
52
53
#![ feature( stmt_expr_attributes) ]
53
54
#![ feature( integer_atomics) ]
54
55
#![ feature( test) ]
Original file line number Diff line number Diff line change 10
10
#![ feature( nll) ]
11
11
#![ feature( set_stdio) ]
12
12
#![ feature( test) ]
13
+ #![ feature( vec_remove_item) ]
13
14
#![ feature( ptr_offset_from) ]
14
15
#![ feature( crate_visibility_modifier) ]
15
16
#![ feature( drain_filter) ]
Original file line number Diff line number Diff line change 1
1
#![ crate_name = "compiletest" ]
2
+ #![ feature( vec_remove_item) ]
2
3
#![ deny( warnings) ]
3
4
// The `test` crate is the only unstable feature
4
5
// allowed here, just to share similar code.
You can’t perform that action at this time.
0 commit comments