diff options
Diffstat (limited to 'src/libcore/float.rs')
| -rw-r--r-- | src/libcore/float.rs | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/libcore/float.rs b/src/libcore/float.rs index df28426dc3a..2cd95269aaf 100644 --- a/src/libcore/float.rs +++ b/src/libcore/float.rs @@ -415,27 +415,11 @@ pure fn sin(x: float) -> float { f64::sin(x as f64) as float } pure fn cos(x: float) -> float { f64::cos(x as f64) as float } pure fn tan(x: float) -> float { f64::tan(x as f64) as float } -#[cfg(stage0)] -impl float: Eq { - pure fn eq(&&other: float) -> bool { self == other } - pure fn ne(&&other: float) -> bool { self != other } -} -#[cfg(stage1)] -#[cfg(stage2)] impl float : Eq { pure fn eq(other: &float) -> bool { self == (*other) } pure fn ne(other: &float) -> bool { self != (*other) } } -#[cfg(stage0)] -impl float: Ord { - pure fn lt(&&other: float) -> bool { self < other } - pure fn le(&&other: float) -> bool { self <= other } - pure fn ge(&&other: float) -> bool { self >= other } - pure fn gt(&&other: float) -> bool { self > other } -} -#[cfg(stage1)] -#[cfg(stage2)] impl float : Ord { pure fn lt(other: &float) -> bool { self < (*other) } pure fn le(other: &float) -> bool { self <= (*other) } |
