mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +00:00
![]() 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. |
||
---|---|---|
.. | ||
dynamic_lib | ||
rmeta | ||
creader.rs | ||
dependency_format.rs | ||
dynamic_lib.rs | ||
foreign_modules.rs | ||
lib.rs | ||
link_args.rs | ||
locator.rs | ||
native_libs.rs |