diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2014-11-12 12:17:55 -0800 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2014-11-12 12:17:55 -0800 |
| commit | 065e39bb2fd439d792d8a8f72a7182dfc8b7c5a3 (patch) | |
| tree | 7dc0761aee6f0eef769a3a4bbc475d3df7a789f4 /src/liballoc/boxed.rs | |
| parent | e4ead7b034c96b705ec34b8325f5f9f778f1cbb9 (diff) | |
| download | rust-065e39bb2fd439d792d8a8f72a7182dfc8b7c5a3.tar.gz rust-065e39bb2fd439d792d8a8f72a7182dfc8b7c5a3.zip | |
Register new snapshots
Diffstat (limited to 'src/liballoc/boxed.rs')
| -rw-r--r-- | src/liballoc/boxed.rs | 40 |
1 files changed, 0 insertions, 40 deletions
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<T: Clone> Clone for Box<T> { } } -// NOTE(stage0): remove impl after a snapshot -#[cfg(stage0)] -impl<T:PartialEq> PartialEq for Box<T> { - #[inline] - fn eq(&self, other: &Box<T>) -> bool { *(*self) == *(*other) } - #[inline] - fn ne(&self, other: &Box<T>) -> bool { *(*self) != *(*other) } -} -// NOTE(stage0): remove impl after a snapshot -#[cfg(stage0)] -impl<T:PartialOrd> PartialOrd for Box<T> { - #[inline] - fn partial_cmp(&self, other: &Box<T>) -> Option<Ordering> { - (**self).partial_cmp(&**other) - } - #[inline] - fn lt(&self, other: &Box<T>) -> bool { *(*self) < *(*other) } - #[inline] - fn le(&self, other: &Box<T>) -> bool { *(*self) <= *(*other) } - #[inline] - fn ge(&self, other: &Box<T>) -> bool { *(*self) >= *(*other) } - #[inline] - fn gt(&self, other: &Box<T>) -> bool { *(*self) > *(*other) } -} -// NOTE(stage0): remove impl after a snapshot -#[cfg(stage0)] -impl<T: Ord> Ord for Box<T> { - #[inline] - fn cmp(&self, other: &Box<T>) -> Ordering { - (**self).cmp(&**other) - } -} -// NOTE(stage0): remove impl after a snapshot -#[cfg(stage0)] -impl<T: Eq> Eq for Box<T> {} - -#[cfg(not(stage0))] // NOTE(stage0): remove cfg after a snapshot impl<Sized? T: PartialEq> PartialEq for Box<T> { #[inline] fn eq(&self, other: &Box<T>) -> bool { PartialEq::eq(&**self, &**other) } #[inline] fn ne(&self, other: &Box<T>) -> bool { PartialEq::ne(&**self, &**other) } } -#[cfg(not(stage0))] // NOTE(stage0): remove cfg after a snapshot impl<Sized? T: PartialOrd> PartialOrd for Box<T> { #[inline] fn partial_cmp(&self, other: &Box<T>) -> Option<Ordering> { @@ -123,14 +85,12 @@ impl<Sized? T: PartialOrd> PartialOrd for Box<T> { #[inline] fn gt(&self, other: &Box<T>) -> bool { PartialOrd::gt(&**self, &**other) } } -#[cfg(not(stage0))] // NOTE(stage0): remove cfg after a snapshot impl<Sized? T: Ord> Ord for Box<T> { #[inline] fn cmp(&self, other: &Box<T>) -> Ordering { Ord::cmp(&**self, &**other) } } -#[cfg(not(stage0))] // NOTE(stage0): remove cfg after a snapshot impl<Sized? T: Eq> Eq for Box<T> {} /// Extension methods for an owning `Any` trait object. |
