@@ -1682,23 +1682,23 @@ impl<'cx, 'gcx, 'tcx> SelectionContext<'cx, 'gcx, 'tcx> {
1682
1682
) -> bool {
1683
1683
let poly_trait_predicate = self . infcx ( )
1684
1684
. resolve_type_vars_if_possible ( & obligation. predicate ) ;
1685
- let ( skol_trait_predicate , _) = self . infcx ( )
1685
+ let ( placeholder_trait_predicate , _) = self . infcx ( )
1686
1686
. replace_bound_vars_with_placeholders ( & poly_trait_predicate) ;
1687
1687
debug ! (
1688
1688
"match_projection_obligation_against_definition_bounds: \
1689
- skol_trait_predicate ={:?}",
1690
- skol_trait_predicate ,
1689
+ placeholder_trait_predicate ={:?}",
1690
+ placeholder_trait_predicate ,
1691
1691
) ;
1692
1692
1693
- let ( def_id, substs) = match skol_trait_predicate . trait_ref . self_ty ( ) . sty {
1693
+ let ( def_id, substs) = match placeholder_trait_predicate . trait_ref . self_ty ( ) . sty {
1694
1694
ty:: Projection ( ref data) => ( data. trait_ref ( self . tcx ( ) ) . def_id , data. substs ) ,
1695
1695
ty:: Opaque ( def_id, substs) => ( def_id, substs) ,
1696
1696
_ => {
1697
1697
span_bug ! (
1698
1698
obligation. cause. span,
1699
1699
"match_projection_obligation_against_definition_bounds() called \
1700
1700
but self-ty is not a projection: {:?}",
1701
- skol_trait_predicate . trait_ref. self_ty( )
1701
+ placeholder_trait_predicate . trait_ref. self_ty( )
1702
1702
) ;
1703
1703
}
1704
1704
} ;
@@ -1723,7 +1723,7 @@ impl<'cx, 'gcx, 'tcx> SelectionContext<'cx, 'gcx, 'tcx> {
1723
1723
self . match_projection (
1724
1724
obligation,
1725
1725
bound. clone ( ) ,
1726
- skol_trait_predicate . trait_ref . clone ( ) ,
1726
+ placeholder_trait_predicate . trait_ref . clone ( ) ,
1727
1727
)
1728
1728
} )
1729
1729
} ) ;
@@ -1740,7 +1740,7 @@ impl<'cx, 'gcx, 'tcx> SelectionContext<'cx, 'gcx, 'tcx> {
1740
1740
let result = self . match_projection (
1741
1741
obligation,
1742
1742
bound,
1743
- skol_trait_predicate . trait_ref . clone ( ) ,
1743
+ placeholder_trait_predicate . trait_ref . clone ( ) ,
1744
1744
) ;
1745
1745
1746
1746
assert ! ( result) ;
@@ -1753,12 +1753,12 @@ impl<'cx, 'gcx, 'tcx> SelectionContext<'cx, 'gcx, 'tcx> {
1753
1753
& mut self ,
1754
1754
obligation : & TraitObligation < ' tcx > ,
1755
1755
trait_bound : ty:: PolyTraitRef < ' tcx > ,
1756
- skol_trait_ref : ty:: TraitRef < ' tcx > ,
1756
+ placeholder_trait_ref : ty:: TraitRef < ' tcx > ,
1757
1757
) -> bool {
1758
- debug_assert ! ( !skol_trait_ref . has_escaping_bound_vars( ) ) ;
1758
+ debug_assert ! ( !placeholder_trait_ref . has_escaping_bound_vars( ) ) ;
1759
1759
self . infcx
1760
1760
. at ( & obligation. cause , obligation. param_env )
1761
- . sup ( ty:: Binder :: dummy ( skol_trait_ref ) , trait_bound)
1761
+ . sup ( ty:: Binder :: dummy ( placeholder_trait_ref ) , trait_bound)
1762
1762
. is_ok ( )
1763
1763
}
1764
1764
0 commit comments