@@ -813,7 +813,7 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> {
813
813
let cause = ObligationCause :: new (
814
814
obligation. cause . span ,
815
815
obligation. cause . body_id ,
816
- ObjectCastObligation ( target) ,
816
+ ObjectCastObligation ( source , target) ,
817
817
) ;
818
818
let outlives = ty:: OutlivesPredicate ( r_a, r_b) ;
819
819
nested. push ( Obligation :: with_depth (
@@ -910,7 +910,7 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> {
910
910
let cause = ObligationCause :: new (
911
911
obligation. cause . span ,
912
912
obligation. cause . body_id ,
913
- ObjectCastObligation ( target) ,
913
+ ObjectCastObligation ( source , target) ,
914
914
) ;
915
915
let outlives = ty:: OutlivesPredicate ( r_a, r_b) ;
916
916
nested. push ( Obligation :: with_depth (
@@ -931,7 +931,7 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> {
931
931
let cause = ObligationCause :: new (
932
932
obligation. cause . span ,
933
933
obligation. cause . body_id ,
934
- ObjectCastObligation ( target) ,
934
+ ObjectCastObligation ( source , target) ,
935
935
) ;
936
936
937
937
let predicate_to_obligation = |predicate| {
0 commit comments