From 24378885c8ca7e3cae25723da577445d200fe8e8 Mon Sep 17 00:00:00 2001 From: Joshua Nelson Date: Sun, 6 Nov 2022 17:00:58 -0600 Subject: [PATCH] Print "Checking/Building ..." message even when --dry-run is passed This makes it a lot easier to understand what commands will be run without having to parse the `-vv` output, which isn't meant to be user facing. --- src/bootstrap/lib.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/bootstrap/lib.rs b/src/bootstrap/lib.rs index 7dfd75a53519..bbb5a18ba07b 100644 --- a/src/bootstrap/lib.rs +++ b/src/bootstrap/lib.rs @@ -1019,10 +1019,12 @@ fn verbose_than(&self, level: usize, msg: &str) { } fn info(&self, msg: &str) { - if self.config.dry_run() { - return; + match self.config.dry_run { + DryRun::SelfCheck => return, + DryRun::Disabled | DryRun::UserSelected => { + println!("{}", msg); + } } - println!("{}", msg); } /// Returns the number of parallel jobs that have been configured for this