Skip to content

Commit b1d9365

Browse files
committed
---
yaml --- r: 114679 b: refs/heads/auto c: b024ba5 h: refs/heads/master i: 114677: ac1d8cd 114675: b90292e 114671: 178d233 v: v3
1 parent 0655e42 commit b1d9365

File tree

5 files changed

+18
-3
lines changed

5 files changed

+18
-3
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
1313
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1414
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1515
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
16-
refs/heads/auto: 06fcb6b1c81f1f5190d431c169cd0c725fecf18e
16+
refs/heads/auto: b024ba544c8cf831423cdd24d2dc516d66dc6269
1717
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1818
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1919
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336

branches/auto/src/libstd/iter.rs renamed to branches/auto/src/libcore/iter.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -969,7 +969,7 @@ impl<A: TotalOrd, T: Iterator<A>> OrdIterator<A> for T {
969969
}
970970

971971
/// `MinMaxResult` is an enum returned by `min_max`. See `OrdIterator::min_max` for more detail.
972-
#[deriving(Clone, Eq, Show)]
972+
#[deriving(Clone, Eq)]
973973
pub enum MinMaxResult<T> {
974974
/// Empty iterator
975975
NoElements,

branches/auto/src/libcore/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ mod unit;
4343
pub mod any;
4444
pub mod bool;
4545
pub mod finally;
46+
pub mod iter;
4647
pub mod option;
4748
pub mod raw;
4849
pub mod char;

branches/auto/src/libstd/fmt/mod.rs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -489,6 +489,7 @@ use char::Char;
489489
use container::Container;
490490
use io::MemWriter;
491491
use io;
492+
use iter;
492493
use iter::{Iterator, range};
493494
use num::Signed;
494495
use option::{Option,Some,None};
@@ -1301,5 +1302,18 @@ impl Show for TypeId {
13011302
}
13021303
}
13031304

1305+
impl<T: Show> Show for iter::MinMaxResult<T> {
1306+
fn fmt(&self, f: &mut Formatter) -> Result {
1307+
match *self {
1308+
iter::NoElements =>
1309+
write!(f.buf, "NoElements"),
1310+
iter::OneElement(ref t) =>
1311+
write!(f.buf, "OneElement({})", *t),
1312+
iter::MinMax(ref t1, ref t2) =>
1313+
write!(f.buf, "MinMax({}, {})", *t1, *t2),
1314+
}
1315+
}
1316+
}
1317+
13041318
// If you expected tests to be here, look instead at the run-pass/ifmt.rs test,
13051319
// it's a lot easier than creating all of the rt::Piece structures here.

branches/auto/src/libstd/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ pub use core::clone;
145145
pub use core::container;
146146
pub use core::default;
147147
pub use core::intrinsics;
148+
pub use core::iter;
148149
pub use core::mem;
149150
pub use core::option;
150151
pub use core::ptr;
@@ -217,7 +218,6 @@ pub mod gc;
217218

218219
pub mod from_str;
219220
pub mod num;
220-
pub mod iter;
221221
pub mod to_str;
222222
pub mod hash;
223223

0 commit comments

Comments
 (0)