@@ -153,15 +153,17 @@ pub(super) fn fulfillment_error_for_stalled<'db>(
153
153
Span :: dummy ( ) ,
154
154
None ,
155
155
) {
156
- Ok ( GoalEvaluation { certainty : Certainty :: Maybe ( MaybeCause :: Ambiguity ) , .. } ) => {
157
- ( FulfillmentErrorCode :: Ambiguity { overflow : None } , true )
158
- }
156
+ Ok ( GoalEvaluation {
157
+ certainty : Certainty :: Maybe { cause : MaybeCause :: Ambiguity , .. } ,
158
+ ..
159
+ } ) => ( FulfillmentErrorCode :: Ambiguity { overflow : None } , true ) ,
159
160
Ok ( GoalEvaluation {
160
161
certainty :
161
- Certainty :: Maybe ( MaybeCause :: Overflow {
162
- suggest_increasing_limit,
163
- keep_constraints : _,
164
- } ) ,
162
+ Certainty :: Maybe {
163
+ cause :
164
+ MaybeCause :: Overflow { suggest_increasing_limit, keep_constraints : _ } ,
165
+ ..
166
+ } ,
165
167
..
166
168
} ) => (
167
169
FulfillmentErrorCode :: Ambiguity { overflow : Some ( suggest_increasing_limit) } ,
@@ -314,7 +316,8 @@ impl<'db> BestObligation<'db> {
314
316
. instantiate_proof_tree_for_nested_goal ( GoalSource :: Misc , obligation. as_goal ( ) ) ;
315
317
// Skip nested goals that aren't the *reason* for our goal's failure.
316
318
match ( self . consider_ambiguities , nested_goal. result ( ) ) {
317
- ( true , Ok ( Certainty :: Maybe ( MaybeCause :: Ambiguity ) ) ) | ( false , Err ( _) ) => { }
319
+ ( true , Ok ( Certainty :: Maybe { cause : MaybeCause :: Ambiguity , .. } ) )
320
+ | ( false , Err ( _) ) => { }
318
321
_ => continue ,
319
322
}
320
323
@@ -456,7 +459,8 @@ impl<'db> ProofTreeVisitor<'db> for BestObligation<'db> {
456
459
let interner = goal. infcx ( ) . interner ;
457
460
// Skip goals that aren't the *reason* for our goal's failure.
458
461
match ( self . consider_ambiguities , goal. result ( ) ) {
459
- ( true , Ok ( Certainty :: Maybe ( MaybeCause :: Ambiguity ) ) ) | ( false , Err ( _) ) => { }
462
+ ( true , Ok ( Certainty :: Maybe { cause : MaybeCause :: Ambiguity , .. } ) ) | ( false , Err ( _) ) => {
463
+ }
460
464
_ => return ControlFlow :: Continue ( ( ) ) ,
461
465
}
462
466
0 commit comments