Derive `Hash` on `AssociatedKind`.

This is a trivial change useful in downstream code poking in rustc's
innards.
This commit is contained in:
Inokentiy Babushkin 2017-08-01 22:27:30 +02:00
parent e772c28d2e
commit 1b831cf54e
No known key found for this signature in database
GPG Key ID: 7EFC8EC5224DE8EC
1 changed files with 1 additions and 1 deletions

View File

@ -174,7 +174,7 @@ pub struct AssociatedItem {
pub method_has_self_argument: bool,
}
#[derive(Copy, Clone, PartialEq, Eq, Debug, RustcEncodable, RustcDecodable)]
#[derive(Copy, Clone, PartialEq, Eq, Debug, Hash, RustcEncodable, RustcDecodable)]
pub enum AssociatedKind {
Const,
Method,