Rename ty_error_with_guaranteed to ty_error, ty_error to ty_error_misc
This commit is contained in:
parent
1e7ef03b40
commit
298ae8c721
32 changed files with 121 additions and 140 deletions
|
@ -98,7 +98,7 @@ fn impl_defaultness(tcx: TyCtxt<'_>, def_id: DefId) -> hir::Defaultness {
|
|||
fn adt_sized_constraint(tcx: TyCtxt<'_>, def_id: DefId) -> &[Ty<'_>] {
|
||||
if let Some(def_id) = def_id.as_local() {
|
||||
if matches!(tcx.representability(def_id), ty::Representability::Infinite) {
|
||||
return tcx.intern_type_list(&[tcx.ty_error()]);
|
||||
return tcx.intern_type_list(&[tcx.ty_error_misc()]);
|
||||
}
|
||||
}
|
||||
let def = tcx.adt_def(def_id);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue