@@ -13,7 +13,7 @@ use std::process::Command;
13
13
use std:: time:: { Duration , Instant } ;
14
14
15
15
use crate :: cache:: { Cache , Interned , INTERNER } ;
16
- use crate :: config:: { SplitDebuginfo , TargetSelection } ;
16
+ use crate :: config:: { DryRun , SplitDebuginfo , TargetSelection } ;
17
17
use crate :: doc;
18
18
use crate :: flags:: { Color , Subcommand } ;
19
19
use crate :: install;
@@ -281,11 +281,15 @@ impl StepDescription {
281
281
282
282
fn is_excluded ( & self , builder : & Builder < ' _ > , pathset : & PathSet ) -> bool {
283
283
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
+ }
285
287
return true ;
286
288
}
287
289
288
- if !builder. config . exclude . is_empty ( ) {
290
+ if !builder. config . exclude . is_empty ( )
291
+ && !matches ! ( builder. config. dry_run, DryRun :: SelfCheck )
292
+ {
289
293
builder. verbose ( & format ! (
290
294
"{:?} not skipped for {:?} -- not in {:?}" ,
291
295
pathset, self . name, builder. config. exclude
0 commit comments