about summary refs log tree commit diff
path: root/src/librustdoc/html/static/source-script.js
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2019-01-16 23:25:41 +0000
committerbors <bors@rust-lang.org>2019-01-16 23:25:41 +0000
commitc40b97796e7781300fa758a5dfcc92061a967e51 (patch)
tree5fc9405ea02c5bab6e893d64c3c4249359e51c8f /src/librustdoc/html/static/source-script.js
parentceb2512144d1fc26330e85fb9d41c22ba1866259 (diff)
parentb1b64bd196e513385f68e541da5a1b61fae986b7 (diff)
downloadrust-c40b97796e7781300fa758a5dfcc92061a967e51.tar.gz
rust-c40b97796e7781300fa758a5dfcc92061a967e51.zip
Auto merge of #57392 - Xanewok:always-calc-glob-map, r=petrochenkov
Always calculate glob map but only for glob uses

Previously calculating glob map was *opt-in*, however it did record node id -> ident use for every use directive. This aims to see if we can unconditionally calculate the glob map and not regress performance.

Main motivation is to get rid of some of the moving pieces and simplify the compilation interface - this would allow us to entirely remove `CrateAnalysis`. Later, we could easily expose a relevant query, similar to the likes of `maybe_unused_trait_import` (so using precomputed data from the resolver, but which could be rewritten to be on-demand).

r? @nikomatsakis

Local perf run showed mostly noise (except `ctfe-stress-*`) but I'd appreciate if we could do a perf run run here and double-check that this won't regress performance.
Diffstat (limited to 'src/librustdoc/html/static/source-script.js')
0 files changed, 0 insertions, 0 deletions