about summary refs log tree commit diff
path: root/compiler/rustc_mir/src/transform/coverage/debug.rs
diff options
context:
space:
mode:
authorJoshua Nelson <jyn514@gmail.com>2020-12-08 20:18:39 -0500
committerJoshua Nelson <jyn514@gmail.com>2020-12-27 20:32:19 -0500
commit2f063cd39487714bd218ea2a23cfae64828a9058 (patch)
tree6ce103503b28f2b26775b95f55a1bfa9bf7b2e96 /compiler/rustc_mir/src/transform/coverage/debug.rs
parentdc6121ca681e3aef09b93afb13637632dcdc0e9a (diff)
downloadrust-2f063cd39487714bd218ea2a23cfae64828a9058.tar.gz
rust-2f063cd39487714bd218ea2a23cfae64828a9058.zip
Don't use `self.date` unconditionally for `program_out_of_date()`
This avoids unnecessary cache invalidations for programs not affected by
the stage0 version (which is everything except the stage0 compiler
itself).

The redundant invalidations weren't noticed until now because they only
showed up on stage0 bumps, at which point people are used to rebuilding
everything anyway. I noticed it because I wasn't adding `self.date` to
the stamp file (because I didn't realize it was necessary). Rather than
adding self.date I thought it was better to remove it from the cache
key.
Diffstat (limited to 'compiler/rustc_mir/src/transform/coverage/debug.rs')
0 files changed, 0 insertions, 0 deletions