@@ -87,8 +87,11 @@ pub trait Delegate: Sized {
87
87
input : <Self :: Cx as Cx >:: Input ,
88
88
) -> <Self :: Cx as Cx >:: Result ;
89
89
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 (
92
95
cx : Self :: Cx ,
93
96
input : <Self :: Cx as Cx >:: Input ,
94
97
) -> <Self :: Cx as Cx >:: Result ;
@@ -885,7 +888,7 @@ impl<D: Delegate<Cx = X>, X: Cx> SearchGraph<D> {
885
888
}
886
889
887
890
debug ! ( "encountered stack overflow" ) ;
888
- D :: on_stack_overflow ( cx, input)
891
+ D :: stack_overflow_result ( cx, input)
889
892
}
890
893
891
894
/// 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> {
1024
1027
RebaseReason :: Ambiguity => {
1025
1028
* result = D :: propagate_ambiguity ( cx, input, * result) ;
1026
1029
}
1027
- RebaseReason :: Overflow => * result = D :: on_fixpoint_overflow ( cx, input) ,
1030
+ RebaseReason :: Overflow => * result = D :: fixpoint_overflow_result ( cx, input) ,
1028
1031
RebaseReason :: ReachedFixpoint ( None ) => { }
1029
1032
RebaseReason :: ReachedFixpoint ( Some ( path_kind) ) => {
1030
1033
if !popped_head. usages . is_single ( path_kind) {
@@ -1353,7 +1356,7 @@ impl<D: Delegate<Cx = X>, X: Cx> SearchGraph<D, X> {
1353
1356
i += 1 ;
1354
1357
if i >= D :: FIXPOINT_STEP_LIMIT {
1355
1358
debug ! ( "canonical cycle overflow" ) ;
1356
- let result = D :: on_fixpoint_overflow ( cx, input) ;
1359
+ let result = D :: fixpoint_overflow_result ( cx, input) ;
1357
1360
self . rebase_provisional_cache_entries ( cx, & stack_entry, RebaseReason :: Overflow ) ;
1358
1361
return EvaluationResult :: finalize ( stack_entry, encountered_overflow, result) ;
1359
1362
}
0 commit comments