Remove Hash
impls for DefPath
, DisambiguatedDefPathData
, and DefKey
.
They aren't used.
This commit is contained in:
parent
0879f63074
commit
d343ee839b
1 changed files with 3 additions and 3 deletions
|
@ -111,7 +111,7 @@ pub struct Definitions {
|
||||||
/// A unique identifier that we can use to lookup a definition
|
/// A unique identifier that we can use to lookup a definition
|
||||||
/// precisely. It combines the index of the definition's parent (if
|
/// precisely. It combines the index of the definition's parent (if
|
||||||
/// any) with a `DisambiguatedDefPathData`.
|
/// any) with a `DisambiguatedDefPathData`.
|
||||||
#[derive(Clone, PartialEq, Debug, Hash, RustcEncodable, RustcDecodable)]
|
#[derive(Clone, PartialEq, Debug, RustcEncodable, RustcDecodable)]
|
||||||
pub struct DefKey {
|
pub struct DefKey {
|
||||||
/// The parent path.
|
/// The parent path.
|
||||||
pub parent: Option<DefIndex>,
|
pub parent: Option<DefIndex>,
|
||||||
|
@ -162,13 +162,13 @@ impl DefKey {
|
||||||
/// between them. This introduces some artificial ordering dependency
|
/// between them. This introduces some artificial ordering dependency
|
||||||
/// but means that if you have, e.g., two impls for the same type in
|
/// but means that if you have, e.g., two impls for the same type in
|
||||||
/// the same module, they do get distinct `DefId`s.
|
/// 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 struct DisambiguatedDefPathData {
|
||||||
pub data: DefPathData,
|
pub data: DefPathData,
|
||||||
pub disambiguator: u32
|
pub disambiguator: u32
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Clone, Debug, Hash, RustcEncodable, RustcDecodable)]
|
#[derive(Clone, Debug, RustcEncodable, RustcDecodable)]
|
||||||
pub struct DefPath {
|
pub struct DefPath {
|
||||||
/// The path leading from the crate root to the item.
|
/// The path leading from the crate root to the item.
|
||||||
pub data: Vec<DisambiguatedDefPathData>,
|
pub data: Vec<DisambiguatedDefPathData>,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue