Rollup merge of #119895 - oli-obk:track_errors_3, r=matthewjasper
Remove `track_errors` entirely follow up to https://github.com/rust-lang/rust/pull/119869 r? `@matthewjasper` There are some diagnostic changes adding new diagnostics or not emitting some anymore. We can improve upon that in follow-up work imo.
This commit is contained in:
commit
0c45e3c7dd
27 changed files with 498 additions and 201 deletions
|
@ -1113,7 +1113,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