@@ -13,7 +13,7 @@ use std::process::Command;
1313use std:: time:: { Duration , Instant } ;
1414
1515use crate :: cache:: { Cache , Interned , INTERNER } ;
16- use crate :: config:: { SplitDebuginfo , TargetSelection } ;
16+ use crate :: config:: { DryRun , SplitDebuginfo , TargetSelection } ;
1717use crate :: doc;
1818use crate :: flags:: { Color , Subcommand } ;
1919use crate :: install;
@@ -281,11 +281,15 @@ impl StepDescription {
281281
282282 fn is_excluded ( & self , builder : & Builder < ' _ > , pathset : & PathSet ) -> bool {
283283 if builder. config . exclude . iter ( ) . any ( |e| pathset. has ( & e, builder. kind ) ) {
284- println ! ( "Skipping {:?} because it is excluded" , pathset) ;
284+ if !matches ! ( builder. config. dry_run, DryRun :: SelfCheck ) {
285+ println ! ( "Skipping {:?} because it is excluded" , pathset) ;
286+ }
285287 return true ;
286288 }
287289
288- if !builder. config . exclude . is_empty ( ) {
290+ if !builder. config . exclude . is_empty ( )
291+ && !matches ! ( builder. config. dry_run, DryRun :: SelfCheck )
292+ {
289293 builder. verbose ( & format ! (
290294 "{:?} not skipped for {:?} -- not in {:?}" ,
291295 pathset, self . name, builder. config. exclude
0 commit comments