Skip to content

Commit

Permalink
Document ShouldRun::paths
Browse files Browse the repository at this point in the history
  • Loading branch information
jyn514 committed May 29, 2023
1 parent 3e765a7 commit 71770d5
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/bootstrap/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit 71770d5

Please sign in to comment.