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
This commit is contained in:
parent
bb45f5db78
commit
5730173763
4 changed files with 7 additions and 8 deletions
|
@ -688,7 +688,7 @@ fn main_args(at_args: &[String]) -> MainResult {
|
|||
Ok(opts) => opts,
|
||||
Err(code) => return if code == 0 { Ok(()) } else { Err(ErrorReported) },
|
||||
};
|
||||
rustc_interface::util::setup_callbacks_and_run_in_thread_pool_with_globals(
|
||||
rustc_interface::util::run_in_thread_pool_with_globals(
|
||||
options.edition,
|
||||
1, // this runs single-threaded, even in a parallel compiler
|
||||
&None,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue