Store a Symbol
instead of an Ident
in AssocItem
This is the same idea as #92533, but for `AssocItem` instead of `VariantDef`/`FieldDef`. With this change, we no longer have any uses of `#[stable_hasher(project(...))]`
This commit is contained in:
parent
5e57faa78a
commit
c8941d3e48
28 changed files with 100 additions and 92 deletions
|
@ -100,7 +100,7 @@ fn associated_item_from_trait_item_ref(
|
|||
};
|
||||
|
||||
ty::AssocItem {
|
||||
ident: trait_item_ref.ident,
|
||||
name: trait_item_ref.ident.name,
|
||||
kind,
|
||||
vis: tcx.visibility(def_id),
|
||||
defaultness: trait_item_ref.defaultness,
|
||||
|
@ -124,7 +124,7 @@ fn associated_item_from_impl_item_ref(
|
|||
};
|
||||
|
||||
ty::AssocItem {
|
||||
ident: impl_item_ref.ident,
|
||||
name: impl_item_ref.ident.name,
|
||||
kind,
|
||||
vis: tcx.visibility(def_id),
|
||||
defaultness: impl_item_ref.defaultness,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue