diff options
| author | bors <bors@rust-lang.org> | 2013-05-08 18:15:41 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2013-05-08 18:15:41 -0700 |
| commit | 3bbbb314ee61aa00deb3e9756421fd2465fd7a91 (patch) | |
| tree | 73a6df9c48dba9bb72825306b74d7aff41b435ce /src/libcore/num/float.rs | |
| parent | d82d9874a6f88e0afa021796e9efaba5b3670c31 (diff) | |
| parent | cb66d8948a9375e7be65296d19586166157ec667 (diff) | |
| download | rust-3bbbb314ee61aa00deb3e9756421fd2465fd7a91.tar.gz rust-3bbbb314ee61aa00deb3e9756421fd2465fd7a91.zip | |
auto merge of #6327 : z0w0/rust/rm-notest, r=brson
Makes it more consistent, imo.
Diffstat (limited to 'src/libcore/num/float.rs')
| -rw-r--r-- | src/libcore/num/float.rs | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/libcore/num/float.rs b/src/libcore/num/float.rs index 9c3d30be0d4..e6a2ed7ea97 100644 --- a/src/libcore/num/float.rs +++ b/src/libcore/num/float.rs @@ -363,7 +363,7 @@ pub fn tan(x: float) -> float { impl Num for float {} -#[cfg(notest)] +#[cfg(not(test))] impl Eq for float { #[inline(always)] fn eq(&self, other: &float) -> bool { (*self) == (*other) } @@ -371,7 +371,7 @@ impl Eq for float { fn ne(&self, other: &float) -> bool { (*self) != (*other) } } -#[cfg(notest)] +#[cfg(not(test))] impl ApproxEq<float> for float { #[inline(always)] fn approx_epsilon() -> float { 1.0e-6 } @@ -387,7 +387,7 @@ impl ApproxEq<float> for float { } } -#[cfg(notest)] +#[cfg(not(test))] impl Ord for float { #[inline(always)] fn lt(&self, other: &float) -> bool { (*self) < (*other) } @@ -695,36 +695,36 @@ impl RealExt for float { fn yn(&self, n: int) -> float { yn(n as c_int, *self as f64) as float } } -#[cfg(notest)] +#[cfg(not(test))] impl Add<float,float> for float { #[inline(always)] fn add(&self, other: &float) -> float { *self + *other } } -#[cfg(notest)] +#[cfg(not(test))] impl Sub<float,float> for float { #[inline(always)] fn sub(&self, other: &float) -> float { *self - *other } } -#[cfg(notest)] +#[cfg(not(test))] impl Mul<float,float> for float { #[inline(always)] fn mul(&self, other: &float) -> float { *self * *other } } -#[cfg(notest)] +#[cfg(not(test))] impl Div<float,float> for float { #[inline(always)] fn div(&self, other: &float) -> float { *self / *other } } -#[cfg(notest)] +#[cfg(not(test))] impl Rem<float,float> for float { #[inline(always)] fn rem(&self, other: &float) -> float { *self % *other } } -#[cfg(notest)] +#[cfg(not(test))] impl Neg<float> for float { #[inline(always)] fn neg(&self) -> float { -*self } |
