remove _types from ocx method names
This commit is contained in:
@@ -290,7 +290,7 @@ fn compare_predicate_entailment<'tcx>(
|
||||
// type would be more appropriate. In other places we have a `Vec<Span>`
|
||||
// corresponding to their `Vec<Predicate>`, but we don't have that here.
|
||||
// Fixing this would improve the output of test `issue-83765.rs`.
|
||||
let mut result = ocx.sup_types(&cause, param_env, trait_fty, impl_fty);
|
||||
let mut result = ocx.sup(&cause, param_env, trait_fty, impl_fty);
|
||||
|
||||
// HACK(RPITIT): #101614. When we are trying to infer the hidden types for
|
||||
// RPITITs, we need to equate the output tys instead of just subtyping. If
|
||||
@@ -298,9 +298,8 @@ fn compare_predicate_entailment<'tcx>(
|
||||
// us to infer `_#1t = #'_#2r str`, where `'_#2r` is unconstrained, which gets
|
||||
// fixed up to `ReEmpty`, and which is certainly not what we want.
|
||||
if trait_fty.has_infer_types() {
|
||||
result = result.and_then(|()| {
|
||||
ocx.equate_types(&cause, param_env, trait_sig.output(), impl_sig.output())
|
||||
});
|
||||
result =
|
||||
result.and_then(|()| ocx.eq(&cause, param_env, trait_sig.output(), impl_sig.output()));
|
||||
}
|
||||
|
||||
if let Err(terr) = result {
|
||||
@@ -1383,7 +1382,7 @@ pub(crate) fn raw_compare_const_impl<'tcx>(
|
||||
|
||||
debug!("compare_const_impl: trait_ty={:?}", trait_ty);
|
||||
|
||||
let err = ocx.sup_types(&cause, param_env, trait_ty, impl_ty);
|
||||
let err = ocx.sup(&cause, param_env, trait_ty, impl_ty);
|
||||
|
||||
if let Err(terr) = err {
|
||||
debug!(
|
||||
|
||||
Reference in New Issue
Block a user