hash the contents of impl-item-ref by adding them to visitor
Also simplify some of the `ty::AssociatedItem` representation, in particular by folding `has_value` into `hir::Defaultness`
This commit is contained in:
parent
c17be9ea11
commit
b10b98169f
17 changed files with 234 additions and 55 deletions
|
|
@ -834,7 +834,6 @@ impl<'a, 'tcx> CrateMetadata {
|
|||
kind: ty::AssociatedKind::Const,
|
||||
vis: item.visibility,
|
||||
defaultness: container.defaultness(),
|
||||
has_value: container.has_value(),
|
||||
def_id: self.local_def_id(id),
|
||||
container: container.with_def_id(parent),
|
||||
method_has_self_argument: false
|
||||
|
|
@ -848,7 +847,6 @@ impl<'a, 'tcx> CrateMetadata {
|
|||
kind: ty::AssociatedKind::Method,
|
||||
vis: item.visibility,
|
||||
defaultness: data.container.defaultness(),
|
||||
has_value: data.container.has_value(),
|
||||
def_id: self.local_def_id(id),
|
||||
container: data.container.with_def_id(parent),
|
||||
method_has_self_argument: data.has_self
|
||||
|
|
@ -861,7 +859,6 @@ impl<'a, 'tcx> CrateMetadata {
|
|||
kind: ty::AssociatedKind::Type,
|
||||
vis: item.visibility,
|
||||
defaultness: container.defaultness(),
|
||||
has_value: container.has_value(),
|
||||
def_id: self.local_def_id(id),
|
||||
container: container.with_def_id(parent),
|
||||
method_has_self_argument: false
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue