rust/compiler/rustc_metadata/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
..
dynamic_lib mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
rmeta Auto merge of #81611 - cjgillot:meowner, r=estebank 2021-02-16 22:14:32 +00:00
creader.rs Add --extern-loc to augment unused crate dependency diagnostics 2021-02-07 14:54:20 -08:00
dependency_format.rs Collapse all uses of target.options.foo into target.foo 2020-11-08 17:29:13 +03:00
dynamic_lib.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
foreign_modules.rs Only store a LocalDefId in hir::ForeignItem. 2021-02-15 19:32:29 +01:00
lib.rs Stabilise then 2020-11-22 13:45:14 +00:00
link_args.rs Remove ForeignMod struct. 2020-11-26 21:32:27 +01:00
locator.rs Pre-canoncalize ExternLocation::ExactPaths 2021-01-29 11:02:12 +01:00
native_libs.rs Only store a LocalDefId in hir::Item. 2021-02-15 19:32:10 +01:00