@@ -87,8 +87,11 @@ pub trait Delegate: Sized {
8787 input : <Self :: Cx as Cx >:: Input ,
8888 ) -> <Self :: Cx as Cx >:: Result ;
8989 fn is_initial_provisional_result ( result : <Self :: Cx as Cx >:: Result ) -> Option < PathKind > ;
90- fn on_stack_overflow ( cx : Self :: Cx , input : <Self :: Cx as Cx >:: Input ) -> <Self :: Cx as Cx >:: Result ;
91- fn on_fixpoint_overflow (
90+ fn stack_overflow_result (
91+ cx : Self :: Cx ,
92+ input : <Self :: Cx as Cx >:: Input ,
93+ ) -> <Self :: Cx as Cx >:: Result ;
94+ fn fixpoint_overflow_result (
9295 cx : Self :: Cx ,
9396 input : <Self :: Cx as Cx >:: Input ,
9497 ) -> <Self :: Cx as Cx >:: Result ;
@@ -885,7 +888,7 @@ impl<D: Delegate<Cx = X>, X: Cx> SearchGraph<D> {
885888 }
886889
887890 debug ! ( "encountered stack overflow" ) ;
888- D :: on_stack_overflow ( cx, input)
891+ D :: stack_overflow_result ( cx, input)
889892 }
890893
891894 /// When reevaluating a goal with a changed provisional result, all provisional cache entry
@@ -1024,7 +1027,7 @@ impl<D: Delegate<Cx = X>, X: Cx> SearchGraph<D, X> {
10241027 RebaseReason :: Ambiguity => {
10251028 * result = D :: propagate_ambiguity ( cx, input, * result) ;
10261029 }
1027- RebaseReason :: Overflow => * result = D :: on_fixpoint_overflow ( cx, input) ,
1030+ RebaseReason :: Overflow => * result = D :: fixpoint_overflow_result ( cx, input) ,
10281031 RebaseReason :: ReachedFixpoint ( None ) => { }
10291032 RebaseReason :: ReachedFixpoint ( Some ( path_kind) ) => {
10301033 if !popped_head. usages . is_single ( path_kind) {
@@ -1353,7 +1356,7 @@ impl<D: Delegate<Cx = X>, X: Cx> SearchGraph<D, X> {
13531356 i += 1 ;
13541357 if i >= D :: FIXPOINT_STEP_LIMIT {
13551358 debug ! ( "canonical cycle overflow" ) ;
1356- let result = D :: on_fixpoint_overflow ( cx, input) ;
1359+ let result = D :: fixpoint_overflow_result ( cx, input) ;
13571360 self . rebase_provisional_cache_entries ( cx, & stack_entry, RebaseReason :: Overflow ) ;
13581361 return EvaluationResult :: finalize ( stack_entry, encountered_overflow, result) ;
13591362 }
0 commit comments