about summary refs log tree commit diff
path: root/src/librustc_interface/interface.rs
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2019-11-29 22:57:34 +0100
committerGitHub <noreply@github.com>2019-11-29 22:57:34 +0100
commit6ea1df234016590ee932a89b7c5a78b905dcf71a (patch)
tree47bedbd9aec458db1e8d5a3007fe503f8dede277 /src/librustc_interface/interface.rs
parent56203be06f3671ce73d5634bf5c098eb3b8b1c1c (diff)
parent1e12f39d83eeddd523e384e20ab4f1fa56eb8888 (diff)
downloadrust-6ea1df234016590ee932a89b7c5a78b905dcf71a.tar.gz
rust-6ea1df234016590ee932a89b7c5a78b905dcf71a.zip
Rollup merge of #66791 - cjgillot:arena, r=Mark-Simulacrum
Handle GlobalCtxt directly from librustc_interface query system

This PR constructs the `GlobalCtxt` as a member of the `Queries` in librustc_interface.
This simplifies the code to construct it, at the expense of added complexity in the query control flow.
This allows to handle the arenas directly from librustc_interface.

Based on #66707

r? @Zoxc
Diffstat (limited to 'src/librustc_interface/interface.rs')
-rw-r--r--src/librustc_interface/interface.rs3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/librustc_interface/interface.rs b/src/librustc_interface/interface.rs
index 70ed4aad7b4..beb2465bd4a 100644
--- a/src/librustc_interface/interface.rs
+++ b/src/librustc_interface/interface.rs
@@ -1,4 +1,3 @@
-use crate::queries::Queries;
 use crate::util;
 pub use crate::passes::BoxedResolver;
 
@@ -36,7 +35,6 @@ pub struct Compiler {
     pub(crate) input_path: Option<PathBuf>,
     pub(crate) output_dir: Option<PathBuf>,
     pub(crate) output_file: Option<PathBuf>,
-    pub(crate) queries: Queries,
     pub(crate) crate_name: Option<String>,
     pub(crate) register_lints: Option<Box<dyn Fn(&Session, &mut lint::LintStore) + Send + Sync>>,
     pub(crate) override_queries:
@@ -169,7 +167,6 @@ pub fn run_compiler_in_existing_thread_pool<R>(
         input_path: config.input_path,
         output_dir: config.output_dir,
         output_file: config.output_file,
-        queries: Default::default(),
         crate_name: config.crate_name,
         register_lints: config.register_lints,
         override_queries: config.override_queries,