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