rust/compiler/rustc_ty_utils/src
bors 8fe989dd76 Auto merge of #81611 - cjgillot:meowner, r=estebank
Only store a LocalDefId in some HIR nodes

Some HIR nodes are guaranteed to be HIR owners: Item, TraitItem, ImplItem, ForeignItem and MacroDef.
As a consequence, we do not need to store the `HirId`'s `local_id`, and we can directly store a `LocalDefId`.

This allows to avoid a bit of the dance with `tcx.hir().local_def_id` and `tcx.hir().local_def_id_to_hir_id` mappings.
2021-02-16 22:14:32 +00:00
..
common_traits.rs Move rustc_ty -> rustc_ty_utils 2020-11-19 21:57:29 +01:00
instance.rs param_env debugs are instrumental to rustc's success 2021-02-14 11:18:40 +00:00
lib.rs Move rustc_ty -> rustc_ty_utils 2020-11-19 21:57:29 +01:00
needs_drop.rs Be cautious of calling upvar_tys before mir 2020-11-29 19:20:28 -05:00
ty.rs Only store a LocalDefId in hir::ImplItem. 2021-02-15 19:32:29 +01:00