diff options
| author | Yuki Okushi <huyuumi.dev@gmail.com> | 2020-01-07 13:46:01 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-01-07 13:46:01 +0900 |
| commit | 4ed415b5478c74094c2859abfddb959588cd6bb1 (patch) | |
| tree | 67b8e9c87c4b7a1b574991d6c8d2c290f92e1063 /src/liballoc | |
| parent | 3cce950743e8aa74a4378dfdefbbc80223a00865 (diff) | |
| parent | 503d06b90dfd8f6055c586c488dbd3a741e9f0c2 (diff) | |
| download | rust-4ed415b5478c74094c2859abfddb959588cd6bb1.tar.gz rust-4ed415b5478c74094c2859abfddb959588cd6bb1.zip | |
Rollup merge of #67727 - Dylan-DPC:stabilise/remove_item, r=alexcrichton
Stabilise vec::remove_item Closes #40062 r? @alexcrichton
Diffstat (limited to 'src/liballoc')
| -rw-r--r-- | src/liballoc/tests/lib.rs | 1 | ||||
| -rw-r--r-- | src/liballoc/vec.rs | 3 |
2 files changed, 1 insertions, 3 deletions
diff --git a/src/liballoc/tests/lib.rs b/src/liballoc/tests/lib.rs index c1ae67a1a33..3fdee8bbfdf 100644 --- a/src/liballoc/tests/lib.rs +++ b/src/liballoc/tests/lib.rs @@ -11,7 +11,6 @@ #![feature(associated_type_bounds)] #![feature(binary_heap_into_iter_sorted)] #![feature(binary_heap_drain_sorted)] -#![feature(vec_remove_item)] use std::collections::hash_map::DefaultHasher; use std::hash::{Hash, Hasher}; diff --git a/src/liballoc/vec.rs b/src/liballoc/vec.rs index a27a13847d6..bc0cd6eff37 100644 --- a/src/liballoc/vec.rs +++ b/src/liballoc/vec.rs @@ -1696,14 +1696,13 @@ impl<T> Vec<T> { /// # Examples /// /// ``` - /// # #![feature(vec_remove_item)] /// let mut vec = vec![1, 2, 3, 1]; /// /// vec.remove_item(&1); /// /// assert_eq!(vec, vec![2, 3, 1]); /// ``` - #[unstable(feature = "vec_remove_item", reason = "recently added", issue = "40062")] + #[stable(feature = "vec_remove_item", since = "1.42.0")] pub fn remove_item<V>(&mut self, item: &V) -> Option<T> where T: PartialEq<V>, |
