File tree Expand file tree Collapse file tree 5 files changed +6
-1
lines changed Expand file tree Collapse file tree 5 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 1111#![ feature( associated_type_bounds) ]
1212#![ feature( binary_heap_into_iter_sorted) ]
1313#![ feature( binary_heap_drain_sorted) ]
14+ #![ feature( vec_remove_item) ]
1415
1516use std:: collections:: hash_map:: DefaultHasher ;
1617use std:: hash:: { Hash , Hasher } ;
Original file line number Diff line number Diff line change @@ -1696,13 +1696,14 @@ impl<T> Vec<T> {
16961696 /// # Examples
16971697 ///
16981698 /// ```
1699+ /// # #![feature(vec_remove_item)]
16991700 /// let mut vec = vec![1, 2, 3, 1];
17001701 ///
17011702 /// vec.remove_item(&1);
17021703 ///
17031704 /// assert_eq!(vec, vec![2, 3, 1]);
17041705 /// ```
1705- #[ stable ( feature = "vec_remove_item" , since = "1.42.0 " ) ]
1706+ #[ unstable ( feature = "vec_remove_item" , reason = "recently added" , issue = "40062 ") ]
17061707 pub fn remove_item < V > ( & mut self , item : & V ) -> Option < T >
17071708 where
17081709 T : PartialEq < V > ,
Original file line number Diff line number Diff line change 5050#![ feature( thread_local) ]
5151#![ feature( trace_macros) ]
5252#![ feature( trusted_len) ]
53+ #![ feature( vec_remove_item) ]
5354#![ feature( stmt_expr_attributes) ]
5455#![ feature( integer_atomics) ]
5556#![ feature( test) ]
Original file line number Diff line number Diff line change 1010#![ feature( nll) ]
1111#![ feature( set_stdio) ]
1212#![ feature( test) ]
13+ #![ feature( vec_remove_item) ]
1314#![ feature( ptr_offset_from) ]
1415#![ feature( crate_visibility_modifier) ]
1516#![ feature( const_fn) ]
Original file line number Diff line number Diff line change 11#![ crate_name = "compiletest" ]
2+ #![ feature( vec_remove_item) ]
23#![ deny( warnings) ]
34// The `test` crate is the only unstable feature
45// allowed here, just to share similar code.
You can’t perform that action at this time.
0 commit comments