Skip to content

Commit dd09561

Browse files
Rollup merge of rust-lang#77702 - heckad:patch-3, r=lcnr
Remove not needed lambda.
2 parents 0444840 + 3450cf6 commit dd09561

File tree

1 file changed

+1
-1
lines changed
  • compiler/rustc_interface/src

1 file changed

+1
-1
lines changed

compiler/rustc_interface/src/util.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ pub fn setup_callbacks_and_run_in_thread_pool_with_globals<F: FnOnce() -> R + Se
187187
config = config.stack_size(size);
188188
}
189189

190-
let with_pool = move |pool: &rayon::ThreadPool| pool.install(move || f());
190+
let with_pool = move |pool: &rayon::ThreadPool| pool.install(f);
191191

192192
rustc_span::with_session_globals(edition, || {
193193
rustc_span::SESSION_GLOBALS.with(|session_globals| {

0 commit comments

Comments
 (0)