Take a LocalDefId in expect_*item.
This commit is contained in:
parent
e6d2de9483
commit
5fb4648757
28 changed files with 95 additions and 137 deletions
|
@ -3011,7 +3011,7 @@ impl<'tcx> LateLintPass<'tcx> for ClashingExternDeclarations {
|
|||
this_decl_ty,
|
||||
CItemKind::Declaration,
|
||||
) {
|
||||
let orig_fi = tcx.hir().expect_foreign_item(existing_hid);
|
||||
let orig_fi = tcx.hir().expect_foreign_item(existing_hid.expect_owner());
|
||||
let orig = Self::name_of_extern_decl(tcx, orig_fi);
|
||||
|
||||
// We want to ensure that we use spans for both decls that include where the
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue