Rollup merge of #76741 - Mark-Simulacrum:no-dry-run-timing, r=alexcrichton

Avoid printing dry run timings

This avoids a wall of text on CI with 0.000 as the likely time.

r? @alexcrichton
This commit is contained in:
Tyler Mandry 2020-09-16 12:24:14 -07:00 committed by GitHub
commit 233937419a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1394,7 +1394,7 @@ impl<'a> Builder<'a> {
(out, dur - deps)
};
if self.config.print_step_timings {
if self.config.print_step_timings && !self.config.dry_run {
println!("[TIMING] {:?} -- {}.{:03}", step, dur.as_secs(), dur.subsec_millis());
}