@@ -153,15 +153,17 @@ pub(super) fn fulfillment_error_for_stalled<'db>(
153153 Span :: dummy ( ) ,
154154 None ,
155155 ) {
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 ) ,
159160 Ok ( GoalEvaluation {
160161 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+ } ,
165167 ..
166168 } ) => (
167169 FulfillmentErrorCode :: Ambiguity { overflow : Some ( suggest_increasing_limit) } ,
@@ -314,7 +316,8 @@ impl<'db> BestObligation<'db> {
314316 . instantiate_proof_tree_for_nested_goal ( GoalSource :: Misc , obligation. as_goal ( ) ) ;
315317 // Skip nested goals that aren't the *reason* for our goal's failure.
316318 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 ( _) ) => { }
318321 _ => continue ,
319322 }
320323
@@ -456,7 +459,8 @@ impl<'db> ProofTreeVisitor<'db> for BestObligation<'db> {
456459 let interner = goal. infcx ( ) . interner ;
457460 // Skip goals that aren't the *reason* for our goal's failure.
458461 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+ }
460464 _ => return ControlFlow :: Continue ( ( ) ) ,
461465 }
462466
0 commit comments