1
Fork 0

Remove most of Hash impls from AST and HIR structures

This commit is contained in:
Vadim Petrochenkov 2018-06-27 00:57:27 +03:00
parent 4d1a30c92b
commit 5987fe8f75
7 changed files with 208 additions and 210 deletions

View file

@ -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>),