@@ -317,19 +317,17 @@ impl StepDescription {
317317 }
318318
319319 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 ) ) {
321321 if !matches ! ( builder. config. dry_run, DryRun :: SelfCheck ) {
322322 println ! ( "Skipping {pathset:?} because it is excluded" ) ;
323323 }
324324 return true ;
325325 }
326326
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 ) {
330328 builder. verbose ( & format ! (
331329 "{:?} not skipped for {:?} -- not in {:?}" ,
332- pathset, self . name, builder. config. exclude
330+ pathset, self . name, builder. config. skip
333331 ) ) ;
334332 }
335333 false
@@ -2129,7 +2127,7 @@ impl<'a> Builder<'a> {
21292127 let desc = StepDescription :: from :: < S > ( kind) ;
21302128 let should_run = ( desc. should_run ) ( ShouldRun :: new ( self , desc. kind ) ) ;
21312129
2132- // Avoid running steps contained in --exclude
2130+ // Avoid running steps contained in --skip
21332131 for pathset in & should_run. paths {
21342132 if desc. is_excluded ( self , pathset) {
21352133 return None ;
0 commit comments