Skip to content

Commit 81ac3f7

Browse files
committed
---
yaml --- r: 113856 b: refs/heads/master c: e7eed5f h: refs/heads/master v: v3
1 parent cf1a67e commit 81ac3f7

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
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: dfd967f239a079cf90f45bfc3d827547e6fe9008
2+
refs/heads/master: e7eed5f670e8b283e7afcba5c79b3b208167a647
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: ec0258a381b88b5574e3f8ce72ae553ac3a574b7
55
refs/heads/try: 7c6c492fb2af9a85f21ff952942df3523b22fd17

trunk/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;

trunk/src/libstd/unit.rs renamed to trunk/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-
}

trunk/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())

trunk/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)