about summary refs log tree commit diff
path: root/src/libsyntax/parse
diff options
context:
space:
mode:
authorVadim Petrochenkov <vadim.petrochenkov@gmail.com>2018-06-27 00:57:27 +0300
committerVadim Petrochenkov <vadim.petrochenkov@gmail.com>2018-07-14 14:57:14 +0300
commit5987fe8f75c443d4f73603fa5a3af8ab41ee1b01 (patch)
treec22459a556bfe3f4cccbf417bd5c062c2ce1833c /src/libsyntax/parse
parent4d1a30c92b50c5965ed26449758fca81bee15747 (diff)
downloadrust-5987fe8f75c443d4f73603fa5a3af8ab41ee1b01.tar.gz
rust-5987fe8f75c443d4f73603fa5a3af8ab41ee1b01.zip
Remove most of `Hash` impls from AST and HIR structures
Diffstat (limited to 'src/libsyntax/parse')
-rw-r--r--src/libsyntax/parse/token.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/parse/token.rs b/src/libsyntax/parse/token.rs
index 8e9c192c737..aef3beeccdf 100644
--- a/src/libsyntax/parse/token.rs
+++ b/src/libsyntax/parse/token.rs
@@ -139,7 +139,7 @@ fn ident_can_begin_type(ident: ast::Ident, is_raw: bool) -> bool {
     ].contains(&ident.name)
 }
 
-#[derive(Clone, RustcEncodable, RustcDecodable, PartialEq, Hash, Debug)]
+#[derive(Clone, RustcEncodable, RustcDecodable, PartialEq, Debug)]
 pub enum Token {
     /* Expression-operator symbols. */
     Eq,
@@ -638,7 +638,7 @@ impl Token {
     }
 }
 
-#[derive(Clone, RustcEncodable, RustcDecodable, Hash)]
+#[derive(Clone, RustcEncodable, RustcDecodable)]
 /// For interpolation during macro expansion.
 pub enum Nonterminal {
     NtItem(P<ast::Item>),