about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNoah Lev <camelidcamel@gmail.com>2021-11-11 15:35:10 -0800
committerNoah Lev <camelidcamel@gmail.com>2021-11-24 12:00:54 -0800
commitdb4a06e9bdbfc808e60b06b357c35481a91fc8e6 (patch)
tree14d35b1b1c594d3e4006f25c070144e562b63433
parent47266bacf1585ca290cd3baca214497adc200803 (diff)
downloadrust-db4a06e9bdbfc808e60b06b357c35481a91fc8e6.tar.gz
rust-db4a06e9bdbfc808e60b06b357c35481a91fc8e6.zip
Use `path.def_id()` in `Type::inner_def_id()`
-rw-r--r--src/librustdoc/clean/types.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustdoc/clean/types.rs b/src/librustdoc/clean/types.rs
index d28f3ce8778..ed773cf4ad2 100644
--- a/src/librustdoc/clean/types.rs
+++ b/src/librustdoc/clean/types.rs
@@ -1522,7 +1522,7 @@ impl Type {
 
     fn inner_def_id(&self, cache: Option<&Cache>) -> Option<DefId> {
         let t: PrimitiveType = match *self {
-            ResolvedPath { did, .. } => return Some(did),
+            ResolvedPath { ref path, did: _ } => return Some(path.def_id()),
             DynTrait(ref bounds, _) => return Some(bounds[0].trait_.def_id()),
             Primitive(p) => return cache.and_then(|c| c.primitive_locations.get(&p).cloned()),
             BorrowedRef { type_: box Generic(..), .. } => PrimitiveType::Reference,