@@ -71,7 +71,7 @@ pub(super) fn compare_impl_method<'tcx>(
7171 return ;
7272 }
7373
74- if let Err ( _) = compare_predicate_entailment (
74+ if let Err ( _) = compare_method_predicate_entailment (
7575 tcx,
7676 impl_m,
7777 impl_m_span,
@@ -150,7 +150,7 @@ pub(super) fn compare_impl_method<'tcx>(
150150/// Finally we register each of these predicates as an obligation and check that
151151/// they hold.
152152#[ instrument( level = "debug" , skip( tcx, impl_m_span, impl_trait_ref) ) ]
153- fn compare_predicate_entailment < ' tcx > (
153+ fn compare_method_predicate_entailment < ' tcx > (
154154 tcx : TyCtxt < ' tcx > ,
155155 impl_m : & ty:: AssocItem ,
156156 impl_m_span : Span ,
@@ -337,7 +337,7 @@ fn compare_predicate_entailment<'tcx>(
337337 if !errors. is_empty ( ) {
338338 match check_implied_wf {
339339 CheckImpliedWfMode :: Check => {
340- return compare_predicate_entailment (
340+ return compare_method_predicate_entailment (
341341 tcx,
342342 impl_m,
343343 impl_m_span,
@@ -374,7 +374,7 @@ fn compare_predicate_entailment<'tcx>(
374374 // becomes a hard error (i.e. ideally we'd just call `resolve_regions_and_report_errors`
375375 match check_implied_wf {
376376 CheckImpliedWfMode :: Check => {
377- return compare_predicate_entailment (
377+ return compare_method_predicate_entailment (
378378 tcx,
379379 impl_m,
380380 impl_m_span,
@@ -407,7 +407,7 @@ enum CheckImpliedWfMode {
407407 /// re-check with `Skip`, and emit a lint if it succeeds.
408408 Check ,
409409 /// Skips checking implied well-formedness of the impl method, but will emit
410- /// a lint if the `compare_predicate_entailment ` succeeded. This means that
410+ /// a lint if the `compare_method_predicate_entailment ` succeeded. This means that
411411 /// the reason that we had failed earlier during `Check` was due to the impl
412412 /// having stronger requirements than the trait.
413413 Skip ,
@@ -550,13 +550,13 @@ pub(super) fn collect_trait_impl_trait_tys<'tcx>(
550550 // Unify the whole function signature. We need to do this to fully infer
551551 // the lifetimes of the return type, but do this after unifying just the
552552 // return types, since we want to avoid duplicating errors from
553- // `compare_predicate_entailment `.
553+ // `compare_method_predicate_entailment `.
554554 match ocx. eq ( & cause, param_env, trait_fty, impl_fty) {
555555 Ok ( ( ) ) => { }
556556 Err ( terr) => {
557- // This function gets called during `compare_predicate_entailment ` when normalizing a
557+ // This function gets called during `compare_method_predicate_entailment ` when normalizing a
558558 // signature that contains RPITIT. When the method signatures don't match, we have to
559- // emit an error now because `compare_predicate_entailment ` will not report the error
559+ // emit an error now because `compare_method_predicate_entailment ` will not report the error
560560 // when normalization fails.
561561 let emitted = report_trait_method_mismatch (
562562 infcx,
@@ -1645,7 +1645,7 @@ pub(super) fn compare_impl_ty<'tcx>(
16451645 } ) ( ) ;
16461646}
16471647
1648- /// The equivalent of [compare_predicate_entailment ], but for associated types
1648+ /// The equivalent of [compare_method_predicate_entailment ], but for associated types
16491649/// instead of associated functions.
16501650fn compare_type_predicate_entailment < ' tcx > (
16511651 tcx : TyCtxt < ' tcx > ,
0 commit comments