Don't rewrite dep-info files if they don't change
authorAlex Crichton <alex@alexcrichton.com>
Wed, 14 Mar 2018 20:27:54 +0000 (13:27 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Wed, 14 Mar 2018 20:27:54 +0000 (13:27 -0700)
commitf60567666fae720d9a7add8e929f19d957f53f23
treed50ae46878e73d4b95501a336387525542925aef
parent1891a62d5c836fc110fb4c46e674b1684d634788
Don't rewrite dep-info files if they don't change

Similar to how we treat lock files, read the contents, compare, and if they're
the same don't actually write the file.

Closes #5172
src/cargo/ops/cargo_rustc/fingerprint.rs
src/cargo/ops/cargo_rustc/output_depinfo.rs
tests/testsuite/dep_info.rs