Remove setup_callbacks_and_run_in_default_thread_pool_with_globals().

It's a very thin wrapper around
`setup_callbacks_and_run_in_thread_pool_with_globals()` and it has a
single call site.
This commit is contained in:
Nicholas Nethercote
2020-08-04 09:42:14 +10:00
parent 530140729a
commit af4e3e08ea
2 changed files with 3 additions and 12 deletions

View File

@@ -431,8 +431,10 @@ fn main_args(args: &[String]) -> MainResult {
Ok(opts) => opts,
Err(code) => return if code == 0 { Ok(()) } else { Err(ErrorReported) },
};
rustc_interface::interface::setup_callbacks_and_run_in_default_thread_pool_with_globals(
rustc_interface::util::setup_callbacks_and_run_in_thread_pool_with_globals(
options.edition,
1, // this runs single-threaded, even in a parallel compiler
&None,
move || main_options(options),
)
}