Skip to content

Commit f4f32aa

Browse files
committed
---
yaml --- r: 225943 b: refs/heads/stable c: f85c4f6 h: refs/heads/master i: 225941: da4d838 225939: d406feb 225935: fe80f32 v: v3
1 parent e6e89bd commit f4f32aa

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,6 @@ refs/heads/tmp: e5d90d98402475b6e154ce216f9efcb80da1a747
2929
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
3030
refs/tags/homu-tmp: 1fe32ca12c51afcd761d9962f51a74ff0d07a591
3131
refs/tags/1.0.0-beta: 8cbb92b53468ee2b0c2d3eeb8567005953d40828
32-
refs/heads/stable: cdb69e2747e41db25d64cf77e99721e9134aa5b7
32+
refs/heads/stable: f85c4f62d8e3f703f9d7c801b982d5cd5afbd081
3333
refs/tags/1.0.0: 55bd4f8ff2b323f317ae89e254ce87162d52a375
3434
refs/tags/1.1.0: bc3c16f09287e5545c1d3f76b7abd54f2eca868b

branches/stable/src/libcollections/slice.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -872,6 +872,7 @@ impl<T> [T] {
872872
/// assert_eq!(Some(vec![3, 1, 2]), perms.next());
873873
/// ```
874874
#[unstable(feature = "permutations")]
875+
#[deprecated(since = "1.2.0", reason = "not clear this should be in the stdlib")]
875876
#[inline]
876877
pub fn permutations(&self) -> Permutations<T> where T: Clone {
877878
// NB see hack module in this file
@@ -897,6 +898,7 @@ impl<T> [T] {
897898
/// ```
898899
#[unstable(feature = "permutations",
899900
reason = "uncertain if this merits inclusion in std")]
901+
#[deprecated(since = "1.2.0", reason = "not clear this should be in the stdlib")]
900902
pub fn next_permutation(&mut self) -> bool where T: Ord {
901903
core_slice::SliceExt::next_permutation(self)
902904
}
@@ -920,6 +922,7 @@ impl<T> [T] {
920922
/// ```
921923
#[unstable(feature = "permutations",
922924
reason = "uncertain if this merits inclusion in std")]
925+
#[deprecated(since = "1.2.0", reason = "not clear this should be in the stdlib")]
923926
pub fn prev_permutation(&mut self) -> bool where T: Ord {
924927
core_slice::SliceExt::prev_permutation(self)
925928
}
@@ -1066,6 +1069,7 @@ impl<T: Clone, V: Borrow<[T]>> SliceConcatExt<T> for [V] {
10661069
/// sequence to its initial order.
10671070
#[unstable(feature = "permutations")]
10681071
#[derive(Clone)]
1072+
#[deprecated(since = "1.2.0", reason = "not clear this should be in the stdlib")]
10691073
pub struct ElementSwaps {
10701074
sdir: Vec<SizeDirection>,
10711075
/// If `true`, emit the last swap that returns the sequence to initial
@@ -1077,6 +1081,7 @@ pub struct ElementSwaps {
10771081
impl ElementSwaps {
10781082
/// Creates an `ElementSwaps` iterator for a sequence of `length` elements.
10791083
#[unstable(feature = "permutations")]
1084+
#[deprecated(since = "1.2.0", reason = "not clear this should be in the stdlib")]
10801085
pub fn new(length: usize) -> ElementSwaps {
10811086
// Initialize `sdir` with a direction that position should move in
10821087
// (all negative at the beginning) and the `size` of the
@@ -1199,6 +1204,7 @@ impl Iterator for ElementSwaps {
11991204
///
12001205
/// Generates even and odd permutations alternately.
12011206
#[unstable(feature = "permutations")]
1207+
#[deprecated(since = "1.2.0", reason = "not clear this should be in the stdlib")]
12021208
pub struct Permutations<T> {
12031209
swaps: ElementSwaps,
12041210
v: Vec<T>,

0 commit comments

Comments
 (0)