aboutsummaryrefslogtreecommitdiff
path: root/libcore/cmp.rs
diff options
context:
space:
mode:
Diffstat (limited to 'libcore/cmp.rs')
-rw-r--r--libcore/cmp.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcore/cmp.rs b/libcore/cmp.rs
index 49aa023..d3481ba 100644
--- a/libcore/cmp.rs
+++ b/libcore/cmp.rs
@@ -128,7 +128,7 @@ pub trait Eq: PartialEq<Self> {
/// let result = 2.cmp(&1);
/// assert_eq!(Ordering::Greater, result);
/// ```
-#[derive(Clone, Copy, PartialEq, Debug)]
+#[derive(Clone, Copy, PartialEq, Debug, Hash)]
#[stable(feature = "rust1", since = "1.0.0")]
pub enum Ordering {
/// An ordering where a compared value is less [than another].