rust/src/librustdoc
kennytm d9885c41de
Rollup merge of #57343 - Xanewok:querify-access-levels, r=nikomatsakis
Calculate privacy access only via query

Initially converted to query in a9f6babcda and then changed to respect dependencies 8281e883dd.

I did this as an effort to prune `CrateAnalysis` from librustc_save_analysis, with the only thing remaining being the glob map (`name` is unused, existing `crate_name` is exposed in the compiler passes, instead).

Since calculating the glob map is opt-in, it'd be great if we could calculate that on-demand. However, it seems that it'd require converting resolution to queries, which I'm not sure how to do yet.

In an effort to get rid of `CrateAnalysis` altogether, could we try unconditionally calculating the glob_map in the resolver, thus completely removing `CrateAnalysis` struct, and doing a perf run?

r? @nikomatsakis

cc @petrochenkov do you have any idea how/if at all could we querify the resolver? I've stumbled upon a comment that's ~3? years old at the moment, so I'm guessing things might have changed and it actually may be feasible now. fe0c10019d/src/librustc_driver/driver.rs (L589-L593)
2019-01-05 23:57:06 +08:00
..
clean Rollup merge of #57314 - wiktorkuchta:master, r=Centril 2019-01-05 23:56:59 +08:00
html Rollup merge of #57163 - JohnHeitmann:chevron-fix, r=estebank 2018-12-29 18:50:28 +08:00
passes Store Ident rather than just Name in HIR types Item and ForeignItem. 2018-12-26 21:26:37 +00:00
Cargo.toml Update minifier version 2018-10-11 21:37:04 +02:00
config.rs Auto merge of #57006 - GuillaumeGomez:no-crate-filter, r=QuietMisdreavus 2018-12-29 01:22:04 +00:00
core.rs Rollup merge of #57343 - Xanewok:querify-access-levels, r=nikomatsakis 2019-01-05 23:57:06 +08:00
doctree.rs Remove licenses 2018-12-25 21:08:33 -07:00
externalfiles.rs Remove licenses 2018-12-25 21:08:33 -07:00
fold.rs Remove licenses 2018-12-25 21:08:33 -07:00
lib.rs make panictry! private to libsyntax 2019-01-02 11:02:30 -05:00
markdown.rs Remove licenses 2018-12-25 21:08:33 -07:00
README.md rustc-guide has moved 2018-11-26 15:03:13 -06:00
test.rs Rollup merge of #57338 - QuietMisdreavus:doctest-file-name, r=GuillaumeGomez 2019-01-05 23:57:02 +08:00
theme.rs Remove licenses 2018-12-25 21:08:33 -07:00
visit_ast.rs Store Ident rather than just Name in HIR types Item and ForeignItem. 2018-12-26 21:26:37 +00:00
visit_lib.rs Remove licenses 2018-12-25 21:08:33 -07:00

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