]> git.lizzy.rs Git - rust.git/blobdiff - src/libsyntax/parse/token.rs
use TotalEq for HashMap
[rust.git] / src / libsyntax / parse / token.rs
index 43d686dc6cbb4de6c65f9e1ac6496c3570ff5ec8..15525912955fcce4f15a82b2231607744e91b492 100644 (file)
 use std::fmt;
 use std::local_data;
 use std::path::BytesContainer;
-use std::vec::Vec;
 
 #[allow(non_camel_case_types)]
-#[deriving(Clone, Encodable, Decodable, Eq, Hash, Show)]
+#[deriving(Clone, Encodable, Decodable, Eq, TotalEq, Hash, Show)]
 pub enum BinOp {
     PLUS,
     MINUS,
@@ -40,7 +39,7 @@ pub enum BinOp {
 }
 
 #[allow(non_camel_case_types)]
-#[deriving(Clone, Encodable, Decodable, Eq, Hash, Show)]
+#[deriving(Clone, Encodable, Decodable, Eq, TotalEq, Hash, Show)]
 pub enum Token {
     /* Expression-operator symbols. */
     EQ,
@@ -104,7 +103,7 @@ pub enum Token {
     EOF,
 }
 
-#[deriving(Clone, Encodable, Decodable, Eq, Hash)]
+#[deriving(Clone, Encodable, Decodable, Eq, TotalEq, Hash)]
 /// For interpolation during macro expansion.
 pub enum Nonterminal {
     NtItem(@ast::Item),