diff options
| author | bors <bors@rust-lang.org> | 2023-04-21 19:43:11 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-04-21 19:43:11 +0000 |
| commit | fec9adcdbc21469ef105162cc8cabf81c72d06be (patch) | |
| tree | 64187970c869f390de938eb05ae0c8f22e5f3752 /compiler/rustc_resolve/src | |
| parent | fa4cc63a6bd6f32903269e52b8f59b284d0e76c4 (diff) | |
| parent | 482e407a1f4a2c67e7fe98682612b78b35025e7a (diff) | |
| download | rust-fec9adcdbc21469ef105162cc8cabf81c72d06be.tar.gz rust-fec9adcdbc21469ef105162cc8cabf81c72d06be.zip | |
Auto merge of #110648 - Dylan-DPC:rollup-em3ovcq, r=Dylan-DPC
Rollup of 5 pull requests Successful merges: - #110333 (rustc_metadata: Split `children` into multiple tables) - #110501 (rustdoc: fix ICE from rustc_resolve and librustdoc parse divergence) - #110608 (Specialize some `io::Read` and `io::Write` methods for `VecDeque<u8>` and `&[u8]`) - #110632 (Panic instead of truncating if the incremental on-disk cache is too big) - #110633 (More `mem::take` in `library`) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Diffstat (limited to 'compiler/rustc_resolve/src')
| -rw-r--r-- | compiler/rustc_resolve/src/rustdoc.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_resolve/src/rustdoc.rs b/compiler/rustc_resolve/src/rustdoc.rs index 9eae99be2e9..d433391f272 100644 --- a/compiler/rustc_resolve/src/rustdoc.rs +++ b/compiler/rustc_resolve/src/rustdoc.rs @@ -367,6 +367,7 @@ fn preprocess_link(link: &str) -> Box<str> { let link = link.strip_suffix("{}").unwrap_or(link); let link = link.strip_suffix("[]").unwrap_or(link); let link = if link != "!" { link.strip_suffix('!').unwrap_or(link) } else { link }; + let link = link.trim(); strip_generics_from_path(link).unwrap_or_else(|_| link.into()) } |
