about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNicholas Nethercote <nnethercote@mozilla.com>2019-10-18 16:36:17 +1100
committerNicholas Nethercote <nnethercote@mozilla.com>2019-10-18 16:36:17 +1100
commitd343ee839b6fe26c992d0609281443776839039c (patch)
tree1f65fa2551ecec16e88c56969eeaf6deb0caf07f
parent0879f630741550f0d4989e908071de0bb05a50f1 (diff)
downloadrust-d343ee839b6fe26c992d0609281443776839039c.tar.gz
rust-d343ee839b6fe26c992d0609281443776839039c.zip
Remove `Hash` impls for `DefPath`, `DisambiguatedDefPathData`, and `DefKey`.
They aren't used.
-rw-r--r--src/librustc/hir/map/definitions.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/librustc/hir/map/definitions.rs b/src/librustc/hir/map/definitions.rs
index cc099fcc40f..d2732c92d26 100644
--- a/src/librustc/hir/map/definitions.rs
+++ b/src/librustc/hir/map/definitions.rs
@@ -111,7 +111,7 @@ pub struct Definitions {
 /// A unique identifier that we can use to lookup a definition
 /// precisely. It combines the index of the definition's parent (if
 /// any) with a `DisambiguatedDefPathData`.
-#[derive(Clone, PartialEq, Debug, Hash, RustcEncodable, RustcDecodable)]
+#[derive(Clone, PartialEq, Debug, RustcEncodable, RustcDecodable)]
 pub struct DefKey {
     /// The parent path.
     pub parent: Option<DefIndex>,
@@ -162,13 +162,13 @@ impl DefKey {
 /// between them. This introduces some artificial ordering dependency
 /// but means that if you have, e.g., two impls for the same type in
 /// the same module, they do get distinct `DefId`s.
-#[derive(Clone, PartialEq, Debug, Hash, RustcEncodable, RustcDecodable)]
+#[derive(Clone, PartialEq, Debug, RustcEncodable, RustcDecodable)]
 pub struct DisambiguatedDefPathData {
     pub data: DefPathData,
     pub disambiguator: u32
 }
 
-#[derive(Clone, Debug, Hash, RustcEncodable, RustcDecodable)]
+#[derive(Clone, Debug, RustcEncodable, RustcDecodable)]
 pub struct DefPath {
     /// The path leading from the crate root to the item.
     pub data: Vec<DisambiguatedDefPathData>,