@@ -402,10 +402,8 @@ pub fn collect_trait_impl_trait_tys<'tcx>(
402402 unnormalized_trait_sig. inputs_and_output . iter ( ) . chain ( trait_sig. inputs_and_output . iter ( ) ) ,
403403 ) ;
404404
405- match infcx. at ( & cause, param_env) . eq ( trait_return_ty, impl_return_ty) {
406- Ok ( infer:: InferOk { value : ( ) , obligations } ) => {
407- ocx. register_obligations ( obligations) ;
408- }
405+ match ocx. eq ( & cause, param_env, trait_return_ty, impl_return_ty) {
406+ Ok ( ( ) ) => { }
409407 Err ( terr) => {
410408 let mut diag = struct_span_err ! (
411409 tcx. sess,
@@ -442,10 +440,8 @@ pub fn collect_trait_impl_trait_tys<'tcx>(
442440 // the lifetimes of the return type, but do this after unifying just the
443441 // return types, since we want to avoid duplicating errors from
444442 // `compare_predicate_entailment`.
445- match infcx. at ( & cause, param_env) . eq ( trait_fty, impl_fty) {
446- Ok ( infer:: InferOk { value : ( ) , obligations } ) => {
447- ocx. register_obligations ( obligations) ;
448- }
443+ match ocx. eq ( & cause, param_env, trait_fty, impl_fty) {
444+ Ok ( ( ) ) => { }
449445 Err ( terr) => {
450446 // This function gets called during `compare_predicate_entailment` when normalizing a
451447 // signature that contains RPITIT. When the method signatures don't match, we have to
0 commit comments