We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
ShouldRun::paths
1 parent 3e765a7 commit 71770d5Copy full SHA for 71770d5
src/bootstrap/builder.rs
@@ -473,7 +473,15 @@ impl<'a> ShouldRun<'a> {
473
self.paths(&[path])
474
}
475
476
- // multiple aliases for the same job
+ /// Multiple aliases for the same job.
477
+ ///
478
+ /// This differs from [`path`] in that multiple calls to path will end up calling `make_run`
479
+ /// multiple times, whereas a single call to `paths` will only ever generate a single call to
480
+ /// `paths`.
481
482
+ /// This is analogous to `all_krates`, although `all_krates` is gone now. Prefer [`path`] where possible.
483
484
+ /// [`path`]: ShouldRun::path
485
pub fn paths(mut self, paths: &[&str]) -> Self {
486
static SUBMODULES_PATHS: OnceCell<Vec<String>> = OnceCell::new();
487
0 commit comments