Skip to content

Commit 3777b86

Browse files
committed
Stabilize slice_sort_by_cached_key
1 parent 0f949c2 commit 3777b86

File tree

13 files changed

+1
-14
lines changed

13 files changed

+1
-14
lines changed

src/liballoc/benches/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#![feature(repr_simd)]
2-
#![feature(slice_sort_by_cached_key)]
32
#![feature(test)]
43

54
extern crate rand;

src/liballoc/slice.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -312,15 +312,14 @@ impl<T> [T] {
312312
/// # Examples
313313
///
314314
/// ```
315-
/// #![feature(slice_sort_by_cached_key)]
316315
/// let mut v = [-5i32, 4, 32, -3, 2];
317316
///
318317
/// v.sort_by_cached_key(|k| k.to_string());
319318
/// assert!(v == [-3, -5, 2, 32, 4]);
320319
/// ```
321320
///
322321
/// [pdqsort]: https://github.com/orlp/pdqsort
323-
#[unstable(feature = "slice_sort_by_cached_key", issue = "34447")]
322+
#[stable(feature = "slice_sort_by_cached_key", since = "1.34.0")]
324323
#[inline]
325324
pub fn sort_by_cached_key<K, F>(&mut self, f: F)
326325
where F: FnMut(&T) -> K, K: Ord

src/liballoc/tests/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
#![feature(exact_size_is_empty)]
55
#![feature(pattern)]
66
#![feature(repeat_generic_slice)]
7-
#![feature(slice_sort_by_cached_key)]
87
#![feature(try_reserve)]
98
#![feature(unboxed_closures)]
109
#![feature(vecdeque_rotate)]

src/librustc/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@
4747
#![feature(rustc_diagnostic_macros)]
4848
#![feature(rustc_attrs)]
4949
#![feature(slice_patterns)]
50-
#![feature(slice_sort_by_cached_key)]
5150
#![feature(specialization)]
5251
#![feature(unboxed_closures)]
5352
#![feature(thread_local)]

src/librustc_codegen_llvm/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
#![feature(nll)]
1818
#![feature(range_contains)]
1919
#![feature(rustc_diagnostic_macros)]
20-
#![feature(slice_sort_by_cached_key)]
2120
#![feature(optin_builtin_traits)]
2221
#![feature(concat_idents)]
2322
#![feature(link_args)]

src/librustc_codegen_ssa/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
#![feature(libc)]
77
#![feature(rustc_diagnostic_macros)]
88
#![feature(in_band_lifetimes)]
9-
#![feature(slice_sort_by_cached_key)]
109
#![feature(nll)]
1110
#![allow(unused_attributes)]
1211
#![allow(dead_code)]

src/librustc_driver/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
#![cfg_attr(unix, feature(libc))]
1111
#![feature(nll)]
1212
#![feature(rustc_diagnostic_macros)]
13-
#![feature(slice_sort_by_cached_key)]
1413
#![feature(set_stdio)]
1514
#![feature(no_debug)]
1615
#![feature(integer_atomics)]

src/librustc_metadata/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
#![feature(proc_macro_internals)]
77
#![feature(proc_macro_quote)]
88
#![feature(rustc_diagnostic_macros)]
9-
#![feature(slice_sort_by_cached_key)]
109
#![feature(crate_visibility_modifier)]
1110
#![feature(specialization)]
1211
#![feature(rustc_private)]

src/librustc_mir/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ Rust MIR: a lowered representation of Rust. Also: an experiment!
77
#![feature(nll)]
88
#![feature(in_band_lifetimes)]
99
#![feature(slice_patterns)]
10-
#![feature(slice_sort_by_cached_key)]
1110
#![feature(box_patterns)]
1211
#![feature(box_syntax)]
1312
#![feature(crate_visibility_modifier)]

src/librustc_resolve/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
#![feature(label_break_value)]
55
#![feature(nll)]
66
#![feature(rustc_diagnostic_macros)]
7-
#![feature(slice_sort_by_cached_key)]
87

98
#![recursion_limit="256"]
109

src/librustc_typeck/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ This API is completely unstable and subject to change.
6767
#![feature(refcell_replace_swap)]
6868
#![feature(rustc_diagnostic_macros)]
6969
#![feature(slice_patterns)]
70-
#![feature(slice_sort_by_cached_key)]
7170
#![feature(never_type)]
7271

7372
#![recursion_limit="256"]

src/librustdoc/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
#![feature(box_syntax)]
88
#![feature(nll)]
99
#![feature(set_stdio)]
10-
#![feature(slice_sort_by_cached_key)]
1110
#![feature(test)]
1211
#![feature(vec_remove_item)]
1312
#![feature(ptr_offset_from)]

src/libsyntax/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
#![feature(nll)]
1515
#![feature(rustc_attrs)]
1616
#![feature(rustc_diagnostic_macros)]
17-
#![feature(slice_sort_by_cached_key)]
1817
#![feature(step_trait)]
1918
#![feature(try_trait)]
2019
#![feature(unicode_internals)]

0 commit comments

Comments
 (0)