diff options
| author | bors <bors@rust-lang.org> | 2023-08-08 05:10:11 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-08-08 05:10:11 +0000 |
| commit | 6742e2b18502afa9d27b0e02d0cfa36aa93aa2ee (patch) | |
| tree | 6cd4440b03caa274dcd0a933c13b10794cbdb32a /compiler/rustc_codegen_llvm/src | |
| parent | 8e7fd551311d424e4e63fa45906a2a928fce96a7 (diff) | |
| parent | b6ac5764872a8b2d236460d889ccd745be6fff7d (diff) | |
| download | rust-6742e2b18502afa9d27b0e02d0cfa36aa93aa2ee.tar.gz rust-6742e2b18502afa9d27b0e02d0cfa36aa93aa2ee.zip | |
Auto merge of #114578 - petrochenkov:noplugin, r=cjgillot
rustc_interface: Dismantle `register_plugins` query It did three independent things: - Constructed `LintStore` - Prepared incremental directories and dep graph - Initialized some fields in `Session` The `LintStore` construction (now `passes::create_lint_store`) is more or less left in place. The incremental stuff is now moved into `fn dep_graph_future`. This helps us to start loading the dep graph a bit earlier. The `Session` field initialization is moved to tcx construction point. Now that tcx is constructed early these fields don't even need to live in `Session`, they can live in tcx instead and be initialized at its creation (see the FIXME). Three previously existing `rustc_interface` queries are de-querified (`register_plugins`, `dep_graph_future`, `dep_graph`) because they are only used locally in `fn global_ctxt` and their results don't need to be saved elsewhere. On the other hand, `crate_types` and `stable_crate_id` are querified. They are used from different places and their use is very similar to the existing `crate_name` query in this regard.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions
