diff options
| author | Meysam Azad <MeysamAzad81@gmail.com> | 2023-08-04 20:08:22 +0700 |
|---|---|---|
| committer | Meysam Azad <MeysamAzad81@gmail.com> | 2023-08-06 14:29:36 +0700 |
| commit | 0b16456efa95060beedb0e2fe1ed0aa5fa1b7e02 (patch) | |
| tree | f25c478c599244c2c65d5965f5de886d421b9c35 /src/bootstrap/builder.rs | |
| parent | 8236f63aba889be5ef9b42c86b3e73c8b877b6af (diff) | |
| download | rust-0b16456efa95060beedb0e2fe1ed0aa5fa1b7e02.tar.gz rust-0b16456efa95060beedb0e2fe1ed0aa5fa1b7e02.zip | |
fix(bootstrap): rename exclude flag to skip 🐛
Diffstat (limited to 'src/bootstrap/builder.rs')
| -rw-r--r-- | src/bootstrap/builder.rs | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/bootstrap/builder.rs b/src/bootstrap/builder.rs index d369e8eeda9..b3666192853 100644 --- a/src/bootstrap/builder.rs +++ b/src/bootstrap/builder.rs @@ -317,19 +317,17 @@ impl StepDescription { } fn is_excluded(&self, builder: &Builder<'_>, pathset: &PathSet) -> bool { - if builder.config.exclude.iter().any(|e| pathset.has(&e, builder.kind)) { + if builder.config.skip.iter().any(|e| pathset.has(&e, builder.kind)) { if !matches!(builder.config.dry_run, DryRun::SelfCheck) { println!("Skipping {pathset:?} because it is excluded"); } return true; } - if !builder.config.exclude.is_empty() - && !matches!(builder.config.dry_run, DryRun::SelfCheck) - { + if !builder.config.skip.is_empty() && !matches!(builder.config.dry_run, DryRun::SelfCheck) { builder.verbose(&format!( "{:?} not skipped for {:?} -- not in {:?}", - pathset, self.name, builder.config.exclude + pathset, self.name, builder.config.skip )); } false @@ -2129,7 +2127,7 @@ impl<'a> Builder<'a> { let desc = StepDescription::from::<S>(kind); let should_run = (desc.should_run)(ShouldRun::new(self, desc.kind)); - // Avoid running steps contained in --exclude + // Avoid running steps contained in --skip for pathset in &should_run.paths { if desc.is_excluded(self, pathset) { return None; |
