diff options
Diffstat (limited to 'src/libcore/bool.rs')
| -rw-r--r-- | src/libcore/bool.rs | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/libcore/bool.rs b/src/libcore/bool.rs index 60aa3d48fb3..644cc90ccf6 100644 --- a/src/libcore/bool.rs +++ b/src/libcore/bool.rs @@ -66,15 +66,7 @@ pub fn all_values(blk: fn(v: bool)) { pub pure fn to_bit(v: bool) -> u8 { if v { 1u8 } else { 0u8 } } impl bool : cmp::Eq { - #[cfg(stage0)] - pure fn eq(other: &bool) -> bool { self == (*other) } - #[cfg(stage1)] - #[cfg(stage2)] pure fn eq(&self, other: &bool) -> bool { (*self) == (*other) } - #[cfg(stage0)] - pure fn ne(other: &bool) -> bool { self != (*other) } - #[cfg(stage1)] - #[cfg(stage2)] pure fn ne(&self, other: &bool) -> bool { (*self) != (*other) } } |
