From e6d95ce0b88bddd9cbb54bd272ba7c48601ba7a0 Mon Sep 17 00:00:00 2001 From: Grachev Mikhail Date: Mon, 6 Jan 2020 15:18:03 +0300 Subject: Formatting an example for method Vec.retain --- src/liballoc/vec.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/liballoc') diff --git a/src/liballoc/vec.rs b/src/liballoc/vec.rs index 93a51ccb207..e3e6d950953 100644 --- a/src/liballoc/vec.rs +++ b/src/liballoc/vec.rs @@ -1054,7 +1054,7 @@ impl Vec { /// /// ``` /// let mut vec = vec![1, 2, 3, 4]; - /// vec.retain(|&x| x%2 == 0); + /// vec.retain(|&x| x % 2 == 0); /// assert_eq!(vec, [2, 4]); /// ``` /// -- cgit 1.4.1-3-g733a5 From 24c6cd80c3b44c5c9a33733e2524afb3e015ee92 Mon Sep 17 00:00:00 2001 From: dylan_DPC Date: Mon, 30 Dec 2019 17:29:03 +0530 Subject: stabilise remove_item --- src/liballoc/vec.rs | 1 - 1 file changed, 1 deletion(-) (limited to 'src/liballoc') diff --git a/src/liballoc/vec.rs b/src/liballoc/vec.rs index a27a13847d6..73c310bb2bf 100644 --- a/src/liballoc/vec.rs +++ b/src/liballoc/vec.rs @@ -1696,7 +1696,6 @@ impl Vec { /// # Examples /// /// ``` - /// # #![feature(vec_remove_item)] /// let mut vec = vec![1, 2, 3, 1]; /// /// vec.remove_item(&1); -- cgit 1.4.1-3-g733a5 From 6bec8e997270bed18546b350336d88879b91ff78 Mon Sep 17 00:00:00 2001 From: dylan_DPC Date: Mon, 6 Jan 2020 20:37:49 +0530 Subject: stabilise it --- src/liballoc/vec.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/liballoc') diff --git a/src/liballoc/vec.rs b/src/liballoc/vec.rs index 73c310bb2bf..bc0cd6eff37 100644 --- a/src/liballoc/vec.rs +++ b/src/liballoc/vec.rs @@ -1702,7 +1702,7 @@ impl Vec { /// /// 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(&mut self, item: &V) -> Option where T: PartialEq, -- cgit 1.4.1-3-g733a5 From 503d06b90dfd8f6055c586c488dbd3a741e9f0c2 Mon Sep 17 00:00:00 2001 From: dylan_DPC Date: Mon, 6 Jan 2020 23:28:47 +0530 Subject: oh the one that was left behind --- src/liballoc/tests/lib.rs | 1 - 1 file changed, 1 deletion(-) (limited to 'src/liballoc') 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}; -- cgit 1.4.1-3-g733a5