From 065e39bb2fd439d792d8a8f72a7182dfc8b7c5a3 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Wed, 12 Nov 2014 12:17:55 -0800 Subject: Register new snapshots --- src/liballoc/boxed.rs | 40 ---------------------------------------- 1 file changed, 40 deletions(-) (limited to 'src/liballoc') diff --git a/src/liballoc/boxed.rs b/src/liballoc/boxed.rs index 0a06f7c0005..26f8522e1c1 100644 --- a/src/liballoc/boxed.rs +++ b/src/liballoc/boxed.rs @@ -65,50 +65,12 @@ impl Clone for Box { } } -// NOTE(stage0): remove impl after a snapshot -#[cfg(stage0)] -impl PartialEq for Box { - #[inline] - fn eq(&self, other: &Box) -> bool { *(*self) == *(*other) } - #[inline] - fn ne(&self, other: &Box) -> bool { *(*self) != *(*other) } -} -// NOTE(stage0): remove impl after a snapshot -#[cfg(stage0)] -impl PartialOrd for Box { - #[inline] - fn partial_cmp(&self, other: &Box) -> Option { - (**self).partial_cmp(&**other) - } - #[inline] - fn lt(&self, other: &Box) -> bool { *(*self) < *(*other) } - #[inline] - fn le(&self, other: &Box) -> bool { *(*self) <= *(*other) } - #[inline] - fn ge(&self, other: &Box) -> bool { *(*self) >= *(*other) } - #[inline] - fn gt(&self, other: &Box) -> bool { *(*self) > *(*other) } -} -// NOTE(stage0): remove impl after a snapshot -#[cfg(stage0)] -impl Ord for Box { - #[inline] - fn cmp(&self, other: &Box) -> Ordering { - (**self).cmp(&**other) - } -} -// NOTE(stage0): remove impl after a snapshot -#[cfg(stage0)] -impl Eq for Box {} - -#[cfg(not(stage0))] // NOTE(stage0): remove cfg after a snapshot impl PartialEq for Box { #[inline] fn eq(&self, other: &Box) -> bool { PartialEq::eq(&**self, &**other) } #[inline] fn ne(&self, other: &Box) -> bool { PartialEq::ne(&**self, &**other) } } -#[cfg(not(stage0))] // NOTE(stage0): remove cfg after a snapshot impl PartialOrd for Box { #[inline] fn partial_cmp(&self, other: &Box) -> Option { @@ -123,14 +85,12 @@ impl PartialOrd for Box { #[inline] fn gt(&self, other: &Box) -> bool { PartialOrd::gt(&**self, &**other) } } -#[cfg(not(stage0))] // NOTE(stage0): remove cfg after a snapshot impl Ord for Box { #[inline] fn cmp(&self, other: &Box) -> Ordering { Ord::cmp(&**self, &**other) } } -#[cfg(not(stage0))] // NOTE(stage0): remove cfg after a snapshot impl Eq for Box {} /// Extension methods for an owning `Any` trait object. -- cgit 1.4.1-3-g733a5