diff options
| author | John Kåre Alsaker <john.kare.alsaker@gmail.com> | 2019-03-28 18:58:43 +0100 |
|---|---|---|
| committer | John Kåre Alsaker <john.kare.alsaker@gmail.com> | 2019-03-28 18:58:43 +0100 |
| commit | e9a8befd2d4c0e19a9ec85cc047ef335a2b8b943 (patch) | |
| tree | e322cfab5e2301020c316a41d7ec39369b695f5c /src/librustc_interface | |
| parent | 237bf3244fffef501cf37d4bda00e1fce3fcfb46 (diff) | |
| download | rust-e9a8befd2d4c0e19a9ec85cc047ef335a2b8b943.tar.gz rust-e9a8befd2d4c0e19a9ec85cc047ef335a2b8b943.zip | |
Remove unnecessary with_globals calls
Diffstat (limited to 'src/librustc_interface')
| -rw-r--r-- | src/librustc_interface/interface.rs | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/src/librustc_interface/interface.rs b/src/librustc_interface/interface.rs index bec868be505..245a2bf92d5 100644 --- a/src/librustc_interface/interface.rs +++ b/src/librustc_interface/interface.rs @@ -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 |
