]> git.lizzy.rs Git - rust.git/commit
Store def_id_to_hir_id as variant in hir_owner.
authorCamille GILLOT <gillot.camille@gmail.com>
Wed, 22 Sep 2021 17:28:20 +0000 (19:28 +0200)
committerSantiago Pastorino <spastorino@gmail.com>
Thu, 27 Jan 2022 13:46:40 +0000 (10:46 -0300)
commita0bcce4884683cd3cb968f6cf6dd0d7720e9a6db
tree5ce6029571ab576810aec2e0fbd62e9d25f312cd
parent009c1d02484dcc18e1596a33b3d8989a90361c89
Store def_id_to_hir_id as variant in hir_owner.

If hir_owner is Owner(_), the LocalDefId is pointing to an owner, so the ItemLocalId is 0.
If the HIR node does not exist, we store Phantom.
Otherwise, we store the HirId associated to the LocalDefId.
compiler/rustc_ast_lowering/src/item.rs
compiler/rustc_ast_lowering/src/lib.rs
compiler/rustc_hir/src/definitions.rs
compiler/rustc_hir/src/hir.rs
compiler/rustc_hir/src/hir_id.rs
compiler/rustc_middle/src/hir/map/mod.rs
compiler/rustc_middle/src/hir/mod.rs
compiler/rustc_middle/src/query/mod.rs
compiler/rustc_middle/src/ty/context.rs
compiler/rustc_mir_transform/src/coverage/mod.rs
compiler/rustc_resolve/src/late/lifetimes.rs