Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 5fb0f57

Browse files
committed
Avoid another kw::Empty use.
`sym::dummy` also appears to work.
1 parent 31320a9 commit 5fb0f57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustdoc/clean/utils.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ pub(super) fn clean_middle_path<'tcx>(
234234
args: ty::Binder<'tcx, GenericArgsRef<'tcx>>,
235235
) -> Path {
236236
let def_kind = cx.tcx.def_kind(did);
237-
let name = cx.tcx.opt_item_name(did).unwrap_or(kw::Empty);
237+
let name = cx.tcx.opt_item_name(did).unwrap_or(sym::dummy);
238238
Path {
239239
res: Res::Def(def_kind, did),
240240
segments: thin_vec![PathSegment {

0 commit comments

Comments
 (0)