We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3907072 commit 832a2a1Copy full SHA for 832a2a1
src/librustdoc/clean/utils.rs
@@ -151,7 +151,7 @@ pub(super) fn external_path<'tcx>(
151
args: ty::Binder<'tcx, GenericArgsRef<'tcx>>,
152
) -> Path {
153
let def_kind = cx.tcx.def_kind(did);
154
- let name = cx.tcx.item_name(did);
+ let name = cx.tcx.opt_item_name(did).unwrap_or(kw::Empty);
155
Path {
156
res: Res::Def(def_kind, did),
157
segments: thin_vec![PathSegment {
0 commit comments