diff options
Diffstat (limited to 'src/libcore/owned.rs')
| -rw-r--r-- | src/libcore/owned.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcore/owned.rs b/src/libcore/owned.rs index d841188501d..230386655e0 100644 --- a/src/libcore/owned.rs +++ b/src/libcore/owned.rs @@ -13,7 +13,7 @@ use cmp::{Eq, Ord}; #[cfg(notest)] -impl<T:Eq> ~const T : Eq { +impl<T:Eq> Eq for ~const T { #[inline(always)] pure fn eq(&self, other: &~const T) -> bool { *(*self) == *(*other) } #[inline(always)] @@ -21,7 +21,7 @@ impl<T:Eq> ~const T : Eq { } #[cfg(notest)] -impl<T:Ord> ~const T : Ord { +impl<T:Ord> Ord for ~const T { #[inline(always)] pure fn lt(&self, other: &~const T) -> bool { *(*self) < *(*other) } #[inline(always)] |
