diff --git a/src/libcore/any.rs b/src/libcore/any.rs index eb0636e8576b..1dbe443925e4 100644 --- a/src/libcore/any.rs +++ b/src/libcore/any.rs @@ -338,7 +338,7 @@ impl Any+Send { /// /// A `TypeId` is currently only available for types which ascribe to `'static`, /// but this limitation may be removed in the future. -#[derive(Clone, Copy, PartialEq, Eq, Debug, Hash)] +#[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Debug, Hash)] #[stable(feature = "rust1", since = "1.0.0")] pub struct TypeId { t: u64,