Skip to content

Commit 1e22322

Browse files
committed
---
yaml --- r: 151395 b: refs/heads/try2 c: b024ba5 h: refs/heads/master i: 151393: 504b46c 151391: e629079 v: v3
1 parent d522a7c commit 1e22322

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
@@ -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: 06fcb6b1c81f1f5190d431c169cd0c725fecf18e
8+
refs/heads/try2: b024ba544c8cf831423cdd24d2dc516d66dc6269
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try2/src/libstd/iter.rs renamed to branches/try2/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/try2/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/try2/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/try2/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)