]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #43598 - ibabushkin:master, r=eddyb
authorCorey Farwell <coreyf@rwell.org>
Wed, 2 Aug 2017 01:22:30 +0000 (01:22 +0000)
committerGitHub <noreply@github.com>
Wed, 2 Aug 2017 01:22:30 +0000 (01:22 +0000)
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

src/librustc/ty/mod.rs

index e0b0aca1261bf10b034b0f3d9238c27e3f3b1941..f245b1503dab8dc214c6bf72c6d54d8db45cb980 100644 (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,