rust/src/test/incremental
Jonathan Turner 27f41b7001 Rollup merge of #37513 - michaelwoerister:hash-panic-spans, r=nikomatsakis
ICH: Hash expression spans if their source location is captured for panics.

Since the location of some expressions is captured in error message constants, it has an influence on machine code and consequently we need to take them into account by the incr. comp. hash. This PR makes this happen for `+, -, *, /, %` and for array indexing -- let me know if I forgot anything.

In the future we might want to change the codegen strategy for those error messages, so that they are stored in a separate object file with a stable symbol name, so that only this object file has to be regenerated when source locations change. This strategy would also eliminate unnecessary duplications due  to monomorphization, as @arielb1 has pointed out on IRC. I opened https://github.com/rust-lang/rust/issues/37512, so we don't forget about this.

r? @nikomatsakis
2016-11-02 15:09:42 -04:00
..
callee_caller_cross_crate use preds to serialize just what we need 2016-08-09 08:26:06 -04:00
change_crate_order map create numbers between compilations 2016-09-14 00:00:23 +03:00
change_private_fn add test case for changes to a private fn 2016-10-21 17:30:12 -04:00
change_private_fn_cc test case for changing a private fn in root of another crate 2016-10-21 18:31:34 -04:00
change_private_impl_method Fix typo 2016-10-17 17:47:48 -04:00
change_private_impl_method_cc add a test case for changing a private impl method across crates 2016-10-21 18:02:47 -04:00
hashes ICH: Add test case for when overflow checks are disabled. 2016-11-02 10:00:11 -04:00
inlined_hir_34991 remap Hir(InlinedDefId) to MetaData(OriginalDefId) 2016-08-02 05:31:25 -04:00
krate_reassign_34991 watch out for krate numbers being reassigned 2016-08-02 05:31:25 -04:00
remove-private-item-cross-crate expanding a def-id is not a read 2016-09-06 11:18:10 -04:00
rlib_cross_crate use preds to serialize just what we need 2016-08-09 08:26:06 -04:00
span_hash_stable incr.comp. Add tests for stable span hashing. 2016-09-01 09:43:44 -04:00
struct_change_field_type_cross_crate use preds to serialize just what we need 2016-08-09 08:26:06 -04:00
type_alias_cross_crate use preds to serialize just what we need 2016-08-09 08:26:06 -04:00
cache_file_headers.rs incr.comp.: Add test case for cache artifact file headers. 2016-09-26 17:14:31 -04:00
commandline-args.rs Fix incremental/commandline-args test. 2016-08-11 10:59:05 -04:00
crate_hash_reorder.rs fix stray comment 2016-08-23 13:29:28 -04:00
dirty_clean.rs use preds to serialize just what we need 2016-08-09 08:26:06 -04:00
foreign.rs hash foreign items too 2016-08-01 19:57:32 -04:00
hello_world.rs use preds to serialize just what we need 2016-08-09 08:26:06 -04:00
ich_method_call_trait_scope.rs incorporate resolve results into hashing 2016-08-09 20:28:46 -04:00
ich_nested_items.rs stop hashing nested items, and add a test 2016-08-09 20:28:45 -04:00
ich_resolve_results.rs incorporate resolve results into hashing 2016-08-09 20:28:46 -04:00
issue-35593.rs add regression test for #35593 2016-08-23 07:40:53 -04:00
krate-inherent.rs write to inherent_impls during the visitor 2016-09-06 11:17:03 -04:00
krate-inlined.rs allow testing DepNode::Krate edges directly 2016-09-06 11:18:09 -04:00
source_loc_macros.rs incr.comp. Add tests for stable span hashing. 2016-09-01 09:43:44 -04:00
spans_insignificant_w_o_debuginfo.rs incr.comp. Add tests for stable span hashing. 2016-09-01 09:43:44 -04:00
spans_significant_w_debuginfo.rs incr.comp. Add tests for stable span hashing. 2016-09-01 09:43:44 -04:00
spike-neg1.rs Address mw nits 2016-07-28 12:05:45 -04:00
spike-neg2.rs Address mw nits 2016-07-28 12:05:45 -04:00
spike.rs use preds to serialize just what we need 2016-08-09 08:26:06 -04:00
string_constant.rs compute and cache HIR hashes at beginning 2016-08-20 07:26:14 -04:00
struct_add_field.rs use preds to serialize just what we need 2016-08-09 08:26:06 -04:00
struct_change_field_name.rs Improve error message and snippet for "did you mean x" 2016-10-02 15:57:39 +11:00
struct_change_field_type.rs use preds to serialize just what we need 2016-08-09 08:26:06 -04:00
struct_change_nothing.rs use preds to serialize just what we need 2016-08-09 08:26:06 -04:00
struct_remove_field.rs use preds to serialize just what we need 2016-08-09 08:26:06 -04:00