Skip to content

Commit 9222322

Browse files
authored
Unrolled build for rust-lang#140670
Rollup merge of rust-lang#140670 - onur-ozkan:129959, r=Kobzol calculate step duration in a panic-safe way obvious/self-explanatory change. Fixes rust-lang#129959
2 parents 2e6882a + 29f9aaf commit 9222322

File tree

1 file changed

+1
-1
lines changed
  • src/bootstrap/src/core/builder

1 file changed

+1
-1
lines changed

src/bootstrap/src/core/builder/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1534,7 +1534,7 @@ impl<'a> Builder<'a> {
15341534
let out = step.clone().run(self);
15351535
let dur = start.elapsed();
15361536
let deps = self.time_spent_on_dependencies.replace(parent + dur);
1537-
(out, dur - deps)
1537+
(out, dur.saturating_sub(deps))
15381538
};
15391539

15401540
if self.config.print_step_timings && !self.config.dry_run() {

0 commit comments

Comments
 (0)