Skip to content

Commit 832a2a1

Browse files
committed
Do not ICE in rustdoc.
1 parent 3907072 commit 832a2a1

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
@@ -151,7 +151,7 @@ pub(super) fn external_path<'tcx>(
151151
args: ty::Binder<'tcx, GenericArgsRef<'tcx>>,
152152
) -> Path {
153153
let def_kind = cx.tcx.def_kind(did);
154-
let name = cx.tcx.item_name(did);
154+
let name = cx.tcx.opt_item_name(did).unwrap_or(kw::Empty);
155155
Path {
156156
res: Res::Def(def_kind, did),
157157
segments: thin_vec![PathSegment {

0 commit comments

Comments
 (0)