Remove unnecessary with_globals calls
This commit is contained in:
parent
237bf3244f
commit
e9a8befd2d
2 changed files with 8 additions and 10 deletions
|
@ -136,14 +136,12 @@ where
|
|||
F: FnOnce(&Compiler) -> R + Send,
|
||||
R: Send,
|
||||
{
|
||||
syntax::with_globals(move || {
|
||||
let stderr = config.stderr.take();
|
||||
util::spawn_thread_pool(
|
||||
config.opts.debugging_opts.threads,
|
||||
&stderr,
|
||||
|| run_compiler_in_existing_thread_pool(config, f),
|
||||
)
|
||||
})
|
||||
let stderr = config.stderr.take();
|
||||
util::spawn_thread_pool(
|
||||
config.opts.debugging_opts.threads,
|
||||
&stderr,
|
||||
|| run_compiler_in_existing_thread_pool(config, f),
|
||||
)
|
||||
}
|
||||
|
||||
pub fn default_thread_pool<F, R>(f: F) -> R
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue