diff options
| author | Yotam Ofek <yotamofek@microsoft.com> | 2025-06-26 23:36:46 +0000 |
|---|---|---|
| committer | Yotam Ofek <yotamofek@microsoft.com> | 2025-06-26 23:36:46 +0000 |
| commit | 174cb47a468fb19a3a41895f994eef2f8e7cdd22 (patch) | |
| tree | bda00abe287793ad82dd5d10e1397b57b508b85c /src | |
| parent | b03b3a7ec92682be2917540b679478d41c95a30c (diff) | |
| download | rust-174cb47a468fb19a3a41895f994eef2f8e7cdd22.tar.gz rust-174cb47a468fb19a3a41895f994eef2f8e7cdd22.zip | |
Fix some fixmes that were waiting for let chains
Diffstat (limited to 'src')
| -rw-r--r-- | src/tools/compiletest/src/executor.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tools/compiletest/src/executor.rs b/src/tools/compiletest/src/executor.rs index e774c5e2047..0c4ef36828a 100644 --- a/src/tools/compiletest/src/executor.rs +++ b/src/tools/compiletest/src/executor.rs @@ -40,9 +40,9 @@ pub(crate) fn run_tests(config: &Config, tests: Vec<CollectedTest>) -> bool { // In that case, the tests will effectively be run serially anyway. loop { // Spawn new test threads, up to the concurrency limit. - // FIXME(let_chains): Use a let-chain here when stable in bootstrap. - 'spawn: while running_tests.len() < concurrency { - let Some((id, test)) = fresh_tests.next() else { break 'spawn }; + while running_tests.len() < concurrency + && let Some((id, test)) = fresh_tests.next() + { listener.test_started(test); deadline_queue.push(id, test); let join_handle = spawn_test_thread(id, test, completion_tx.clone()); |
