Skip to content

Commit 0bb1c28

Browse files
committed
rustdoc: Get symbol for TyParam directly
1 parent df281ee commit 0bb1c28

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustdoc/clean/utils.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ crate fn resolve_type(cx: &mut DocContext<'_>, path: Path, id: hir::HirId) -> Ty
414414
return Generic(kw::SelfUpper);
415415
}
416416
Res::Def(DefKind::TyParam, _) if path.segments.len() == 1 => {
417-
return Generic(Symbol::intern(&path.whole_name()));
417+
return Generic(path.segments[0].name);
418418
}
419419
Res::SelfTy(..) | Res::Def(DefKind::TyParam | DefKind::AssocTy, _) => true,
420420
_ => false,

0 commit comments

Comments
 (0)