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
|
@ -26,7 +26,7 @@ struct Finder<'tcx> {
|
|||
impl<'v> ItemLikeVisitor<'v> for Finder<'_> {
|
||||
fn visit_item(&mut self, item: &hir::Item<'_>) {
|
||||
if self.tcx.sess.contains_name(&item.attrs, sym::rustc_proc_macro_decls) {
|
||||
self.decls = Some(item.hir_id);
|
||||
self.decls = Some(item.hir_id());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue