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/uint-template.rs | |
| parent | 2dae768624de87bcec1160bd29c27af1affe7f5f (diff) | |
Register snapshots. Remove redundant Eq impls, Makefile hacks
Diffstat (limited to 'src/libcore/uint-template.rs')
| -rw-r--r-- | src/libcore/uint-template.rs | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/libcore/uint-template.rs b/src/libcore/uint-template.rs index a0fd5f58a19..8b3a60f4fe3 100644 --- a/src/libcore/uint-template.rs +++ b/src/libcore/uint-template.rs @@ -61,15 +61,6 @@ pure fn compl(i: T) -> T { max_value ^ i } -#[cfg(stage0)] -impl T: Ord { - pure fn lt(&&other: T) -> bool { self < other } - pure fn le(&&other: T) -> bool { self <= other } - pure fn ge(&&other: T) -> bool { self >= other } - pure fn gt(&&other: T) -> bool { self > other } -} -#[cfg(stage1)] -#[cfg(stage2)] impl T : Ord { pure fn lt(other: &T) -> bool { self < (*other) } pure fn le(other: &T) -> bool { self <= (*other) } @@ -77,13 +68,6 @@ impl T : Ord { pure fn gt(other: &T) -> bool { self > (*other) } } -#[cfg(stage0)] -impl T: Eq { - pure fn eq(&&other: T) -> bool { return self == other; } - pure fn ne(&&other: T) -> bool { return self != other; } -} -#[cfg(stage1)] -#[cfg(stage2)] impl T : Eq { pure fn eq(other: &T) -> bool { return self == (*other); } pure fn ne(other: &T) -> bool { return self != (*other); } |
