We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0444840 + 3450cf6 commit dd09561Copy full SHA for dd09561
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
187
config = config.stack_size(size);
188
}
189
190
- let with_pool = move |pool: &rayon::ThreadPool| pool.install(move || f());
+ let with_pool = move |pool: &rayon::ThreadPool| pool.install(f);
191
192
rustc_span::with_session_globals(edition, || {
193
rustc_span::SESSION_GLOBALS.with(|session_globals| {
0 commit comments