@@ -317,19 +317,17 @@ impl StepDescription {
317
317
}
318
318
319
319
fn is_excluded ( & self , builder : & Builder < ' _ > , pathset : & PathSet ) -> bool {
320
- if builder. config . exclude . iter ( ) . any ( |e| pathset. has ( & e, builder. kind ) ) {
320
+ if builder. config . skip . iter ( ) . any ( |e| pathset. has ( & e, builder. kind ) ) {
321
321
if !matches ! ( builder. config. dry_run, DryRun :: SelfCheck ) {
322
322
println ! ( "Skipping {pathset:?} because it is excluded" ) ;
323
323
}
324
324
return true ;
325
325
}
326
326
327
- if !builder. config . exclude . is_empty ( )
328
- && !matches ! ( builder. config. dry_run, DryRun :: SelfCheck )
329
- {
327
+ if !builder. config . skip . is_empty ( ) && !matches ! ( builder. config. dry_run, DryRun :: SelfCheck ) {
330
328
builder. verbose ( & format ! (
331
329
"{:?} not skipped for {:?} -- not in {:?}" ,
332
- pathset, self . name, builder. config. exclude
330
+ pathset, self . name, builder. config. skip
333
331
) ) ;
334
332
}
335
333
false
@@ -2129,7 +2127,7 @@ impl<'a> Builder<'a> {
2129
2127
let desc = StepDescription :: from :: < S > ( kind) ;
2130
2128
let should_run = ( desc. should_run ) ( ShouldRun :: new ( self , desc. kind ) ) ;
2131
2129
2132
- // Avoid running steps contained in --exclude
2130
+ // Avoid running steps contained in --skip
2133
2131
for pathset in & should_run. paths {
2134
2132
if desc. is_excluded ( self , pathset) {
2135
2133
return None ;
0 commit comments