rust/src/test/incremental/hashes
bors da3fbe750f Auto merge of #45867 - michaelwoerister:check-ich-stability, r=nikomatsakis
incr.comp.: Verify stability of incr. comp. hashes and clean up various other things.

The main contribution of this PR is that it adds the `-Z incremental-verify-ich` functionality. Normally, when the red-green tracking system determines that a certain query result has not changed, it does not re-compute the incr. comp. hash (ICH) for that query result because that hash is already known. `-Z incremental-verify-ich` tells the compiler to re-hash the query result and compare the new hash against the cached hash. This is a rather thorough way of
- testing hashing implementation stability,
- finding missing `[input]` annotations on `DepNodes`, and
- finding missing read-edges,

since both a missed read and a missing `[input]` annotation can lead to something being marked as green instead of red and thus will have a different hash than it should have.

Case in point, implementing this verification logic and activating it for all `src/test/incremental` tests has revealed several such oversights, all of which are fixed in this PR.

r? @nikomatsakis
2017-11-08 22:27:06 +00:00
..
call_expressions.rs Fix incremental tests after change to instantiation strategy. 2017-11-07 08:54:38 +01:00
closure_expressions.rs
consts.rs incr.comp.: Update overflow-check logic in HIR hashing. 2017-10-26 16:23:31 +02:00
enum_constructors.rs Fix incremental tests after change to instantiation strategy. 2017-11-07 08:54:38 +01:00
enum_defs.rs fix review comments 2017-10-13 10:15:03 -06:00
exported_vs_not.rs
extern_mods.rs incr comp: rustc_clean/dirty auto assert 2017-10-12 22:32:45 -06:00
for_loops.rs
function_interfaces.rs
if_expressions.rs
indexing_expressions.rs Add support for ..= syntax 2017-09-22 22:05:18 +02:00
inherent_impls.rs Fix incremental tests after change to instantiation strategy. 2017-11-07 08:54:38 +01:00
inline_asm.rs
let_expressions.rs Update let-expressions.rs 2017-10-09 23:32:21 +05:30
loop_expressions.rs
match_expressions.rs
panic_exprs_no_overflow_checks.rs
panic_exprs.rs incr.comp.: Acknowledge the fact that shift operations can panic at runtime. 2017-11-07 15:49:51 +01:00
statics.rs incr.comp.: Update overflow-check logic in HIR hashing. 2017-10-26 16:23:31 +02:00
struct_constructors.rs Fix incremental tests after change to instantiation strategy. 2017-11-07 08:54:38 +01:00
struct_defs.rs related to #44924: update incr compilation for struct_defs.rs 2017-10-03 11:03:57 -06:00
trait_defs.rs [Syntax Breaking] Rename DefaultImpl to AutoImpl 2017-11-03 16:13:20 -02:00
trait_impls.rs
type_defs.rs fix review comments 2017-10-13 10:15:03 -06:00
unary_and_binary_exprs.rs
while_let_loops.rs
while_loops.rs