Remove a_is_expected from combine relations
This commit is contained in:
parent
61daee66a8
commit
04e22627f5
9 changed files with 75 additions and 135 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue