Document ShouldRun::paths

This commit is contained in:
jyn 2023-05-25 14:00:55 -05:00
parent 3e765a7f71
commit 71770d5e6e

View File

@ -473,7 +473,15 @@ impl<'a> ShouldRun<'a> {
self.paths(&[path])
}
// multiple aliases for the same job
/// Multiple aliases for the same job.
///
/// This differs from [`path`] in that multiple calls to path will end up calling `make_run`
/// multiple times, whereas a single call to `paths` will only ever generate a single call to
/// `paths`.
///
/// This is analogous to `all_krates`, although `all_krates` is gone now. Prefer [`path`] where possible.
///
/// [`path`]: ShouldRun::path
pub fn paths(mut self, paths: &[&str]) -> Self {
static SUBMODULES_PATHS: OnceCell<Vec<String>> = OnceCell::new();