From 7cdee3927e1e5e7b2e1e32929e940abe9b20823d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Ber=C3=A1nek?= Date: Tue, 12 Aug 2025 12:15:36 +0200 Subject: [PATCH] Forbid running dist steps on stage 0 --- src/bootstrap/src/core/config/config.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/bootstrap/src/core/config/config.rs b/src/bootstrap/src/core/config/config.rs index f579bdd847f6..485960f42566 100644 --- a/src/bootstrap/src/core/config/config.rs +++ b/src/bootstrap/src/core/config/config.rs @@ -1041,6 +1041,10 @@ impl Config { eprintln!("ERROR: cannot run clippy on stage 0. Use at least stage 1."); exit!(1); } + (0, Subcommand::Dist { .. }) => { + eprintln!("ERROR: cannot dist anything on stage 0. Use at least stage 1."); + exit!(1); + } _ => {} }