Skip to content

Commit db4a06e

Browse files
committed
Use path.def_id() in Type::inner_def_id()
1 parent 47266ba commit db4a06e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustdoc/clean/types.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1522,7 +1522,7 @@ impl Type {
15221522

15231523
fn inner_def_id(&self, cache: Option<&Cache>) -> Option<DefId> {
15241524
let t: PrimitiveType = match *self {
1525-
ResolvedPath { did, .. } => return Some(did),
1525+
ResolvedPath { ref path, did: _ } => return Some(path.def_id()),
15261526
DynTrait(ref bounds, _) => return Some(bounds[0].trait_.def_id()),
15271527
Primitive(p) => return cache.and_then(|c| c.primitive_locations.get(&p).cloned()),
15281528
BorrowedRef { type_: box Generic(..), .. } => PrimitiveType::Reference,

0 commit comments

Comments
 (0)