about summary refs log tree commit diff
path: root/src/librustdoc/html/render/context.rs
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume.gomez@huawei.com>2022-04-16 14:28:09 +0200
committerGuillaume Gomez <guillaume.gomez@huawei.com>2022-04-16 14:28:09 +0200
commitb1e6211c5ccb606a8a470a3e6c4290843542e3cb (patch)
tree6389dbc25e18d4ada3746d5f59a153f2f8a7b763 /src/librustdoc/html/render/context.rs
parentf9d4d12b6ab97fae8b9a6f607473fe149f38f6bd (diff)
downloadrust-b1e6211c5ccb606a8a470a3e6c4290843542e3cb.tar.gz
rust-b1e6211c5ccb606a8a470a3e6c4290843542e3cb.zip
Rename `def_id` into `item_id` when the type is `ItemId` for readability
Diffstat (limited to 'src/librustdoc/html/render/context.rs')
-rw-r--r--src/librustdoc/html/render/context.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustdoc/html/render/context.rs b/src/librustdoc/html/render/context.rs
index 90123655758..8e643107353 100644
--- a/src/librustdoc/html/render/context.rs
+++ b/src/librustdoc/html/render/context.rs
@@ -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)
                 {