diff options
| author | ywxt <ywxtcwh@gmail.com> | 2025-06-25 19:38:40 +0800 |
|---|---|---|
| committer | ywxt <ywxtcwh@gmail.com> | 2025-06-28 17:58:20 +0800 |
| commit | 0ceac216c9ea96b4b63cba77ae1fabfc8e0320a1 (patch) | |
| tree | f5fbd7d559d9c36276958d2a7673cf57991fc666 /compiler/rustc_thread_pool/src/spawn/mod.rs | |
| parent | d41e12f1f4e4884c356f319b881921aa37040de5 (diff) | |
| download | rust-0ceac216c9ea96b4b63cba77ae1fabfc8e0320a1.tar.gz rust-0ceac216c9ea96b4b63cba77ae1fabfc8e0320a1.zip | |
Only work-steal in the main loop for rustc_thread_pool
Co-authored-by: Zoxc <zoxc32@gmail.com>
Diffstat (limited to 'compiler/rustc_thread_pool/src/spawn/mod.rs')
| -rw-r--r-- | compiler/rustc_thread_pool/src/spawn/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_thread_pool/src/spawn/mod.rs b/compiler/rustc_thread_pool/src/spawn/mod.rs index 040a02bfa67..d403deaa108 100644 --- a/compiler/rustc_thread_pool/src/spawn/mod.rs +++ b/compiler/rustc_thread_pool/src/spawn/mod.rs @@ -95,7 +95,7 @@ where HeapJob::new(Tlv::null(), { let registry = Arc::clone(registry); - move || { + move |_| { registry.catch_unwind(func); registry.terminate(); // (*) permit registry to terminate now } |
