diff options
| author | Matthias Krüger <476013+matthiaskrgr@users.noreply.github.com> | 2025-04-17 00:14:26 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-04-17 00:14:26 +0200 |
| commit | fb3338cbae827686d933f181491a10b28bded041 (patch) | |
| tree | 71f9a6acc10981f209b17ddc6e3a459d39a7c944 /src/librustdoc/clean/utils.rs | |
| parent | 8e5df28a6ad6744d235c7673308ac386a615d30b (diff) | |
| parent | 65942d19cdb722db4544c4fcdcc0f054ff048701 (diff) | |
| download | rust-fb3338cbae827686d933f181491a10b28bded041.tar.gz rust-fb3338cbae827686d933f181491a10b28bded041.zip | |
Rollup merge of #139846 - nnethercote:kw-Empty-rustdoc, r=GuillaumeGomez
Remove `kw::Empty` uses in rustdoc Helps with #137978. r? ``@GuillaumeGomez``
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