Skip to content

Commit 1b831cf

Browse files
committed
Derive Hash on AssociatedKind.
This is a trivial change useful in downstream code poking in rustc's innards.
1 parent e772c28 commit 1b831cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc/ty/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ pub struct AssociatedItem {
174174
pub method_has_self_argument: bool,
175175
}
176176

177-
#[derive(Copy, Clone, PartialEq, Eq, Debug, RustcEncodable, RustcDecodable)]
177+
#[derive(Copy, Clone, PartialEq, Eq, Debug, Hash, RustcEncodable, RustcDecodable)]
178178
pub enum AssociatedKind {
179179
Const,
180180
Method,

0 commit comments

Comments
 (0)