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
|
@ -53,7 +53,7 @@ impl ItemLikeVisitor<'tcx> for Collector<'tcx> {
|
|||
name: None,
|
||||
kind: NativeLibKind::Unspecified,
|
||||
cfg: None,
|
||||
foreign_module: Some(self.tcx.hir().local_def_id(it.hir_id).to_def_id()),
|
||||
foreign_module: Some(it.def_id.to_def_id()),
|
||||
wasm_import_module: None,
|
||||
};
|
||||
let mut kind_specified = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue