diff options
| author | bjorn3 <bjorn3@users.noreply.github.com> | 2021-06-25 13:03:39 +0200 |
|---|---|---|
| committer | bjorn3 <bjorn3@users.noreply.github.com> | 2022-02-12 11:47:53 +0100 |
| commit | 5730173763b32ada60d7653ca987562ba0dc66f6 (patch) | |
| tree | c1b14bcc40cbfd86ad646eed8de396ee4820ee4e /compiler/rustc_interface/src/lib.rs | |
| parent | bb45f5db78f00cbacf90d880eabf2def0a625048 (diff) | |
| download | rust-5730173763b32ada60d7653ca987562ba0dc66f6.tar.gz rust-5730173763b32ada60d7653ca987562ba0dc66f6.zip | |
Move setup_callbacks call to create_compiler_and_run
This ensures that it is called even when run_in_thread_pool_with_globals is avoided and reduces code duplication between the parallel and non-parallel version of run_in_thread_pool_with_globals
Diffstat (limited to 'compiler/rustc_interface/src/lib.rs')
| -rw-r--r-- | compiler/rustc_interface/src/lib.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_interface/src/lib.rs b/compiler/rustc_interface/src/lib.rs index eebeabbd452..dcad3036cc2 100644 --- a/compiler/rustc_interface/src/lib.rs +++ b/compiler/rustc_interface/src/lib.rs @@ -15,6 +15,7 @@ mod proc_macro_decls; mod queries; pub mod util; +pub use callbacks::setup_callbacks; pub use interface::{run_compiler, Config}; pub use passes::{DEFAULT_EXTERN_QUERY_PROVIDERS, DEFAULT_QUERY_PROVIDERS}; pub use queries::Queries; |
