Remove track_errors entirely
This commit is contained in:
parent
0e4243538b
commit
db7cd57091
26 changed files with 496 additions and 200 deletions
|
@ -1114,7 +1114,13 @@ fn find_vtable_types_for_unsizing<'tcx>(
|
|||
assert_eq!(source_adt_def, target_adt_def);
|
||||
|
||||
let CustomCoerceUnsized::Struct(coerce_index) =
|
||||
crate::custom_coerce_unsize_info(tcx, source_ty, target_ty);
|
||||
match crate::custom_coerce_unsize_info(tcx, source_ty, target_ty) {
|
||||
Ok(ccu) => ccu,
|
||||
Err(e) => {
|
||||
let e = Ty::new_error(tcx.tcx, e);
|
||||
return (e, e);
|
||||
}
|
||||
};
|
||||
|
||||
let source_fields = &source_adt_def.non_enum_variant().fields;
|
||||
let target_fields = &target_adt_def.non_enum_variant().fields;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue