Only store a LocalDefId in hir::Item.
Items are guaranteed to be HIR owner.
This commit is contained in:
parent
bd3cd5dbed
commit
cebbba081e
86 changed files with 483 additions and 565 deletions
|
@ -237,7 +237,7 @@ impl<'hir> pprust_hir::PpAnn for IdentifiedAnnotation<'hir> {
|
|||
pprust_hir::AnnNode::Name(_) => {}
|
||||
pprust_hir::AnnNode::Item(item) => {
|
||||
s.s.space();
|
||||
s.synth_comment(format!("hir_id: {}", item.hir_id));
|
||||
s.synth_comment(format!("hir_id: {}", item.hir_id()));
|
||||
}
|
||||
pprust_hir::AnnNode::SubItem(id) => {
|
||||
s.s.space();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue