about summary refs log tree commit diff
path: root/compiler/rustc_interface/src/lib.rs
diff options
context:
space:
mode:
authorbjorn3 <17426603+bjorn3@users.noreply.github.com>2024-10-31 14:43:23 +0000
committerbjorn3 <17426603+bjorn3@users.noreply.github.com>2024-12-14 14:24:35 +0000
commit6ece8036329ac01eca7724c3b4b691b258d04e16 (patch)
tree999f31984013365fba76f1f7c73f9f995e780d92 /compiler/rustc_interface/src/lib.rs
parented141926048597e3649bb238ca3dc417904cd56c (diff)
downloadrust-6ece8036329ac01eca7724c3b4b691b258d04e16.tar.gz
rust-6ece8036329ac01eca7724c3b4b691b258d04e16.zip
Get rid of of the global_ctxt query
Diffstat (limited to 'compiler/rustc_interface/src/lib.rs')
-rw-r--r--compiler/rustc_interface/src/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_interface/src/lib.rs b/compiler/rustc_interface/src/lib.rs
index 1c4dda2a436..8cb71aff23a 100644
--- a/compiler/rustc_interface/src/lib.rs
+++ b/compiler/rustc_interface/src/lib.rs
@@ -8,7 +8,7 @@
 // tidy-alphabetical-end
 
 mod callbacks;
-mod errors;
+pub mod errors;
 pub mod interface;
 pub mod passes;
 mod proc_macro_decls;
@@ -17,7 +17,7 @@ pub mod util;
 
 pub use callbacks::setup_callbacks;
 pub use interface::{Config, run_compiler};
-pub use passes::DEFAULT_QUERY_PROVIDERS;
+pub use passes::{DEFAULT_QUERY_PROVIDERS, create_and_enter_global_ctxt};
 pub use queries::{Linker, Queries};
 
 #[cfg(test)]