Auto merge of #43010 - stjepang:stabilize-sort-unstable, r=alexcrichton
Stabilize feature sort_unstable Closes #40585
This commit is contained in:
@@ -212,15 +212,15 @@ pub trait SliceExt {
|
||||
#[stable(feature = "copy_from_slice", since = "1.9.0")]
|
||||
fn copy_from_slice(&mut self, src: &[Self::Item]) where Self::Item: Copy;
|
||||
|
||||
#[unstable(feature = "sort_unstable", issue = "40585")]
|
||||
#[stable(feature = "sort_unstable", since = "1.20.0")]
|
||||
fn sort_unstable(&mut self)
|
||||
where Self::Item: Ord;
|
||||
|
||||
#[unstable(feature = "sort_unstable", issue = "40585")]
|
||||
#[stable(feature = "sort_unstable", since = "1.20.0")]
|
||||
fn sort_unstable_by<F>(&mut self, compare: F)
|
||||
where F: FnMut(&Self::Item, &Self::Item) -> Ordering;
|
||||
|
||||
#[unstable(feature = "sort_unstable", issue = "40585")]
|
||||
#[stable(feature = "sort_unstable", since = "1.20.0")]
|
||||
fn sort_unstable_by_key<B, F>(&mut self, f: F)
|
||||
where F: FnMut(&Self::Item) -> B,
|
||||
B: Ord;
|
||||
|
||||
@@ -351,7 +351,7 @@ fn partition_in_blocks<T, F>(v: &mut [T], pivot: &T, is_less: &mut F) -> usize
|
||||
|
||||
if start_l < end_l {
|
||||
// The left block remains.
|
||||
// Move it's remaining out-of-order elements to the far right.
|
||||
// Move its remaining out-of-order elements to the far right.
|
||||
debug_assert_eq!(width(l, r), block_l);
|
||||
while start_l < end_l {
|
||||
unsafe {
|
||||
@@ -363,7 +363,7 @@ fn partition_in_blocks<T, F>(v: &mut [T], pivot: &T, is_less: &mut F) -> usize
|
||||
width(v.as_mut_ptr(), r)
|
||||
} else if start_r < end_r {
|
||||
// The right block remains.
|
||||
// Move it's remaining out-of-order elements to the far left.
|
||||
// Move its remaining out-of-order elements to the far left.
|
||||
debug_assert_eq!(width(l, r), block_r);
|
||||
while start_r < end_r {
|
||||
unsafe {
|
||||
|
||||
@@ -34,7 +34,6 @@
|
||||
#![feature(slice_patterns)]
|
||||
#![feature(slice_rotate)]
|
||||
#![feature(sort_internals)]
|
||||
#![feature(sort_unstable)]
|
||||
#![feature(specialization)]
|
||||
#![feature(step_by)]
|
||||
#![feature(step_trait)]
|
||||
|
||||
Reference in New Issue
Block a user