rust/tests/incremental
bors 1d96de2a20 Auto merge of #126409 - pacak:incr-uplorry, r=michaelwoerister
Trying to address an incremental compilation issues

This pull request contains two independent changes, one makes it so when `try_force_from_dep_node` fails to recover a query - it marks the node as "red" instead of "green" and the second one makes Debug impl for `DepNode` less panicky if it encounters something from the previous compilation that doesn't map to anything in the current one.

I'm not 100% confident that this is the correct approach, but so far I managed to find a bunch of comments suggesting that some things are allowed to fail in a certain way and changes I made are allowing for those things to fail this way and it fixes all the small reproducers I managed to find.

Compilation panic this pull request avoids is caused by an automatically generated code on an associated type and it is not happening if something else marks it as outdated first (or close like that, but scenario is quite obscure).

Fixes https://github.com/rust-lang/rust/issues/107226
Fixes https://github.com/rust-lang/rust/issues/125367
2024-06-20 09:06:16 +00:00
..
add_private_fn_at_krate_root_cc
auxiliary
callee_caller_cross_crate
change_add_field
change_crate_order
change_implementation_cross_crate
change_private_fn
change_private_fn_cc
change_private_impl_method
change_private_impl_method_cc
change_pub_inherent_method_body
change_pub_inherent_method_sig
const-generics Taint infcx when reporting errors 2024-06-19 04:41:56 +00:00
extern_static
hashes
hygiene
inlined_hir_34991
issue-39828
issue-49595
issue-85197-invalid-span
issue-92163-missing-sourcefile
issue-110457-same-span-closures
krate_reassign_34991
link_order
remapped_paths_cc
remove_crate
remove_source_file
remove-private-item-cross-crate
rlib_cross_crate
span_hash_stable
static_cycle
static_refering_to_other_static
static_refering_to_other_static2
static_refering_to_other_static3
static_stable_hash
struct_change_field_type_cross_crate
thinlto
type_alias_cross_crate
async-lifetimes.rs
cache_file_headers.rs
change_crate_dep_kind.rs
change_name_of_static_in_fn.rs
change_symbol_export_status.rs
circular-dependencies.rs
commandline-args.rs
const-generic-type-cycle.rs
crate_hash_reorder.rs
cyclic-trait-hierarchy.rs
delayed_span_bug.rs
dirty_clean.rs
feature_gate.rs
foreign.rs Update tests/incremental/foreign.rs 2024-05-20 11:13:10 -04:00
hash-module-order.rs
hello_world.rs
ich_method_call_trait_scope.rs
ich_nested_items.rs
ich_resolve_results.rs
incremental_proc_macro.rs
issue-35593.rs
issue-38222.rs
issue-39569.rs
issue-42602.rs
issue-49043.rs
issue-49482.rs
issue-51409.rs
issue-54059.rs
issue-54242.rs
issue-59523-on-implemented-is-not-unused.rs
issue-59524-layout-scalar-valid-range-is-not-unused.rs
issue-60629.rs
issue-61323.rs
issue-61530.rs
issue-62649-path-collisions-happen.rs
issue-69596.rs
issue-72386.rs
issue-79661-missing-def-path-hash.rs
issue-79890-imported-crates-changed.rs
issue-80336-invalid-span.rs
issue-80691-bad-eval-cache.rs
issue-82920-predicate-order-miscompile.rs
issue-84252-global-alloc.rs
issue-85360-eval-obligation-ice.rs
issue-86753.rs
issue-92987-provisional-dep-node.rs
issue-96319-coinductive-cycle.rs
issue-100521-change-struct-name-assocty.rs
issue-101518.rs
issue-108481-feed-eval-always.rs
krate-inherent.rs
krate-inlined.rs
lto-in-linker.rs
lto.rs
macro_export.rs
mir-opt.rs
no_mangle.rs
reorder_vtable.rs
rlib-lto.rs
rustc-rust-log.rs
slice-pattern-const-ice-83085.rs add test for incremental ICE: slice-pattern-const.rs #83085 2024-04-21 14:45:00 +02:00
source_loc_macros.rs
spans_in_type_debuginfo.rs
spans_significant_w_debuginfo.rs
spans_significant_w_panic.rs
spike-neg1.rs Add missing -Zquery-dep-graph to the spike-neg incr comp tests 2024-04-06 13:36:16 +00:00
spike-neg2.rs Add missing -Zquery-dep-graph to the spike-neg incr comp tests 2024-04-06 13:36:16 +00:00
spike.rs
split_debuginfo_cached.rs
split_debuginfo_mode.rs
string_constant.rs
struct_add_field.rs
struct_change_field_name.rs
struct_change_field_type.rs
struct_change_nothing.rs
struct_remove_field.rs
unchecked_dirty_clean.rs
unrecoverable_query.rs Allow for try_force_from_dep_node to fail 2024-06-19 07:21:41 -04:00
warnings-reemitted.rs