Skip to content
/ rustc Public
forked from rust-lang/rust

Commit 4ed415b

Browse files
authored
Rollup merge of rust-lang#67727 - Dylan-DPC:stabilise/remove_item, r=alexcrichton
Stabilise vec::remove_item Closes rust-lang#40062 r? @alexcrichton
2 parents 3cce950 + 503d06b commit 4ed415b

File tree

5 files changed

+1
-6
lines changed

5 files changed

+1
-6
lines changed

src/liballoc/tests/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
#![feature(associated_type_bounds)]
1212
#![feature(binary_heap_into_iter_sorted)]
1313
#![feature(binary_heap_drain_sorted)]
14-
#![feature(vec_remove_item)]
1514

1615
use std::collections::hash_map::DefaultHasher;
1716
use std::hash::{Hash, Hasher};

src/liballoc/vec.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -1696,14 +1696,13 @@ impl<T> Vec<T> {
16961696
/// # Examples
16971697
///
16981698
/// ```
1699-
/// # #![feature(vec_remove_item)]
17001699
/// let mut vec = vec![1, 2, 3, 1];
17011700
///
17021701
/// vec.remove_item(&1);
17031702
///
17041703
/// assert_eq!(vec, vec![2, 3, 1]);
17051704
/// ```
1706-
#[unstable(feature = "vec_remove_item", reason = "recently added", issue = "40062")]
1705+
#[stable(feature = "vec_remove_item", since = "1.42.0")]
17071706
pub fn remove_item<V>(&mut self, item: &V) -> Option<T>
17081707
where
17091708
T: PartialEq<V>,

src/librustc/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@
5050
#![feature(thread_local)]
5151
#![feature(trace_macros)]
5252
#![feature(trusted_len)]
53-
#![feature(vec_remove_item)]
5453
#![feature(stmt_expr_attributes)]
5554
#![feature(integer_atomics)]
5655
#![feature(test)]

src/librustdoc/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
#![feature(nll)]
1111
#![feature(set_stdio)]
1212
#![feature(test)]
13-
#![feature(vec_remove_item)]
1413
#![feature(ptr_offset_from)]
1514
#![feature(crate_visibility_modifier)]
1615
#![feature(const_fn)]

src/tools/compiletest/src/main.rs

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#![crate_name = "compiletest"]
22
#![feature(test)]
3-
#![feature(vec_remove_item)]
43
#![deny(warnings)]
54

65
extern crate test;

0 commit comments

Comments
 (0)