rust/src/test/incremental
David Wood 95c18382cb
Fix unresolved inference variable ICE.
This commit moves well-formedness check for the
`UserTypeAnnotation::Ty(..)` case from always running to only when the
code is reachable. This solves the ICE that resulted from
`src/test/ui/issue-54943-1.rs` (a minimal repro of `dropck-eyepatch`
run-pass tests that failed).

The main well-formedness check that was intended to be run despite
unreachable code still is, that being the
`UserTypeAnnotation::TypeOf(..)` case. Before this PR, the other case
wasn't being checked at all.

It is possible to fix this ICE while still always checking
well-formedness for the `UserTypeAnnotation::Ty(..)` case but that
solution will ICE in unreachable code for that case, the diff for
that change [can be found here](0).

[0]: https://gist.github.com/davidtwco/f9751ffd9c0508f7251c0f17adc3af53
2018-12-30 14:30:59 +01:00
..
add_private_fn_at_krate_root_cc Remove licenses 2018-12-25 21:08:33 -07:00
auxiliary Remove licenses 2018-12-25 21:08:33 -07:00
callee_caller_cross_crate Remove licenses 2018-12-25 21:08:33 -07:00
change_add_field Remove licenses 2018-12-25 21:08:33 -07:00
change_crate_order Remove licenses 2018-12-25 21:08:33 -07:00
change_private_fn Remove licenses 2018-12-25 21:08:33 -07:00
change_private_fn_cc Remove licenses 2018-12-25 21:08:33 -07:00
change_private_impl_method Remove licenses 2018-12-25 21:08:33 -07:00
change_private_impl_method_cc Remove licenses 2018-12-25 21:08:33 -07:00
change_pub_inherent_method_body Remove licenses 2018-12-25 21:08:33 -07:00
change_pub_inherent_method_sig Remove licenses 2018-12-25 21:08:33 -07:00
extern_static Remove licenses 2018-12-25 21:08:33 -07:00
hashes Fix unresolved inference variable ICE. 2018-12-30 14:30:59 +01:00
inlined_hir_34991 Remove licenses 2018-12-25 21:08:33 -07:00
issue-39828 Remove licenses 2018-12-25 21:08:33 -07:00
issue-49595 Remove licenses 2018-12-25 21:08:33 -07:00
krate_reassign_34991 Remove licenses 2018-12-25 21:08:33 -07:00
remapped_paths_cc Remove licenses 2018-12-25 21:08:33 -07:00
remove_crate Remove licenses 2018-12-25 21:08:33 -07:00
remove_source_file Remove licenses 2018-12-25 21:08:33 -07:00
remove-private-item-cross-crate Remove licenses 2018-12-25 21:08:33 -07:00
rlib_cross_crate Remove licenses 2018-12-25 21:08:33 -07:00
span_hash_stable Remove licenses 2018-12-25 21:08:33 -07:00
static_cycle Remove licenses 2018-12-25 21:08:33 -07:00
static_refering_to_other_static Remove licenses 2018-12-25 21:08:33 -07:00
static_refering_to_other_static2 Remove licenses 2018-12-25 21:08:33 -07:00
static_refering_to_other_static3 Remove licenses 2018-12-25 21:08:33 -07:00
static_stable_hash Remove licenses 2018-12-25 21:08:33 -07:00
struct_change_field_type_cross_crate Remove licenses 2018-12-25 21:08:33 -07:00
thinlto Remove licenses 2018-12-25 21:08:33 -07:00
type_alias_cross_crate Remove licenses 2018-12-25 21:08:33 -07:00
cache_file_headers.rs Remove licenses 2018-12-25 21:08:33 -07:00
change_crate_dep_kind.rs Remove licenses 2018-12-25 21:08:33 -07:00
change_symbol_export_status.rs Remove licenses 2018-12-25 21:08:33 -07:00
commandline-args.rs Remove licenses 2018-12-25 21:08:33 -07:00
crate_hash_reorder.rs Remove licenses 2018-12-25 21:08:33 -07:00
dirty_clean.rs Remove licenses 2018-12-25 21:08:33 -07:00
feature_gate.rs Remove licenses 2018-12-25 21:08:33 -07:00
foreign.rs Remove licenses 2018-12-25 21:08:33 -07:00
hello_world.rs Remove licenses 2018-12-25 21:08:33 -07:00
ich_method_call_trait_scope.rs Remove licenses 2018-12-25 21:08:33 -07:00
ich_nested_items.rs Remove licenses 2018-12-25 21:08:33 -07:00
ich_resolve_results.rs Remove licenses 2018-12-25 21:08:33 -07:00
incremental_proc_macro.rs Remove licenses 2018-12-25 21:08:33 -07:00
issue-35593.rs Remove licenses 2018-12-25 21:08:33 -07:00
issue-38222.rs Remove licenses 2018-12-25 21:08:33 -07:00
issue-39569.rs Remove licenses 2018-12-25 21:08:33 -07:00
issue-42602.rs Remove licenses 2018-12-25 21:08:33 -07:00
issue-49043.rs Remove licenses 2018-12-25 21:08:33 -07:00
issue-49482.rs Remove licenses 2018-12-25 21:08:33 -07:00
issue-51409.rs Remove licenses 2018-12-25 21:08:33 -07:00
issue-54059.rs Remove licenses 2018-12-25 21:08:33 -07:00
krate-inherent.rs Remove licenses 2018-12-25 21:08:33 -07:00
krate-inlined.rs Remove licenses 2018-12-25 21:08:33 -07:00
macro_export.rs Remove licenses 2018-12-25 21:08:33 -07:00
source_loc_macros.rs Remove licenses 2018-12-25 21:08:33 -07:00
spans_in_type_debuginfo.rs Remove licenses 2018-12-25 21:08:33 -07:00
spans_significant_w_debuginfo.rs Remove licenses 2018-12-25 21:08:33 -07:00
spans_significant_w_panic.rs Remove licenses 2018-12-25 21:08:33 -07:00
spike-neg1.rs Remove licenses 2018-12-25 21:08:33 -07:00
spike-neg2.rs Remove licenses 2018-12-25 21:08:33 -07:00
spike.rs Remove licenses 2018-12-25 21:08:33 -07:00
string_constant.rs Remove licenses 2018-12-25 21:08:33 -07:00
struct_add_field.rs Remove licenses 2018-12-25 21:08:33 -07:00
struct_change_field_name.rs Remove licenses 2018-12-25 21:08:33 -07:00
struct_change_field_type.rs Remove licenses 2018-12-25 21:08:33 -07:00
struct_change_nothing.rs Remove licenses 2018-12-25 21:08:33 -07:00
struct_remove_field.rs Remove licenses 2018-12-25 21:08:33 -07:00
unchecked_dirty_clean.rs Remove licenses 2018-12-25 21:08:33 -07:00
warnings-reemitted.rs Remove licenses 2018-12-25 21:08:33 -07:00