@@ -1653,7 +1653,7 @@ impl<'tcx> TypeErrCtxt<'_, 'tcx> {
1653
1653
. report ( diag) ;
1654
1654
( false , Mismatch :: Fixed ( "signature" ) )
1655
1655
}
1656
- ValuePairs :: PolyTraitRefs ( _) => ( false , Mismatch :: Fixed ( "trait" ) ) ,
1656
+ ValuePairs :: TraitRefs ( _) => ( false , Mismatch :: Fixed ( "trait" ) ) ,
1657
1657
ValuePairs :: Aliases ( infer:: ExpectedFound { expected, .. } ) => {
1658
1658
( false , Mismatch :: Fixed ( self . tcx . def_descr ( expected. def_id ) ) )
1659
1659
}
@@ -1969,8 +1969,8 @@ impl<'tcx> TypeErrCtxt<'_, 'tcx> {
1969
1969
self . note_and_explain_type_err ( diag, exp_found, cause, span, cause. body_id . to_def_id ( ) ) ;
1970
1970
}
1971
1971
1972
- if let Some ( ValuePairs :: PolyTraitRefs ( exp_found) ) = values
1973
- && let ty:: Closure ( def_id, _) = exp_found. expected . skip_binder ( ) . self_ty ( ) . kind ( )
1972
+ if let Some ( ValuePairs :: TraitRefs ( exp_found) ) = values
1973
+ && let ty:: Closure ( def_id, _) = exp_found. expected . self_ty ( ) . kind ( )
1974
1974
&& let Some ( def_id) = def_id. as_local ( )
1975
1975
&& terr. involves_regions ( )
1976
1976
{
@@ -2188,7 +2188,7 @@ impl<'tcx> TypeErrCtxt<'_, 'tcx> {
2188
2188
infer:: Aliases ( exp_found) => self . expected_found_str ( exp_found) ,
2189
2189
infer:: ExistentialTraitRef ( exp_found) => self . expected_found_str ( exp_found) ,
2190
2190
infer:: ExistentialProjection ( exp_found) => self . expected_found_str ( exp_found) ,
2191
- infer:: PolyTraitRefs ( exp_found) => {
2191
+ infer:: TraitRefs ( exp_found) => {
2192
2192
let pretty_exp_found = ty:: error:: ExpectedFound {
2193
2193
expected : exp_found. expected . print_trait_sugared ( ) ,
2194
2194
found : exp_found. found . print_trait_sugared ( ) ,
0 commit comments