Rename def_id into item_id when the type is ItemId for readability

This commit is contained in:
Guillaume Gomez 2022-04-16 14:28:09 +02:00
parent f9d4d12b6a
commit b1e6211c5c
23 changed files with 121 additions and 120 deletions

View file

@ -535,7 +535,7 @@ pub(super) fn write_shared(
//
// If the implementation is from another crate then that crate
// should add it.
if imp.impl_item.def_id.krate() == did.krate || !imp.impl_item.def_id.is_local() {
if imp.impl_item.item_id.krate() == did.krate || !imp.impl_item.item_id.is_local() {
None
} else {
Some(Implementor {