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

@@ -222,7 +222,7 @@ impl<'tcx> Context<'tcx> {
&self.shared.style_files,
)
} else {
if let Some(&(ref names, ty)) = self.cache().paths.get(&it.def_id.expect_def_id()) {
if let Some(&(ref names, ty)) = self.cache().paths.get(&it.item_id.expect_def_id()) {
if self.current.len() + 1 != names.len()
|| self.current.iter().zip(names.iter()).any(|(a, b)| a != b)
{