about summary refs log tree commit diff
path: root/src/libsyntax
diff options
context:
space:
mode:
authorErick Tryzelaar <erick.tryzelaar@gmail.com>2014-02-23 18:50:47 -0800
committerErick Tryzelaar <erick.tryzelaar@gmail.com>2014-02-24 19:52:29 -0800
commit848cbb4e130d7ec9609b36b3f6f7a68099cbd6a7 (patch)
treef6df18a5992fd3d21638f3cb957c4a5a01505348 /src/libsyntax
parentf12ff1964b3040c426263d52472a9ed503c6a4aa (diff)
downloadrust-848cbb4e130d7ec9609b36b3f6f7a68099cbd6a7.tar.gz
rust-848cbb4e130d7ec9609b36b3f6f7a68099cbd6a7.zip
replace manual Hash impls with `#[deriving(Hash)]`
Diffstat (limited to 'src/libsyntax')
-rw-r--r--src/libsyntax/abi.rs9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/libsyntax/abi.rs b/src/libsyntax/abi.rs
index 9349e5c8e98..c01f3721fad 100644
--- a/src/libsyntax/abi.rs
+++ b/src/libsyntax/abi.rs
@@ -8,14 +8,13 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-use std::hash::{Hash, sip};
 use std::fmt;
 use std::fmt::Show;
 
 #[deriving(Eq)]
 pub enum Os { OsWin32, OsMacos, OsLinux, OsAndroid, OsFreebsd, }
 
-#[deriving(Eq)]
+#[deriving(Eq, Hash)]
 pub enum Abi {
     // NB: This ordering MUST match the AbiDatas array below.
     // (This is ensured by the test indices_are_correct().)
@@ -267,12 +266,6 @@ impl AbiSet {
     }
 }
 
-impl Hash for Abi {
-    fn hash(&self, s: &mut sip::SipState) {
-        self.index().hash(s)
-    }
-}
-
 impl fmt::Show for Abi {
     fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
         self.data().name.fmt(f)