rust/compiler/rustc_metadata/src
bors 6742e2b185 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.
2023-08-08 05:10:11 +00:00
..
rmeta Store the laziness of type aliases in the DefKind 2023-08-07 15:54:31 +02:00
creader.rs rustc_interface: Dismantle register_plugins query 2023-08-07 19:33:23 +08:00
dependency_format.rs Add unstable feature flags 2023-04-19 18:55:11 +00:00
errors.rs Suggest x build library for a custom toolchain that fails to load core 2023-07-04 09:37:40 +08:00
foreign_modules.rs Do not fetch HIR in native_libs. 2023-07-17 07:37:03 +00:00
fs.rs remove redundant clones 2023-07-23 09:48:07 +02:00
lib.rs s/drain_filter/extract_if/ for Vec, Btree{Map,Set} and LinkedList 2023-06-14 09:28:54 +02:00
locator.rs rustc_interface: Dismantle register_plugins query 2023-08-07 19:33:23 +08:00
native_libs.rs Do not fetch HIR in native_libs. 2023-07-17 07:37:03 +00:00