about summary refs log tree commit diff
path: root/src/liballoc
diff options
context:
space:
mode:
authorScott McMurray <scottmcm@users.noreply.github.com>2019-01-31 12:47:31 -0800
committerScott McMurray <scottmcm@users.noreply.github.com>2019-02-12 22:26:44 -0800
commit3777b86f9b79306d16982ed693a5e4634be13a0e (patch)
tree6c0090e2dc5ee5a5785e9709f14270e96afcf9ac /src/liballoc
parent0f949c2fcc696d0260a99196d5e5400c59a26a54 (diff)
downloadrust-3777b86f9b79306d16982ed693a5e4634be13a0e.tar.gz
rust-3777b86f9b79306d16982ed693a5e4634be13a0e.zip
Stabilize slice_sort_by_cached_key
Diffstat (limited to 'src/liballoc')
-rw-r--r--src/liballoc/benches/lib.rs1
-rw-r--r--src/liballoc/slice.rs3
-rw-r--r--src/liballoc/tests/lib.rs1
3 files changed, 1 insertions, 4 deletions
diff --git a/src/liballoc/benches/lib.rs b/src/liballoc/benches/lib.rs
index 08c69ee6e85..a1884b7d548 100644
--- a/src/liballoc/benches/lib.rs
+++ b/src/liballoc/benches/lib.rs
@@ -1,5 +1,4 @@
 #![feature(repr_simd)]
-#![feature(slice_sort_by_cached_key)]
 #![feature(test)]
 
 extern crate rand;
diff --git a/src/liballoc/slice.rs b/src/liballoc/slice.rs
index c4f4a80a017..1f68efd019b 100644
--- a/src/liballoc/slice.rs
+++ b/src/liballoc/slice.rs
@@ -312,7 +312,6 @@ impl<T> [T] {
     /// # Examples
     ///
     /// ```
-    /// #![feature(slice_sort_by_cached_key)]
     /// let mut v = [-5i32, 4, 32, -3, 2];
     ///
     /// v.sort_by_cached_key(|k| k.to_string());
@@ -320,7 +319,7 @@ impl<T> [T] {
     /// ```
     ///
     /// [pdqsort]: https://github.com/orlp/pdqsort
-    #[unstable(feature = "slice_sort_by_cached_key", issue = "34447")]
+    #[stable(feature = "slice_sort_by_cached_key", since = "1.34.0")]
     #[inline]
     pub fn sort_by_cached_key<K, F>(&mut self, f: F)
         where F: FnMut(&T) -> K, K: Ord
diff --git a/src/liballoc/tests/lib.rs b/src/liballoc/tests/lib.rs
index 2b63ac5c7d2..2361a7db1f7 100644
--- a/src/liballoc/tests/lib.rs
+++ b/src/liballoc/tests/lib.rs
@@ -4,7 +4,6 @@
 #![feature(exact_size_is_empty)]
 #![feature(pattern)]
 #![feature(repeat_generic_slice)]
-#![feature(slice_sort_by_cached_key)]
 #![feature(try_reserve)]
 #![feature(unboxed_closures)]
 #![feature(vecdeque_rotate)]