1
Fork 0

Remove a_is_expected from combine relations

This commit is contained in:
Michael Goulet 2024-02-26 20:42:09 +00:00
parent 61daee66a8
commit 04e22627f5
9 changed files with 75 additions and 135 deletions

View file

@ -1541,12 +1541,9 @@ impl<'tcx> TypeErrCtxt<'_, 'tcx> {
// since the normalization is just done to improve the error message.
let _ = ocx.select_where_possible();
if let Err(new_err) = ocx.eq(
&obligation.cause,
obligation.param_env,
expected,
actual,
) {
if let Err(new_err) =
ocx.eq(&obligation.cause, obligation.param_env, expected, actual)
{
(Some((data, is_normalized_term_expected, normalized_term, data.term)), new_err)
} else {
(None, error.err)