Skip to content

Commit 1565feb

Browse files
author
blake2-ppc
committed
---
yaml --- r: 143070 b: refs/heads/try2 c: 4623e81 h: refs/heads/master v: v3
1 parent 90d1cf2 commit 1565feb

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ refs/heads/snap-stage3: 78a7676898d9f80ab540c6df5d4c9ce35bb50463
55
refs/heads/try: 519addf6277dbafccbb4159db4b710c37eaa2ec5
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8-
refs/heads/try2: 435fcda5e99ad5944c780f864a550b3211a6ab47
8+
refs/heads/try2: 4623e81aa5429cf3b9b0837907b70da5e749facc
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try2/src/libstd/iterator.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ impl<A, T: DoubleEndedIterator<A>> DoubleEndedIteratorUtil<A> for T {
7474

7575
/// An double-ended iterator with the direction inverted
7676
// FIXME #6967: Dummy A parameter to get around type inference bug
77+
#[deriving(Clone)]
7778
pub struct InvertIterator<A, T> {
7879
priv iter: T
7980
}
@@ -753,6 +754,7 @@ impl<A, T: Clone + Iterator<A>> ClonableIterator<A> for T {
753754
}
754755

755756
/// An iterator that repeats endlessly
757+
#[deriving(Clone)]
756758
pub struct CycleIterator<A, T> {
757759
priv orig: T,
758760
priv iter: T,
@@ -780,6 +782,7 @@ impl<A, T: Clone + Iterator<A>> Iterator<A> for CycleIterator<A, T> {
780782

781783
/// An iterator which strings two iterators together
782784
// FIXME #6967: Dummy A parameter to get around type inference bug
785+
#[deriving(Clone)]
783786
pub struct ChainIterator<A, T, U> {
784787
priv a: T,
785788
priv b: U,
@@ -835,6 +838,7 @@ for ChainIterator<A, T, U> {
835838

836839
/// An iterator which iterates two other iterators simultaneously
837840
// FIXME #6967: Dummy A & B parameters to get around type inference bug
841+
#[deriving(Clone)]
838842
pub struct ZipIterator<A, T, B, U> {
839843
priv a: T,
840844
priv b: U
@@ -988,6 +992,7 @@ for FilterMapIterator<'self, A, B, T> {
988992

989993
/// An iterator which yields the current count and the element during iteration
990994
// FIXME #6967: Dummy A parameter to get around type inference bug
995+
#[deriving(Clone)]
991996
pub struct EnumerateIterator<A, T> {
992997
priv iter: T,
993998
priv count: uint
@@ -1086,6 +1091,7 @@ impl<'self, A, T: Iterator<A>> Iterator<A> for TakeWhileIterator<'self, A, T> {
10861091

10871092
/// An iterator which skips over `n` elements of `iter`.
10881093
// FIXME #6967: Dummy A parameter to get around type inference bug
1094+
#[deriving(Clone)]
10891095
pub struct SkipIterator<A, T> {
10901096
priv iter: T,
10911097
priv n: uint
@@ -1134,6 +1140,7 @@ impl<A, T: Iterator<A>> Iterator<A> for SkipIterator<A, T> {
11341140

11351141
/// An iterator which only iterates over the first `n` iterations of `iter`.
11361142
// FIXME #6967: Dummy A parameter to get around type inference bug
1143+
#[deriving(Clone)]
11371144
pub struct TakeIterator<A, T> {
11381145
priv iter: T,
11391146
priv n: uint
@@ -1285,6 +1292,7 @@ impl<'self, A, St> Iterator<A> for UnfoldrIterator<'self, A, St> {
12851292

12861293
/// An infinite iterator starting at `start` and advancing by `step` with each
12871294
/// iteration
1295+
#[deriving(Clone)]
12881296
pub struct Counter<A> {
12891297
/// The current state the counter is at (next value to be yielded)
12901298
state: A,

0 commit comments

Comments
 (0)