Skip to content

Commit 60711f8

Browse files
committed
---
yaml --- r: 30890 b: refs/heads/incoming c: 84b0583 h: refs/heads/master v: v3
1 parent 6cfb31b commit 60711f8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ refs/heads/try: d324a424d8f84b1eb049b12cf34182bda91b0024
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: d0c6ce338884ee21843f4b40bf6bf18d222ce5df
9-
refs/heads/incoming: a3a257cc3b29cb134b05a72adbfeff08f1e7a98c
9+
refs/heads/incoming: 84b058306472810edb4bc215cea621f1890b8b02
1010
refs/heads/dist-snap: 2f32a1581f522e524009138b33b1c7049ced668d
1111
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1212
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/incoming/src/libcore/iter.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ pure fn foldl<A,B,IA:BaseIter<A>>(self: &IA, +b0: B, blk: fn(&B, &A) -> B)
128128
}
129129

130130
pure fn to_vec<A:Copy,IA:BaseIter<A>>(self: &IA) -> ~[A] {
131-
foldl::<A,~[A],IA>(self, ~[], |r, a| vec::append(*r, ~[*a]))
131+
foldl::<A,~[A],IA>(self, ~[], |r, a| vec::append(copy (*r), ~[*a]))
132132
}
133133

134134
pure fn contains<A:Eq,IA:BaseIter<A>>(self: IA, x: &A) -> bool {
@@ -174,7 +174,7 @@ pure fn repeat(times: uint, blk: fn() -> bool) {
174174
pure fn min<A:Copy Ord,IA:BaseIter<A>>(self: &IA) -> A {
175175
match do foldl::<A,Option<A>,IA>(self, None) |a, b| {
176176
match a {
177-
&Some(a_) if a_ < *b => {
177+
&Some(ref a_) if *a_ < *b => {
178178
*(move a)
179179
}
180180
_ => Some(*b)
@@ -188,7 +188,7 @@ pure fn min<A:Copy Ord,IA:BaseIter<A>>(self: &IA) -> A {
188188
pure fn max<A:Copy Ord,IA:BaseIter<A>>(self: &IA) -> A {
189189
match do foldl::<A,Option<A>,IA>(self, None) |a, b| {
190190
match a {
191-
&Some(a_) if a_ > *b => {
191+
&Some(ref a_) if *a_ > *b => {
192192
*(move a)
193193
}
194194
_ => Some(*b)

0 commit comments

Comments
 (0)