diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2022-01-31 07:00:45 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-01-31 07:00:45 +0100 |
| commit | b0cdf7e995c3b5da77ce7a71bd27cdde4e2f7720 (patch) | |
| tree | 5d5a5fa7f44bf3e1fdefecacfeda172889465afa | |
| parent | cd27f1b56ed2efc51dda161da39cf1da853d6976 (diff) | |
| parent | 105a7461b988bf130a7a52ac86d7bccbb8df3dab (diff) | |
| download | rust-b0cdf7e995c3b5da77ce7a71bd27cdde4e2f7720.tar.gz rust-b0cdf7e995c3b5da77ce7a71bd27cdde4e2f7720.zip | |
Rollup merge of #93480 - est31:remove_unstable_deprecated, r=Mark-Simulacrum
Remove deprecated and unstable slice_partition_at_index functions They have been deprecated since commit 01ac5a97c90c26ac35ca9d65f685dd6701edfa3b which was part of the 1.49.0 release, so from the point of nightly, 11 releases ago.
| -rw-r--r-- | library/core/src/slice/mod.rs | 44 | ||||
| -rw-r--r-- | library/core/tests/lib.rs | 1 |
2 files changed, 0 insertions, 45 deletions
diff --git a/library/core/src/slice/mod.rs b/library/core/src/slice/mod.rs index 0599f274013..4e22c1d8c6d 100644 --- a/library/core/src/slice/mod.rs +++ b/library/core/src/slice/mod.rs @@ -2559,50 +2559,6 @@ impl<T> [T] { } /// Reorder the slice such that the element at `index` is at its final sorted position. - #[unstable(feature = "slice_partition_at_index", issue = "55300")] - #[rustc_deprecated(since = "1.49.0", reason = "use the select_nth_unstable() instead")] - #[inline] - pub fn partition_at_index(&mut self, index: usize) -> (&mut [T], &mut T, &mut [T]) - where - T: Ord, - { - self.select_nth_unstable(index) - } - - /// Reorder the slice with a comparator function such that the element at `index` is at its - /// final sorted position. - #[unstable(feature = "slice_partition_at_index", issue = "55300")] - #[rustc_deprecated(since = "1.49.0", reason = "use select_nth_unstable_by() instead")] - #[inline] - pub fn partition_at_index_by<F>( - &mut self, - index: usize, - compare: F, - ) -> (&mut [T], &mut T, &mut [T]) - where - F: FnMut(&T, &T) -> Ordering, - { - self.select_nth_unstable_by(index, compare) - } - - /// Reorder the slice with a key extraction function such that the element at `index` is at its - /// final sorted position. - #[unstable(feature = "slice_partition_at_index", issue = "55300")] - #[rustc_deprecated(since = "1.49.0", reason = "use the select_nth_unstable_by_key() instead")] - #[inline] - pub fn partition_at_index_by_key<K, F>( - &mut self, - index: usize, - f: F, - ) -> (&mut [T], &mut T, &mut [T]) - where - F: FnMut(&T) -> K, - K: Ord, - { - self.select_nth_unstable_by_key(index, f) - } - - /// Reorder the slice such that the element at `index` is at its final sorted position. /// /// This reordering has the additional property that any value at position `i < index` will be /// less than or equal to any value at a position `j > index`. Additionally, this reordering is diff --git a/library/core/tests/lib.rs b/library/core/tests/lib.rs index a2bef2012cf..ebe1a63a470 100644 --- a/library/core/tests/lib.rs +++ b/library/core/tests/lib.rs @@ -46,7 +46,6 @@ #![feature(is_sorted)] #![feature(pattern)] #![feature(sort_internals)] -#![feature(slice_partition_at_index)] #![feature(slice_take)] #![feature(maybe_uninit_uninit_array)] #![feature(maybe_uninit_array_assume_init)] |
