about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorRichard Diamond <wichard@hahbee.co>2014-04-17 12:22:02 -0500
committerRichard Diamond <wichard@hahbee.co>2014-04-17 12:22:02 -0500
commit506008f9a0334fe5381397cac2f2f3ca85f1a6d6 (patch)
treeca11146136c35bd239937b27a8b47c2244ab5347 /src/libstd
parent903fbd263553c105b7b8c5f5ee19fab89d4618bd (diff)
downloadrust-506008f9a0334fe5381397cac2f2f3ca85f1a6d6.tar.gz
rust-506008f9a0334fe5381397cac2f2f3ca85f1a6d6.zip
Add #[deriving(Hash)] to Result.
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/result.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/result.rs b/src/libstd/result.rs
index 0b6897ba2dc..493ff8c485f 100644
--- a/src/libstd/result.rs
+++ b/src/libstd/result.rs
@@ -275,7 +275,7 @@ use option::{None, Option, Some};
 /// `Result` is a type that represents either success (`Ok`) or failure (`Err`).
 ///
 /// See the [`std::result`](index.html) module documentation for details.
-#[deriving(Clone, Eq, Ord, TotalEq, TotalOrd, Show)]
+#[deriving(Clone, Eq, Ord, TotalEq, TotalOrd, Show, Hash)]
 #[must_use]
 pub enum Result<T, E> {
     /// Contains the success value