File tree 1 file changed +5
-1
lines changed
1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -672,7 +672,7 @@ pub struct ParentedNode<'tcx> {
672
672
pub node : Node < ' tcx > ,
673
673
}
674
674
675
- /// Attributes owner by a HIR owner.
675
+ /// Attributes owned by a HIR owner.
676
676
#[ derive( Debug ) ]
677
677
pub struct AttributeMap < ' tcx > {
678
678
pub map : BTreeMap < ItemLocalId , & ' tcx [ Attribute ] > ,
@@ -689,6 +689,9 @@ impl<'tcx> AttributeMap<'tcx> {
689
689
}
690
690
}
691
691
692
+ /// Map of all HIR nodes inside the current owner.
693
+ /// These nodes are mapped by `ItemLocalId` alongside the index of their parent node.
694
+ /// The HIR tree, including bodies, is pre-hashed.
692
695
#[ derive( Debug ) ]
693
696
pub struct OwnerNodes < ' tcx > {
694
697
/// Pre-computed hash of the full HIR.
@@ -704,6 +707,7 @@ pub struct OwnerNodes<'tcx> {
704
707
pub bodies : IndexVec < ItemLocalId , Option < & ' tcx Body < ' tcx > > > ,
705
708
}
706
709
710
+ /// Full information resulting from lowering an AST node.
707
711
#[ derive( Debug , HashStable_Generic ) ]
708
712
pub struct OwnerInfo < ' hir > {
709
713
/// Contents of the HIR.
You can’t perform that action at this time.
0 commit comments