Skip to content

Commit 1432e8c

Browse files
committed
---
yaml --- r: 225936 b: refs/heads/stable c: 669d1cd h: refs/heads/master v: v3
1 parent fe80f32 commit 1432e8c

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-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: 02a8d5b57057a5c76667e85e92ea2c8a95303150
32+
refs/heads/stable: 669d1cd9e28aa6a6aa181c29b9d68edd33491f6f
3333
refs/tags/1.0.0: 55bd4f8ff2b323f317ae89e254ce87162d52a375
3434
refs/tags/1.1.0: bc3c16f09287e5545c1d3f76b7abd54f2eca868b

branches/stable/src/libcore/iter.rs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2542,6 +2542,9 @@ impl<I: RandomAccessIterator, F> RandomAccessIterator for Inspect<I, F>
25422542
/// ```
25432543
#[unstable(feature = "iter_unfold")]
25442544
#[derive(Clone)]
2545+
#[deprecated(since = "1.2.0",
2546+
reason = "has gained enough traction to retain its position \
2547+
in the standard library")]
25452548
pub struct Unfold<St, F> {
25462549
f: F,
25472550
/// Internal state that will be passed to the closure on the next iteration
@@ -2550,6 +2553,9 @@ pub struct Unfold<St, F> {
25502553
}
25512554

25522555
#[unstable(feature = "iter_unfold")]
2556+
#[deprecated(since = "1.2.0",
2557+
reason = "has gained enough traction to retain its position \
2558+
in the standard library")]
25532559
impl<A, St, F> Unfold<St, F> where F: FnMut(&mut St) -> Option<A> {
25542560
/// Creates a new iterator with the specified closure as the "iterator
25552561
/// function" and an initial state to eventually pass to the closure
@@ -2995,11 +3001,17 @@ type IterateState<T, F> = (F, Option<T>, bool);
29953001
/// An iterator that repeatedly applies a given function, starting
29963002
/// from a given seed value.
29973003
#[unstable(feature = "iter_iterate")]
3004+
#[deprecated(since = "1.2.0",
3005+
reason = "has gained enough traction to retain its position \
3006+
in the standard library")]
29983007
pub type Iterate<T, F> = Unfold<IterateState<T, F>, fn(&mut IterateState<T, F>) -> Option<T>>;
29993008

30003009
/// Creates a new iterator that produces an infinite sequence of
30013010
/// repeated applications of the given function `f`.
30023011
#[unstable(feature = "iter_iterate")]
3012+
#[deprecated(since = "1.2.0",
3013+
reason = "has gained enough traction to retain its position \
3014+
in the standard library")]
30033015
pub fn iterate<T, F>(seed: T, f: F) -> Iterate<T, F> where
30043016
T: Clone,
30053017
F: FnMut(T) -> T,

0 commit comments

Comments
 (0)