@@ -56,7 +56,7 @@ pub(super) trait GoalKind<'tcx>:
5656 /// Consider a clause, which consists of a "assumption" and some "requirements",
5757 /// to satisfy a goal. If the requirements hold, then attempt to satisfy our
5858 /// goal by equating it with the assumption.
59- fn consider_implied_clause (
59+ fn probe_and_consider_implied_clause (
6060 ecx : & mut EvalCtxt < ' _ , ' tcx > ,
6161 goal : Goal < ' tcx , Self > ,
6262 assumption : ty:: Clause < ' tcx > ,
@@ -73,15 +73,15 @@ pub(super) trait GoalKind<'tcx>:
7373 /// Consider a clause specifically for a `dyn Trait` self type. This requires
7474 /// additionally checking all of the supertraits and object bounds to hold,
7575 /// since they're not implied by the well-formedness of the object type.
76- fn consider_object_bound_candidate (
76+ fn probe_and_consider_object_bound_candidate (
7777 ecx : & mut EvalCtxt < ' _ , ' tcx > ,
7878 goal : Goal < ' tcx , Self > ,
7979 assumption : ty:: Clause < ' tcx > ,
8080 ) -> QueryResult < ' tcx > {
8181 Self :: probe_and_match_goal_against_assumption ( ecx, goal, assumption, |ecx| {
8282 let tcx = ecx. tcx ( ) ;
8383 let ty:: Dynamic ( bounds, _, _) = * goal. predicate . self_ty ( ) . kind ( ) else {
84- bug ! ( "expected object type in `consider_object_bound_candidate `" ) ;
84+ bug ! ( "expected object type in `probe_and_consider_object_bound_candidate `" ) ;
8585 } ;
8686 // FIXME(-Znext-solver=coinductive): Should this be `GoalSource::ImplWhereBound`?
8787 ecx. add_goals (
@@ -557,7 +557,7 @@ impl<'tcx> EvalCtxt<'_, 'tcx> {
557557 candidates : & mut Vec < Candidate < ' tcx > > ,
558558 ) {
559559 for ( i, assumption) in goal. param_env . caller_bounds ( ) . iter ( ) . enumerate ( ) {
560- match G :: consider_implied_clause ( self , goal, assumption, [ ] ) {
560+ match G :: probe_and_consider_implied_clause ( self , goal, assumption, [ ] ) {
561561 Ok ( result) => {
562562 candidates. push ( Candidate { source : CandidateSource :: ParamEnv ( i) , result } )
563563 }
@@ -648,7 +648,7 @@ impl<'tcx> EvalCtxt<'_, 'tcx> {
648648 for assumption in
649649 self . tcx ( ) . item_bounds ( alias_ty. def_id ) . instantiate ( self . tcx ( ) , alias_ty. args )
650650 {
651- match G :: consider_implied_clause ( self , goal, assumption, [ ] ) {
651+ match G :: probe_and_consider_implied_clause ( self , goal, assumption, [ ] ) {
652652 Ok ( result) => {
653653 candidates. push ( Candidate { source : CandidateSource :: AliasBound , result } ) ;
654654 }
@@ -728,7 +728,7 @@ impl<'tcx> EvalCtxt<'_, 'tcx> {
728728 }
729729 ty:: ExistentialPredicate :: Projection ( _)
730730 | ty:: ExistentialPredicate :: AutoTrait ( _) => {
731- match G :: consider_object_bound_candidate (
731+ match G :: probe_and_consider_object_bound_candidate (
732732 self ,
733733 goal,
734734 bound. with_self_ty ( tcx, self_ty) ,
@@ -749,7 +749,11 @@ impl<'tcx> EvalCtxt<'_, 'tcx> {
749749 if let Some ( principal) = bounds. principal ( ) {
750750 let principal_trait_ref = principal. with_self_ty ( tcx, self_ty) ;
751751 self . walk_vtable ( principal_trait_ref, |ecx, assumption, vtable_base, _| {
752- match G :: consider_object_bound_candidate ( ecx, goal, assumption. to_predicate ( tcx) ) {
752+ match G :: probe_and_consider_object_bound_candidate (
753+ ecx,
754+ goal,
755+ assumption. to_predicate ( tcx) ,
756+ ) {
753757 Ok ( result) => candidates. push ( Candidate {
754758 source : CandidateSource :: BuiltinImpl ( BuiltinImplSource :: Object {
755759 vtable_base,
0 commit comments