Store hir_id_to_def_id in OwnerInfo.

This commit is contained in:
Camille GILLOT
2021-11-21 19:04:47 +01:00
committed by Santiago Pastorino
parent 17dfae79bb
commit 80132c3ce4
5 changed files with 31 additions and 19 deletions

View File

@@ -707,6 +707,8 @@ pub struct OwnerNodes<'tcx> {
pub nodes: IndexVec<ItemLocalId, Option<ParentedNode<'tcx>>>,
/// Content of local bodies.
pub bodies: SortedMap<ItemLocalId, &'tcx Body<'tcx>>,
/// Non-owning definitions contained in this owner.
pub local_id_to_def_id: SortedMap<ItemLocalId, LocalDefId>,
}
/// Full information resulting from lowering an AST node.