diff options
| author | Kazantcev Andrey <45011689+heckad@users.noreply.github.com> | 2020-10-08 16:22:31 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-10-08 16:22:31 +0300 |
| commit | 3450cf61e0e0e574dc25241e6a71b70e3b35fb93 (patch) | |
| tree | 54147a3293d28a29508b3c98a5f109625cedb6b7 | |
| parent | f1dab244d798cda027a327fa43a17547d489511d (diff) | |
| download | rust-3450cf61e0e0e574dc25241e6a71b70e3b35fb93.tar.gz rust-3450cf61e0e0e574dc25241e6a71b70e3b35fb93.zip | |
Remove not needed lambda.
| -rw-r--r-- | compiler/rustc_interface/src/util.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_interface/src/util.rs b/compiler/rustc_interface/src/util.rs index 7ace707cc88..c1b359c7d0d 100644 --- a/compiler/rustc_interface/src/util.rs +++ b/compiler/rustc_interface/src/util.rs @@ -187,7 +187,7 @@ pub fn setup_callbacks_and_run_in_thread_pool_with_globals<F: FnOnce() -> R + Se config = config.stack_size(size); } - let with_pool = move |pool: &rayon::ThreadPool| pool.install(move || f()); + let with_pool = move |pool: &rayon::ThreadPool| pool.install(f); rustc_span::with_session_globals(edition, || { rustc_span::SESSION_GLOBALS.with(|session_globals| { |
