95c18382cb
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 |
||
---|---|---|
.. | ||
add_private_fn_at_krate_root_cc | ||
auxiliary | ||
callee_caller_cross_crate | ||
change_add_field | ||
change_crate_order | ||
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 | ||
extern_static | ||
hashes | ||
inlined_hir_34991 | ||
issue-39828 | ||
issue-49595 | ||
krate_reassign_34991 | ||
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 | ||
cache_file_headers.rs | ||
change_crate_dep_kind.rs | ||
change_symbol_export_status.rs | ||
commandline-args.rs | ||
crate_hash_reorder.rs | ||
dirty_clean.rs | ||
feature_gate.rs | ||
foreign.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 | ||
krate-inherent.rs | ||
krate-inlined.rs | ||
macro_export.rs | ||
source_loc_macros.rs | ||
spans_in_type_debuginfo.rs | ||
spans_significant_w_debuginfo.rs | ||
spans_significant_w_panic.rs | ||
spike-neg1.rs | ||
spike-neg2.rs | ||
spike.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 | ||
warnings-reemitted.rs |