File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -305,6 +305,10 @@ impl StepDescription {
305
305
fn maybe_run ( & self , builder : & Builder < ' _ > , mut pathsets : Vec < PathSet > ) {
306
306
pathsets. retain ( |set| !self . is_excluded ( builder, set) ) ;
307
307
308
+ if pathsets. is_empty ( ) || pathsets. len ( ) == 0 {
309
+ return ;
310
+ }
311
+
308
312
// Determine the targets participating in this rule.
309
313
let targets = if self . only_hosts { & builder. hosts } else { & builder. targets } ;
310
314
Original file line number Diff line number Diff line change @@ -136,9 +136,9 @@ fn test_exclude_kind() {
136
136
let mut config = configure ( "test" , & [ "A" ] , & [ "A" ] ) ;
137
137
// Ensure our test is valid, and `test::Rustc` would be run without the exclude.
138
138
assert ! ( run_build( & [ ] , config. clone( ) ) . contains:: <test:: CrateLibrustc >( ) ) ;
139
- // Ensure tests for rustc are skipped.
139
+ // Ensure tests for rustc are not skipped.
140
140
config. skip = vec ! [ path. clone( ) ] ;
141
- assert ! ( ! run_build( & [ ] , config. clone( ) ) . contains:: <test:: CrateLibrustc >( ) ) ;
141
+ assert ! ( run_build( & [ ] , config. clone( ) ) . contains:: <test:: CrateLibrustc >( ) ) ;
142
142
// Ensure builds for rustc are not skipped.
143
143
assert ! ( run_build( & [ ] , config) . contains:: <compile:: Rustc >( ) ) ;
144
144
}
You can’t perform that action at this time.
0 commit comments