Skip to content

Commit

Permalink
Auto merge of #7890 - ehuss:fingerprint-log-rustflags, r=Eh2406
Browse files Browse the repository at this point in the history
Add new/old rustflags to fingerprint log.

Follow up to #7888. Due to a conversation with someone I had with Discord who was having trouble determining why something was rebuilding.
  • Loading branch information
bors committed Feb 16, 2020
2 parents 1fa0f1b + 25275b0 commit 5f07972
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/cargo/core/compiler/fingerprint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,11 @@ impl Fingerprint {
bail!("profile configuration has changed")
}
if self.rustflags != old.rustflags {
bail!("RUSTFLAGS has changed")
bail!(
"RUSTFLAGS has changed: {:?} != {:?}",
self.rustflags,
old.rustflags
)
}
if self.metadata != old.metadata {
bail!("metadata changed")
Expand Down

0 comments on commit 5f07972

Please sign in to comment.