1
Fork 0

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:
Aaron Hill 2022-01-12 21:15:51 -05:00
parent 5e57faa78a
commit c8941d3e48
No known key found for this signature in database
GPG key ID: B4087E510E98B164
28 changed files with 100 additions and 92 deletions

View file

@ -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,