We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
path.def_id()
Type::inner_def_id()
1 parent 47266ba commit db4a06eCopy full SHA for db4a06e
src/librustdoc/clean/types.rs
@@ -1522,7 +1522,7 @@ impl Type {
1522
1523
fn inner_def_id(&self, cache: Option<&Cache>) -> Option<DefId> {
1524
let t: PrimitiveType = match *self {
1525
- ResolvedPath { did, .. } => return Some(did),
+ ResolvedPath { ref path, did: _ } => return Some(path.def_id()),
1526
DynTrait(ref bounds, _) => return Some(bounds[0].trait_.def_id()),
1527
Primitive(p) => return cache.and_then(|c| c.primitive_locations.get(&p).cloned()),
1528
BorrowedRef { type_: box Generic(..), .. } => PrimitiveType::Reference,
0 commit comments