@@ -71,7 +71,7 @@ pub(super) fn compare_impl_method<'tcx>(
71
71
return ;
72
72
}
73
73
74
- if let Err ( _) = compare_predicate_entailment (
74
+ if let Err ( _) = compare_method_predicate_entailment (
75
75
tcx,
76
76
impl_m,
77
77
impl_m_span,
@@ -150,7 +150,7 @@ pub(super) fn compare_impl_method<'tcx>(
150
150
/// Finally we register each of these predicates as an obligation and check that
151
151
/// they hold.
152
152
#[ instrument( level = "debug" , skip( tcx, impl_m_span, impl_trait_ref) ) ]
153
- fn compare_predicate_entailment < ' tcx > (
153
+ fn compare_method_predicate_entailment < ' tcx > (
154
154
tcx : TyCtxt < ' tcx > ,
155
155
impl_m : & ty:: AssocItem ,
156
156
impl_m_span : Span ,
@@ -337,7 +337,7 @@ fn compare_predicate_entailment<'tcx>(
337
337
if !errors. is_empty ( ) {
338
338
match check_implied_wf {
339
339
CheckImpliedWfMode :: Check => {
340
- return compare_predicate_entailment (
340
+ return compare_method_predicate_entailment (
341
341
tcx,
342
342
impl_m,
343
343
impl_m_span,
@@ -374,7 +374,7 @@ fn compare_predicate_entailment<'tcx>(
374
374
// becomes a hard error (i.e. ideally we'd just call `resolve_regions_and_report_errors`
375
375
match check_implied_wf {
376
376
CheckImpliedWfMode :: Check => {
377
- return compare_predicate_entailment (
377
+ return compare_method_predicate_entailment (
378
378
tcx,
379
379
impl_m,
380
380
impl_m_span,
@@ -407,7 +407,7 @@ enum CheckImpliedWfMode {
407
407
/// re-check with `Skip`, and emit a lint if it succeeds.
408
408
Check ,
409
409
/// 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
411
411
/// the reason that we had failed earlier during `Check` was due to the impl
412
412
/// having stronger requirements than the trait.
413
413
Skip ,
@@ -550,13 +550,13 @@ pub(super) fn collect_trait_impl_trait_tys<'tcx>(
550
550
// Unify the whole function signature. We need to do this to fully infer
551
551
// the lifetimes of the return type, but do this after unifying just the
552
552
// return types, since we want to avoid duplicating errors from
553
- // `compare_predicate_entailment `.
553
+ // `compare_method_predicate_entailment `.
554
554
match ocx. eq ( & cause, param_env, trait_fty, impl_fty) {
555
555
Ok ( ( ) ) => { }
556
556
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
558
558
// 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
560
560
// when normalization fails.
561
561
let emitted = report_trait_method_mismatch (
562
562
infcx,
@@ -1645,7 +1645,7 @@ pub(super) fn compare_impl_ty<'tcx>(
1645
1645
} ) ( ) ;
1646
1646
}
1647
1647
1648
- /// The equivalent of [compare_predicate_entailment ], but for associated types
1648
+ /// The equivalent of [compare_method_predicate_entailment ], but for associated types
1649
1649
/// instead of associated functions.
1650
1650
fn compare_type_predicate_entailment < ' tcx > (
1651
1651
tcx : TyCtxt < ' tcx > ,
0 commit comments