@@ -256,7 +256,7 @@ impl<'a, 'tcx> InferCtxtExt<'tcx> for InferCtxt<'a, 'tcx> {
256256 return ;
257257 }
258258
259- match obligation. predicate . ignore_qualifiers ( ) . skip_binder ( ) . kind ( ) {
259+ match obligation. predicate . ignore_quantifiers ( ) . skip_binder ( ) . kind ( ) {
260260 ty:: PredicateKind :: ForAll ( _) => {
261261 bug ! ( "unexpected predicate: {:?}" , obligation. predicate)
262262 }
@@ -1091,8 +1091,8 @@ impl<'a, 'tcx> InferCtxtPrivExt<'tcx> for InferCtxt<'a, 'tcx> {
10911091
10921092 // FIXME: It should be possible to deal with `ForAll` in a cleaner way.
10931093 let ( cond, error) = match (
1094- cond. ignore_qualifiers ( ) . skip_binder ( ) . kind ( ) ,
1095- error. ignore_qualifiers ( ) . skip_binder ( ) . kind ( ) ,
1094+ cond. ignore_quantifiers ( ) . skip_binder ( ) . kind ( ) ,
1095+ error. ignore_quantifiers ( ) . skip_binder ( ) . kind ( ) ,
10961096 ) {
10971097 ( ty:: PredicateKind :: Trait ( ..) , & ty:: PredicateKind :: Trait ( error, _) ) => {
10981098 ( cond, ty:: Binder :: bind ( error) )
@@ -1105,7 +1105,7 @@ impl<'a, 'tcx> InferCtxtPrivExt<'tcx> for InferCtxt<'a, 'tcx> {
11051105
11061106 for obligation in super :: elaborate_predicates ( self . tcx , std:: iter:: once ( cond) ) {
11071107 if let & ty:: PredicateKind :: Trait ( implication, _) =
1108- obligation. predicate . ignore_qualifiers ( ) . skip_binder ( ) . kind ( )
1108+ obligation. predicate . ignore_quantifiers ( ) . skip_binder ( ) . kind ( )
11091109 {
11101110 let error = error. to_poly_trait_ref ( ) ;
11111111 let implication = ty:: Binder :: bind ( implication) . to_poly_trait_ref ( ) ;
@@ -1187,7 +1187,7 @@ impl<'a, 'tcx> InferCtxtPrivExt<'tcx> for InferCtxt<'a, 'tcx> {
11871187 // this can fail if the problem was higher-ranked, in which
11881188 // cause I have no idea for a good error message.
11891189 if let & ty:: PredicateKind :: Projection ( data) =
1190- predicate. ignore_qualifiers ( ) . skip_binder ( ) . kind ( )
1190+ predicate. ignore_quantifiers ( ) . skip_binder ( ) . kind ( )
11911191 {
11921192 let mut selcx = SelectionContext :: new ( self ) ;
11931193 let ( data, _) = self . replace_bound_vars_with_fresh_vars (
@@ -1480,7 +1480,7 @@ impl<'a, 'tcx> InferCtxtPrivExt<'tcx> for InferCtxt<'a, 'tcx> {
14801480 return ;
14811481 }
14821482
1483- let mut err = match predicate. ignore_qualifiers ( ) . skip_binder ( ) . kind ( ) {
1483+ let mut err = match predicate. ignore_quantifiers ( ) . skip_binder ( ) . kind ( ) {
14841484 & ty:: PredicateKind :: Trait ( data, _) => {
14851485 let trait_ref = ty:: Binder :: bind ( data. trait_ref ) ;
14861486 let self_ty = trait_ref. skip_binder ( ) . self_ty ( ) ;
@@ -1734,7 +1734,7 @@ impl<'a, 'tcx> InferCtxtPrivExt<'tcx> for InferCtxt<'a, 'tcx> {
17341734 obligation : & PredicateObligation < ' tcx > ,
17351735 ) {
17361736 let ( pred, item_def_id, span) = match (
1737- obligation. predicate . ignore_qualifiers ( ) . skip_binder ( ) . kind ( ) ,
1737+ obligation. predicate . ignore_quantifiers ( ) . skip_binder ( ) . kind ( ) ,
17381738 obligation. cause . code . peel_derives ( ) ,
17391739 ) {
17401740 (
0 commit comments