diff options
| author | Zack Corr <zack@z0w0.me> | 2013-05-08 21:11:23 +1000 |
|---|---|---|
| committer | Zack Corr <zack@z0w0.me> | 2013-05-08 21:11:23 +1000 |
| commit | cb66d8948a9375e7be65296d19586166157ec667 (patch) | |
| tree | 43174998d9e6babcb867ff16aef05da07e49d7e7 /src/libcore/bool.rs | |
| parent | e6529c36af56eedf01dc5db29f9f6408f07e97c3 (diff) | |
| download | rust-cb66d8948a9375e7be65296d19586166157ec667.tar.gz rust-cb66d8948a9375e7be65296d19586166157ec667.zip | |
Remove #[cfg(notest)] and use #[cfg(not(test))] to cooincide with #[cfg(debug)]
Diffstat (limited to 'src/libcore/bool.rs')
| -rw-r--r-- | src/libcore/bool.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libcore/bool.rs b/src/libcore/bool.rs index 1b4b81dca26..76a8f456cd5 100644 --- a/src/libcore/bool.rs +++ b/src/libcore/bool.rs @@ -10,7 +10,7 @@ //! Boolean logic -#[cfg(notest)] +#[cfg(not(test))] use cmp::{Eq, Ord, TotalOrd, Ordering}; use option::{None, Option, Some}; use from_str::FromStr; @@ -75,7 +75,7 @@ pub fn all_values(blk: &fn(v: bool)) { #[inline(always)] pub fn to_bit(v: bool) -> u8 { if v { 1u8 } else { 0u8 } } -#[cfg(notest)] +#[cfg(not(test))] impl Ord for bool { #[inline(always)] fn lt(&self, other: &bool) -> bool { to_bit(*self) < to_bit(*other) } @@ -87,13 +87,13 @@ impl Ord for bool { fn ge(&self, other: &bool) -> bool { to_bit(*self) >= to_bit(*other) } } -#[cfg(notest)] +#[cfg(not(test))] impl TotalOrd for bool { #[inline(always)] fn cmp(&self, other: &bool) -> Ordering { to_bit(*self).cmp(&to_bit(*other)) } } -#[cfg(notest)] +#[cfg(not(test))] impl Eq for bool { #[inline(always)] fn eq(&self, other: &bool) -> bool { (*self) == (*other) } |
