Skip to content

Commit 368f1a8

Browse files
authored
Rollup merge of #43598 - ibabushkin:master, r=eddyb
Derive `Hash` on `AssociatedKind`. This is a trivial change useful in downstream code poking in rustc's innards, in particular the semver verification tool I'm currently working on. r? @eddyb
2 parents 1c91c78 + 1b831cf commit 368f1a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc/ty/mod.rs

+1-1
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)