Skip to content

Commit

Permalink
Address Alex's PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Stjepan Glavina committed Mar 21, 2017
1 parent f1913e2 commit e365974
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/libcollections/lib.rs
Expand Up @@ -52,7 +52,7 @@
#![feature(shared)]
#![feature(slice_get_slice)]
#![feature(slice_patterns)]
#![feature(sort_unstable)]
#![cfg_attr(not(test), feature(sort_unstable))]
#![feature(specialization)]
#![feature(staged_api)]
#![feature(str_internals)]
Expand Down
6 changes: 6 additions & 0 deletions src/libcollections/slice.rs
Expand Up @@ -1173,6 +1173,8 @@ impl<T> [T] {
/// # Examples
///
/// ```
/// #![feature(sort_unstable)]
///
/// let mut v = [-5, 4, 1, -3, 2];
///
/// v.sort_unstable();
Expand Down Expand Up @@ -1208,6 +1210,8 @@ impl<T> [T] {
/// # Examples
///
/// ```
/// #![feature(sort_unstable)]
///
/// let mut v = [5, 4, 1, 3, 2];
/// v.sort_unstable_by(|a, b| a.cmp(b));
/// assert!(v == [1, 2, 3, 4, 5]);
Expand Down Expand Up @@ -1246,6 +1250,8 @@ impl<T> [T] {
/// # Examples
///
/// ```
/// #![feature(sort_unstable)]
///
/// let mut v = [-5i32, 4, 1, -3, 2];
///
/// v.sort_unstable_by_key(|k| k.abs());
Expand Down
2 changes: 0 additions & 2 deletions src/libcore/slice/sort.rs
Expand Up @@ -16,8 +16,6 @@
//! Unstable sorting is compatible with libcore because it doesn't allocate memory, unlike our
//! stable sorting implementation.

#![unstable(feature = "sort_unstable", issue = "40585")]

use cmp;
use mem;
use ptr;
Expand Down

0 comments on commit e365974

Please sign in to comment.