diff options
| author | Brian Anderson <banderson@mozilla.com> | 2012-09-23 22:25:43 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-09-23 23:01:49 -0700 |
| commit | afd91f8a5698e7767ddfbf90c665c08dcd4f0de0 (patch) | |
| tree | 3bc5d52fd888c010ea797f6570c92abe861c183a /src/libcore/unit.rs | |
| parent | 2dae768624de87bcec1160bd29c27af1affe7f5f (diff) | |
| download | rust-afd91f8a5698e7767ddfbf90c665c08dcd4f0de0.tar.gz rust-afd91f8a5698e7767ddfbf90c665c08dcd4f0de0.zip | |
Register snapshots. Remove redundant Eq impls, Makefile hacks
Diffstat (limited to 'src/libcore/unit.rs')
| -rw-r--r-- | src/libcore/unit.rs | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/libcore/unit.rs b/src/libcore/unit.rs index 30f1f5ab99c..4ccdf12b500 100644 --- a/src/libcore/unit.rs +++ b/src/libcore/unit.rs @@ -6,27 +6,11 @@ Functions for the unit type. use cmp::{Eq, Ord}; -#[cfg(stage0)] -impl () : Eq { - pure fn eq(&&_other: ()) -> bool { true } - pure fn ne(&&_other: ()) -> bool { false } -} -#[cfg(stage1)] -#[cfg(stage2)] impl () : Eq { pure fn eq(_other: &()) -> bool { true } pure fn ne(_other: &()) -> bool { false } } -#[cfg(stage0)] -impl () : Ord { - pure fn lt(&&_other: ()) -> bool { false } - pure fn le(&&_other: ()) -> bool { true } - pure fn ge(&&_other: ()) -> bool { true } - pure fn gt(&&_other: ()) -> bool { false } -} -#[cfg(stage1)] -#[cfg(stage2)] impl () : Ord { pure fn lt(_other: &()) -> bool { false } pure fn le(_other: &()) -> bool { true } |
