From cb66d8948a9375e7be65296d19586166157ec667 Mon Sep 17 00:00:00 2001 From: Zack Corr Date: Wed, 8 May 2013 21:11:23 +1000 Subject: Remove #[cfg(notest)] and use #[cfg(not(test))] to cooincide with #[cfg(debug)] --- src/libcore/num/float.rs | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src/libcore/num/float.rs') 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 for float { #[inline(always)] fn approx_epsilon() -> float { 1.0e-6 } @@ -387,7 +387,7 @@ impl ApproxEq 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 for float { #[inline(always)] fn add(&self, other: &float) -> float { *self + *other } } -#[cfg(notest)] +#[cfg(not(test))] impl Sub for float { #[inline(always)] fn sub(&self, other: &float) -> float { *self - *other } } -#[cfg(notest)] +#[cfg(not(test))] impl Mul for float { #[inline(always)] fn mul(&self, other: &float) -> float { *self * *other } } -#[cfg(notest)] +#[cfg(not(test))] impl Div for float { #[inline(always)] fn div(&self, other: &float) -> float { *self / *other } } -#[cfg(notest)] +#[cfg(not(test))] impl Rem for float { #[inline(always)] fn rem(&self, other: &float) -> float { *self % *other } } -#[cfg(notest)] +#[cfg(not(test))] impl Neg for float { #[inline(always)] fn neg(&self) -> float { -*self } -- cgit 1.4.1-3-g733a5