]> git.lizzy.rs Git - rust.git/blobdiff - src/librustdoc/clean/inline.rs
Auto merge of #22765 - sanxiyn:dedup-rustdoc, r=alexcrichton
[rust.git] / src / librustdoc / clean / inline.rs
index 2bf623b2761e9de6ddcea813a97a167aea76fbb8..2bb4424822a4749c5b58b3537fee5d09cb860823 100644 (file)
@@ -46,7 +46,7 @@ pub fn try_inline(cx: &DocContext, id: ast::NodeId, into: Option<ast::Ident>)
         None => return None,
     };
     let def = match tcx.def_map.borrow().get(&id) {
-        Some(def) => *def,
+        Some(d) => d.full_def(),
         None => return None,
     };
     let did = def.def_id();