Avoid another kw::Empty use.

`sym::dummy` also appears to work.
This commit is contained in:
Nicholas Nethercote 2025-04-15 13:26:19 +10:00
parent 31320a925f
commit 5fb0f570f5

View file

@ -234,7 +234,7 @@ pub(super) fn clean_middle_path<'tcx>(
args: ty::Binder<'tcx, GenericArgsRef<'tcx>>,
) -> Path {
let def_kind = cx.tcx.def_kind(did);
let name = cx.tcx.opt_item_name(did).unwrap_or(kw::Empty);
let name = cx.tcx.opt_item_name(did).unwrap_or(sym::dummy);
Path {
res: Res::Def(def_kind, did),
segments: thin_vec![PathSegment {