diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2025-04-15 13:26:19 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2025-04-15 15:34:20 +1000 |
| commit | 5fb0f570f5d4b63db0bde517432b76099a2d683d (patch) | |
| tree | 1f0dbf6e7f67759fb44dbd16287149d6c1c3e402 /src/librustdoc/clean/utils.rs | |
| parent | 31320a925f53264a1905c5228392de9638bf2d52 (diff) | |
| download | rust-5fb0f570f5d4b63db0bde517432b76099a2d683d.tar.gz rust-5fb0f570f5d4b63db0bde517432b76099a2d683d.zip | |
Avoid another `kw::Empty` use.
`sym::dummy` also appears to work.
Diffstat (limited to 'src/librustdoc/clean/utils.rs')
| -rw-r--r-- | src/librustdoc/clean/utils.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustdoc/clean/utils.rs b/src/librustdoc/clean/utils.rs index afcca81a485..8ee08edec19 100644 --- a/src/librustdoc/clean/utils.rs +++ b/src/librustdoc/clean/utils.rs @@ -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