Skip to content

Commit

Permalink
Auto merge of #7430 - alexcrichton:beta-next, r=ehuss
Browse files Browse the repository at this point in the history
[beta] Don't ever capture CPU state if timings are disabled

This is a beta backport of #7428 to fix builds on beta
  • Loading branch information
bors committed Sep 25, 2019
2 parents 7d1d5fd + 9ccb85d commit 4b105b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cargo/core/compiler/timings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ impl<'a, 'cfg> Timings<'a, 'cfg> {
unit_times: Vec::new(),
active: HashMap::new(),
concurrency: Vec::new(),
last_cpu_state: State::current().ok(),
last_cpu_state: if enabled { State::current().ok() } else { None },
last_cpu_recording: Instant::now(),
cpu_usage: Vec::new(),
}
Expand Down

0 comments on commit 4b105b6

Please sign in to comment.