diff options
| author | Brendan Zabarauskas <bjzaba@yahoo.com.au> | 2013-05-01 15:40:05 +1000 |
|---|---|---|
| committer | Brendan Zabarauskas <bjzaba@yahoo.com.au> | 2013-05-01 15:40:05 +1000 |
| commit | ee26c7c433dbb8d41a2b65dbc89eb84acfc2d311 (patch) | |
| tree | 3695dcd0a6ef66dcca551d6bb87776694987ee73 /src/libcore/num/float.rs | |
| parent | 7a857673ff76c966ceb061e3794b119e2e498c40 (diff) | |
| download | rust-ee26c7c433dbb8d41a2b65dbc89eb84acfc2d311.tar.gz rust-ee26c7c433dbb8d41a2b65dbc89eb84acfc2d311.zip | |
Revert rename of Div to Quot
Diffstat (limited to 'src/libcore/num/float.rs')
| -rw-r--r-- | src/libcore/num/float.rs | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/libcore/num/float.rs b/src/libcore/num/float.rs index 3aa8848cdbe..f163d67a69c 100644 --- a/src/libcore/num/float.rs +++ b/src/libcore/num/float.rs @@ -25,7 +25,7 @@ use libc::c_int; use num::{Zero, One, strconv}; use prelude::*; -pub use f64::{add, sub, mul, quot, rem, lt, le, eq, ne, ge, gt}; +pub use f64::{add, sub, mul, div, rem, lt, le, eq, ne, ge, gt}; pub use f64::logarithm; pub use f64::{acos, asin, atan2, cbrt, ceil, copysign, cosh, floor}; pub use f64::{erf, erfc, exp, expm1, exp2, abs_sub}; @@ -692,16 +692,12 @@ impl Mul<float,float> for float { fn mul(&self, other: &float) -> float { *self * *other } } -#[cfg(stage0,notest)] +#[cfg(notest)] impl Div<float,float> for float { #[inline(always)] fn div(&self, other: &float) -> float { *self / *other } } -#[cfg(not(stage0),notest)] -impl Quot<float,float> for float { - #[inline(always)] - fn quot(&self, other: &float) -> float { *self / *other } -} + #[cfg(stage0,notest)] impl Modulo<float,float> for float { #[inline(always)] |
