]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #22952 - huonw:missing-stable, r=alexcrichton
authorManish Goregaokar <manishsmail@gmail.com>
Tue, 3 Mar 2015 08:43:09 +0000 (14:13 +0530)
committerManish Goregaokar <manishsmail@gmail.com>
Tue, 3 Mar 2015 11:32:22 +0000 (17:02 +0530)
 Unstable is the conservative choice.

cc #22950.

src/libcore/iter.rs

index 518ec05f5b980944e5c06b5116b1835bd1c3c0dc..13d219ec674bce849ed942cd4f1e14a9ca814098 100644 (file)
@@ -2061,6 +2061,7 @@ pub struct Scan<I, St, F> {
     f: F,
 
     /// The current internal state to be passed to the closure next.
+    #[unstable(feature = "core")]
     pub state: St,
 }
 
@@ -2338,6 +2339,7 @@ fn idx(&mut self, index: usize) -> Option<I::Item> {
 pub struct Unfold<St, F> {
     f: F,
     /// Internal state that will be passed to the closure on the next iteration
+    #[unstable(feature = "core")]
     pub state: St,
 }