about summary refs log tree commit diff
path: root/compiler/rustc_mir/src/transform/coverage/graph.rs
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2021-03-02 00:50:07 +0100
committerGitHub <noreply@github.com>2021-03-02 00:50:07 +0100
commitb51272edfee1c5b8c0eb8016042d7550c19729c8 (patch)
tree133b7c7bc40a5362730fec12eb471bf3ae8cb168 /compiler/rustc_mir/src/transform/coverage/graph.rs
parent22ebb867f747c0832a3065abb333d6533c7f8340 (diff)
parentbe069a687a4e1c231b8ae8c68ac0444fa6fee249 (diff)
downloadrust-b51272edfee1c5b8c0eb8016042d7550c19729c8.tar.gz
rust-b51272edfee1c5b8c0eb8016042d7550c19729c8.zip
Rollup merge of #82018 - jyn514:no-dummy-cache, r=camelid,GuillaumeGomez
Remove the dummy cache in `DocContext`; delete RenderInfo

The same information is available everywhere; the only reason the dummy
cache was needed is because it was previously stored in three different
places. This consolidates the info a bit so the cache in `DocContext` is
used throughout. As a bonus, it also completely removes `RenderInfo`.

- Return a `Cache` from `run_global_ctxt`, not `RenderInfo`
- Remove the unused `render_info` from `run_renderer`
- Remove RenderInfo altogether

Helps with https://github.com/rust-lang/rust/pull/82014. The next step is to move the `populate()` call before the `collect_intra_doc_links` pass, which currently breaks because a) lots of the cache is populated in early passes, and b) intra_doc_links itself sets some info with `register_res`. I'm working on separate PR for that to avoid making too many big changes at once.

r? `@GuillaumeGomez`
Diffstat (limited to 'compiler/rustc_mir/src/transform/coverage/graph.rs')
0 files changed, 0 insertions, 0 deletions