@@ -255,7 +255,7 @@ impl<'a, 'tcx> InferCtxtExt<'tcx> for InferCtxt<'a, 'tcx> {
255255 return ;
256256 }
257257
258- let bound_predicate = obligation. predicate . bound_atom ( self . tcx ) ;
258+ let bound_predicate = obligation. predicate . bound_atom ( ) ;
259259 match bound_predicate. skip_binder ( ) {
260260 ty:: PredicateAtom :: Trait ( trait_predicate, _) => {
261261 let trait_predicate = bound_predicate. rebind ( trait_predicate) ;
@@ -1079,7 +1079,7 @@ impl<'a, 'tcx> InferCtxtPrivExt<'tcx> for InferCtxt<'a, 'tcx> {
10791079 }
10801080
10811081 // FIXME: It should be possible to deal with `ForAll` in a cleaner way.
1082- let bound_error = error. bound_atom ( self . tcx ) ;
1082+ let bound_error = error. bound_atom ( ) ;
10831083 let ( cond, error) = match ( cond. skip_binders ( ) , bound_error. skip_binder ( ) ) {
10841084 ( ty:: PredicateAtom :: Trait ( ..) , ty:: PredicateAtom :: Trait ( error, _) ) => {
10851085 ( cond, bound_error. rebind ( error) )
@@ -1091,7 +1091,7 @@ impl<'a, 'tcx> InferCtxtPrivExt<'tcx> for InferCtxt<'a, 'tcx> {
10911091 } ;
10921092
10931093 for obligation in super :: elaborate_predicates ( self . tcx , std:: iter:: once ( cond) ) {
1094- let bound_predicate = obligation. predicate . bound_atom ( self . tcx ) ;
1094+ let bound_predicate = obligation. predicate . bound_atom ( ) ;
10951095 if let ty:: PredicateAtom :: Trait ( implication, _) = bound_predicate. skip_binder ( ) {
10961096 let error = error. to_poly_trait_ref ( ) ;
10971097 let implication = bound_predicate. rebind ( implication. trait_ref ) ;
@@ -1172,7 +1172,7 @@ impl<'a, 'tcx> InferCtxtPrivExt<'tcx> for InferCtxt<'a, 'tcx> {
11721172 //
11731173 // this can fail if the problem was higher-ranked, in which
11741174 // cause I have no idea for a good error message.
1175- let bound_predicate = predicate. bound_atom ( self . tcx ) ;
1175+ let bound_predicate = predicate. bound_atom ( ) ;
11761176 if let ty:: PredicateAtom :: Projection ( data) = bound_predicate. skip_binder ( ) {
11771177 let mut selcx = SelectionContext :: new ( self ) ;
11781178 let ( data, _) = self . replace_bound_vars_with_fresh_vars (
@@ -1459,7 +1459,7 @@ impl<'a, 'tcx> InferCtxtPrivExt<'tcx> for InferCtxt<'a, 'tcx> {
14591459 return ;
14601460 }
14611461
1462- let bound_predicate = predicate. bound_atom ( self . tcx ) ;
1462+ let bound_predicate = predicate. bound_atom ( ) ;
14631463 let mut err = match bound_predicate. skip_binder ( ) {
14641464 ty:: PredicateAtom :: Trait ( data, _) => {
14651465 let self_ty = data. trait_ref . self_ty ( ) ;
0 commit comments