diff options
| author | Dylan DPC <dylan.dpc@gmail.com> | 2020-05-16 02:37:19 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-05-16 02:37:19 +0200 |
| commit | 154db50d86432e7ddc7f292b161f9a52237a129e (patch) | |
| tree | e3fa7b98ce906a801b11a2a2913a140de20e131c /src/test/debuginfo/enum-thinlto.rs | |
| parent | 21d58a1d31906ab03bd332321dde1d5d76368755 (diff) | |
| parent | e17ac668997410a1a9d2da8725329afb8b5f2901 (diff) | |
| download | rust-154db50d86432e7ddc7f292b161f9a52237a129e.tar.gz rust-154db50d86432e7ddc7f292b161f9a52237a129e.zip | |
Rollup merge of #71724 - GuillaumeGomez:doc-alias-improvements, r=ollie27
Doc alias improvements
After [this message](https://github.com/rust-lang/rust/issues/50146#issuecomment-496601755), I realized that the **doc alias**. So this PR does the followings:
* Align the alias discovery on items added into the search-index. It brings a few nice advantages:
* Instead of cloning the data between the two (in rustdoc source code), we now have the search-index one and aliases which reference to the first one. So we go from one big map containing a lot of duplicated data to just integers...
* In the front-end (main.js), I improved the code around aliases to allow them to go through the same transformation as other items when we show the search results.
* Improve the search tester in order to perform multiple requests into one file (I think it's better in this case than having a file for each case considering how many there are...)
* I also had to add the new function inside the tester (`handleAliases`)
Once this PR is merged, I intend to finally stabilize this feature.
r? @ollie27
cc @rust-lang/rustdoc
Diffstat (limited to 'src/test/debuginfo/enum-thinlto.rs')
0 files changed, 0 insertions, 0 deletions
