Skip to content

Commit

Permalink
Unrolled build for rust-lang#134409
Browse files Browse the repository at this point in the history
Rollup merge of rust-lang#134409 - RalfJung:bootstrap-comment, r=jieyouxu

bootstrap: fix a comment

I don't actually know if this is right, though...  but "a single call to `paths` will only ever generate a single call to `paths`" just does not make sense.
  • Loading branch information
rust-timer authored Dec 17, 2024
2 parents 604d669 + 7dbfe4d commit ec72379
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/bootstrap/src/core/builder/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -613,7 +613,9 @@ impl<'a> ShouldRun<'a> {
self
}

// single, non-aliased path
/// single, non-aliased path
///
/// Must be an on-disk path; use `alias` for names that do not correspond to on-disk paths.
pub fn path(self, path: &str) -> Self {
self.paths(&[path])
}
Expand All @@ -622,7 +624,7 @@ impl<'a> ShouldRun<'a> {
///
/// 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`.
/// `make_run`.
///
/// This is analogous to `all_krates`, although `all_krates` is gone now. Prefer [`path`] where possible.
///
Expand Down

0 comments on commit ec72379

Please sign in to comment.