Skip to content

Commit d343ee8

Browse files
committed
Remove Hash impls for DefPath, DisambiguatedDefPathData, and DefKey.
They aren't used.
1 parent 0879f63 commit d343ee8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/librustc/hir/map/definitions.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ pub struct Definitions {
111111
/// A unique identifier that we can use to lookup a definition
112112
/// precisely. It combines the index of the definition's parent (if
113113
/// any) with a `DisambiguatedDefPathData`.
114-
#[derive(Clone, PartialEq, Debug, Hash, RustcEncodable, RustcDecodable)]
114+
#[derive(Clone, PartialEq, Debug, RustcEncodable, RustcDecodable)]
115115
pub struct DefKey {
116116
/// The parent path.
117117
pub parent: Option<DefIndex>,
@@ -162,13 +162,13 @@ impl DefKey {
162162
/// between them. This introduces some artificial ordering dependency
163163
/// but means that if you have, e.g., two impls for the same type in
164164
/// the same module, they do get distinct `DefId`s.
165-
#[derive(Clone, PartialEq, Debug, Hash, RustcEncodable, RustcDecodable)]
165+
#[derive(Clone, PartialEq, Debug, RustcEncodable, RustcDecodable)]
166166
pub struct DisambiguatedDefPathData {
167167
pub data: DefPathData,
168168
pub disambiguator: u32
169169
}
170170

171-
#[derive(Clone, Debug, Hash, RustcEncodable, RustcDecodable)]
171+
#[derive(Clone, Debug, RustcEncodable, RustcDecodable)]
172172
pub struct DefPath {
173173
/// The path leading from the crate root to the item.
174174
pub data: Vec<DisambiguatedDefPathData>,

0 commit comments

Comments
 (0)