report_mismatch did not actually report anymore

This commit is contained in:
Oli Scherer
2024-02-22 14:24:25 +00:00
parent e3021eb245
commit e4622e0608
5 changed files with 15 additions and 11 deletions

View File

@@ -478,7 +478,7 @@ fn sanity_check_found_hidden_type<'tcx>(
} else {
let span = tcx.def_span(key.def_id);
let other = ty::OpaqueHiddenType { ty: hidden_ty, span };
Err(ty.report_mismatch(&other, key.def_id, tcx)?.emit())
Err(ty.build_mismatch_error(&other, key.def_id, tcx)?.emit())
}
}