@@ -1165,7 +1165,10 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> {
1165
1165
origin,
1166
1166
trait_bound. clone ( ) ,
1167
1167
ty:: Binder ( skol_trait_ref. clone ( ) ) ) {
1168
- Ok ( InferOk { .. } ) => { }
1168
+ Ok ( InferOk { obligations, .. } ) => {
1169
+ // FIXME Once obligations start getting generated, they ought to be propagated.
1170
+ assert ! ( obligations. is_empty( ) ) ;
1171
+ }
1169
1172
Err ( _) => { return false ; }
1170
1173
}
1171
1174
@@ -2454,7 +2457,11 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> {
2454
2457
origin,
2455
2458
expected_trait_ref. clone ( ) ,
2456
2459
obligation_trait_ref. clone ( ) ) {
2457
- Ok ( InferOk { .. } ) => Ok ( ( ) ) ,
2460
+ Ok ( InferOk { obligations, .. } ) => {
2461
+ // FIXME Once obligations start getting generated, they ought tobe propagated.
2462
+ assert ! ( obligations. is_empty( ) ) ;
2463
+ Ok ( ( ) )
2464
+ } ,
2458
2465
Err ( e) => Err ( OutputTypeParameterMismatch ( expected_trait_ref, obligation_trait_ref, e) )
2459
2466
}
2460
2467
}
@@ -2771,7 +2778,11 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> {
2771
2778
origin,
2772
2779
poly_trait_ref,
2773
2780
obligation. predicate . to_poly_trait_ref ( ) ) {
2774
- Ok ( InferOk { .. } ) => Ok ( ( ) ) ,
2781
+ Ok ( InferOk { obligations, .. } ) => {
2782
+ // FIXME Once obligations start getting generated, they ought to be propagated.
2783
+ assert ! ( obligations. is_empty( ) ) ;
2784
+ Ok ( ( ) )
2785
+ } ,
2775
2786
Err ( _) => Err ( ( ) ) ,
2776
2787
}
2777
2788
}
0 commit comments