rustc_middle: Fix opt_item_ident
for non-local def ids
#111146
Merged
opt_item_ident
for non-local def ids
#111146