rust/src/librustdoc
Dylan DPC 154db50d86
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
2020-05-16 02:37:19 +02:00
..
clean Rollup merge of #71724 - GuillaumeGomez:doc-alias-improvements, r=ollie27 2020-05-16 02:37:19 +02:00
html Rollup merge of #71724 - GuillaumeGomez:doc-alias-improvements, r=ollie27 2020-05-16 02:37:19 +02:00
passes Make intra links work inside trait impl block 2020-05-13 20:24:14 +02:00
test Normalize syntax::edition imports. 2020-01-02 19:31:38 +01:00
theme Add test to check if minified theme are handled correctly 2020-02-12 15:49:39 +01:00
Cargo.toml Update pulldown-cmark dependency 2020-02-14 22:39:45 +01:00
config.rs Fix clippy warnings 2020-05-11 17:13:32 +02:00
core.rs Fix clippy warnings 2020-05-11 17:13:32 +02:00
docfs.rs Fix clippy warnings 2020-04-15 23:38:48 +02:00
doctree.rs Remove ast::{Ident, Name} reexports. 2020-05-08 13:13:15 +02:00
externalfiles.rs nix syntax::errors & prefer rustc_errors over errors 2020-01-10 07:41:30 +01:00
fold.rs Format the world 2019-12-22 17:42:47 -05:00
lib.rs Dogfood or_patterns in rustdoc 2020-04-16 13:58:47 -07:00
markdown.rs Create new rustdoc lint to check for code blocks tags 2020-04-23 14:30:30 +02:00
README.md rust-lang.github.io/rustc-dev-guide -> rustc-dev-guide.rust-lang.org 2020-03-10 17:08:18 -03:00
test.rs Fix clippy warnings 2020-05-11 17:13:32 +02:00
theme.rs Expand and remove try_something macro. 2020-04-02 19:55:56 +02:00
visit_ast.rs Remove ast::{Ident, Name} reexports. 2020-05-08 13:13:15 +02:00
visit_lib.rs rustc -> rustc_middle part 3 (rustfmt) 2020-03-30 07:19:55 +02:00

For more information about how librustdoc works, see the rustc dev guide.