about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/libcore/any.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcore/any.rs b/src/libcore/any.rs
index eb0636e8576..1dbe443925e 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,