diff options
| author | Jonas Schievink <jonasschievink@gmail.com> | 2020-10-08 23:23:17 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-10-08 23:23:17 +0200 |
| commit | dd09561311dae8370005883a24e2e0a1a0861ac0 (patch) | |
| tree | ecf1c8d4f7a28a5110f1f695aa881fdf5eeb8648 | |
| parent | 044484078bc45faa6e22e38384a82f515bac0827 (diff) | |
| parent | 3450cf61e0e0e574dc25241e6a71b70e3b35fb93 (diff) | |
| download | rust-dd09561311dae8370005883a24e2e0a1a0861ac0.tar.gz rust-dd09561311dae8370005883a24e2e0a1a0861ac0.zip | |
Rollup merge of #77702 - heckad:patch-3, r=lcnr
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| { |
