From 8722fc03d2f0ffc7a43769a60cccda1722d5777c Mon Sep 17 00:00:00 2001 From: Francisco Gouveia Date: Fri, 20 Feb 2026 13:50:13 +0000 Subject: [PATCH] fix(toolchain): improve logs when recovering from an interrupted installation --- src/dist/manifestation.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/dist/manifestation.rs b/src/dist/manifestation.rs index c47de9366b..3ba8065a78 100644 --- a/src/dist/manifestation.rs +++ b/src/dist/manifestation.rs @@ -187,6 +187,12 @@ impl Manifestation { // Uninstall components for component in update.components_to_uninstall { + // If there are no components installed, we don't need to keep + // checking, we can simply exit the loop earlier. + if self.installation.list()?.is_empty() { + info!("recovering from a partially installed toolchain"); + break; + } match (implicit_modify, &component.target) { (true, Some(t)) if t != &self.target_triple => { info!(