diff options
| author | Ralf Jung <post@ralfj.de> | 2023-03-21 09:24:57 +0100 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2023-03-21 09:24:57 +0100 |
| commit | 4bfde41afa31aa957a80f39e782062834a0dc583 (patch) | |
| tree | e560ed4646bc001322d9bfa3f1ad38f16e39fa2e /src/librustdoc/html/format.rs | |
| parent | 2be2568a54540a8ddf2c9c77a20ec73b018b45cc (diff) | |
| parent | 204807d8a93041f9ef69cc2a69646fe1020f4c9c (diff) | |
| download | rust-4bfde41afa31aa957a80f39e782062834a0dc583.tar.gz rust-4bfde41afa31aa957a80f39e782062834a0dc583.zip | |
Merge from rustc
Diffstat (limited to 'src/librustdoc/html/format.rs')
| -rw-r--r-- | src/librustdoc/html/format.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustdoc/html/format.rs b/src/librustdoc/html/format.rs index d526a8be081..f2b9c0bcf3e 100644 --- a/src/librustdoc/html/format.rs +++ b/src/librustdoc/html/format.rs @@ -1480,7 +1480,7 @@ pub(crate) fn visibility_print_with_space<'a, 'tcx: 'a>( debug!("path={:?}", path); // modified from `resolved_path()` to work with `DefPathData` let last_name = path.data.last().unwrap().data.get_opt_name().unwrap(); - let anchor = anchor(vis_did, last_name, cx).to_string(); + let anchor = anchor(vis_did, last_name, cx); let mut s = "pub(in ".to_owned(); for seg in &path.data[..path.data.len() - 1] { |
