From 174cb47a468fb19a3a41895f994eef2f8e7cdd22 Mon Sep 17 00:00:00 2001 From: Yotam Ofek Date: Thu, 26 Jun 2025 23:36:46 +0000 Subject: [PATCH] Fix some fixmes that were waiting for let chains --- .../src/solve/assembly/structural_traits.rs | 17 ++++++++--------- src/tools/compiletest/src/executor.rs | 6 +++--- 2 files changed, 11 insertions(+), 12 deletions(-) diff --git a/compiler/rustc_next_trait_solver/src/solve/assembly/structural_traits.rs b/compiler/rustc_next_trait_solver/src/solve/assembly/structural_traits.rs index f39d32260093c..4c649225359ab 100644 --- a/compiler/rustc_next_trait_solver/src/solve/assembly/structural_traits.rs +++ b/compiler/rustc_next_trait_solver/src/solve/assembly/structural_traits.rs @@ -326,11 +326,10 @@ pub(in crate::solve) fn extract_tupled_inputs_and_output_from_callable) -> 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());