Revert "Drive-by: Don't manually call evaluate_obligation_no_overflow"
This reverts commit a884a9e634
.
This commit is contained in:
parent
69a07f796c
commit
c285218f43
1 changed files with 3 additions and 2 deletions
|
@ -1336,8 +1336,9 @@ impl<'tcx> TypeErrCtxtExt<'tcx> for TypeErrCtxt<'_, 'tcx> {
|
||||||
obligation.param_env,
|
obligation.param_env,
|
||||||
trait_pred_and_suggested_ty,
|
trait_pred_and_suggested_ty,
|
||||||
);
|
);
|
||||||
let suggested_ty_would_satisfy_obligation =
|
let suggested_ty_would_satisfy_obligation = self
|
||||||
self.predicate_must_hold_modulo_regions(&new_obligation);
|
.evaluate_obligation_no_overflow(&new_obligation)
|
||||||
|
.must_apply_modulo_regions();
|
||||||
if suggested_ty_would_satisfy_obligation {
|
if suggested_ty_would_satisfy_obligation {
|
||||||
let sp = self
|
let sp = self
|
||||||
.tcx
|
.tcx
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue