@@ -2265,7 +2265,7 @@ impl<'cx, 'gcx, 'tcx> SelectionContext<'cx, 'gcx, 'tcx> {
22652265 fn confirm_builtin_candidate ( & mut self ,
22662266 obligation : & TraitObligation < ' tcx > ,
22672267 has_nested : bool )
2268- -> VtableBuiltinData < ' tcx , PredicateObligation < ' tcx > >
2268+ -> VtableBuiltinData < PredicateObligation < ' tcx > >
22692269 {
22702270 debug ! ( "confirm_builtin_candidate({:?}, {:?})" ,
22712271 obligation, has_nested) ;
@@ -2303,8 +2303,7 @@ impl<'cx, 'gcx, 'tcx> SelectionContext<'cx, 'gcx, 'tcx> {
23032303 debug ! ( "confirm_builtin_candidate: obligations={:?}" ,
23042304 obligations) ;
23052305
2306- let self_ty = self . infcx . shallow_resolve ( obligation. predicate . skip_binder ( ) . self_ty ( ) ) ;
2307- VtableBuiltinData { ty : self_ty, nested : obligations }
2306+ VtableBuiltinData { nested : obligations }
23082307 }
23092308
23102309 /// This handles the case where a `impl Foo for ..` impl is being used.
@@ -2611,7 +2610,7 @@ impl<'cx, 'gcx, 'tcx> SelectionContext<'cx, 'gcx, 'tcx> {
26112610
26122611 fn confirm_builtin_unsize_candidate ( & mut self ,
26132612 obligation : & TraitObligation < ' tcx > , )
2614- -> Result < VtableBuiltinData < ' tcx , PredicateObligation < ' tcx > > , SelectionError < ' tcx > >
2613+ -> Result < VtableBuiltinData < PredicateObligation < ' tcx > > , SelectionError < ' tcx > >
26152614 {
26162615 let tcx = self . tcx ( ) ;
26172616
@@ -2814,7 +2813,7 @@ impl<'cx, 'gcx, 'tcx> SelectionContext<'cx, 'gcx, 'tcx> {
28142813 _ => bug ! ( )
28152814 } ;
28162815
2817- Ok ( VtableBuiltinData { ty : source , nested : nested } )
2816+ Ok ( VtableBuiltinData { nested : nested } )
28182817 }
28192818
28202819 ///////////////////////////////////////////////////////////////////////////
0 commit comments