Skip to content

Commit 2324f82

Browse files
committed
---
yaml --- r: 151389 b: refs/heads/try2 c: e7eed5f h: refs/heads/master i: 151387: f6af7c6 v: v3
1 parent c2e6a09 commit 2324f82

File tree

5 files changed

+8
-9
lines changed

5 files changed

+8
-9
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: dfd967f239a079cf90f45bfc3d827547e6fe9008
8+
refs/heads/try2: e7eed5f670e8b283e7afcba5c79b3b208167a647
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try2/src/libcore/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ pub mod container;
3838

3939
/* Core types and methods on primitives */
4040

41+
mod unit;
4142
pub mod any;
4243
pub mod finally;
4344
pub mod raw;

branches/try2/src/libstd/unit.rs renamed to branches/try2/src/libcore/unit.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
use default::Default;
1515
#[cfg(not(test))]
1616
use cmp::{Eq, Equal, Ord, Ordering, TotalEq, TotalOrd};
17-
use fmt;
1817

1918
#[cfg(not(test))]
2019
impl Eq for () {
@@ -44,9 +43,3 @@ impl Default for () {
4443
#[inline]
4544
fn default() -> () { () }
4645
}
47-
48-
impl fmt::Show for () {
49-
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
50-
f.pad("()")
51-
}
52-
}

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1250,6 +1250,12 @@ impl<'a> Show for &'a any::Any {
12501250
fn fmt(&self, f: &mut Formatter) -> Result { f.pad("&Any") }
12511251
}
12521252

1253+
impl Show for () {
1254+
fn fmt(&self, f: &mut Formatter) -> Result {
1255+
f.pad("()")
1256+
}
1257+
}
1258+
12531259
impl Show for TypeId {
12541260
fn fmt(&self, f: &mut Formatter) -> Result {
12551261
write!(f.buf, "TypeId \\{ {} \\}", self.hash())

branches/try2/src/libstd/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,6 @@ pub mod prelude;
190190
#[path = "num/f32.rs"] pub mod f32;
191191
#[path = "num/f64.rs"] pub mod f64;
192192

193-
pub mod unit;
194193
pub mod bool;
195194
pub mod tuple;
196195

0 commit comments

Comments
 (0)