@@ -1639,23 +1639,23 @@ impl<'cx, 'gcx, 'tcx> SelectionContext<'cx, 'gcx, 'tcx> {
1639
1639
) -> bool {
1640
1640
let poly_trait_predicate = self . infcx ( )
1641
1641
. resolve_type_vars_if_possible ( & obligation. predicate ) ;
1642
- let ( skol_trait_predicate , _) = self . infcx ( )
1642
+ let ( placeholder_trait_predicate , _) = self . infcx ( )
1643
1643
. replace_bound_vars_with_placeholders ( & poly_trait_predicate) ;
1644
1644
debug ! (
1645
1645
"match_projection_obligation_against_definition_bounds: \
1646
- skol_trait_predicate ={:?}",
1647
- skol_trait_predicate ,
1646
+ placeholder_trait_predicate ={:?}",
1647
+ placeholder_trait_predicate ,
1648
1648
) ;
1649
1649
1650
- let ( def_id, substs) = match skol_trait_predicate . trait_ref . self_ty ( ) . sty {
1650
+ let ( def_id, substs) = match placeholder_trait_predicate . trait_ref . self_ty ( ) . sty {
1651
1651
ty:: Projection ( ref data) => ( data. trait_ref ( self . tcx ( ) ) . def_id , data. substs ) ,
1652
1652
ty:: Opaque ( def_id, substs) => ( def_id, substs) ,
1653
1653
_ => {
1654
1654
span_bug ! (
1655
1655
obligation. cause. span,
1656
1656
"match_projection_obligation_against_definition_bounds() called \
1657
1657
but self-ty is not a projection: {:?}",
1658
- skol_trait_predicate . trait_ref. self_ty( )
1658
+ placeholder_trait_predicate . trait_ref. self_ty( )
1659
1659
) ;
1660
1660
}
1661
1661
} ;
@@ -1680,7 +1680,7 @@ impl<'cx, 'gcx, 'tcx> SelectionContext<'cx, 'gcx, 'tcx> {
1680
1680
self . match_projection (
1681
1681
obligation,
1682
1682
bound. clone ( ) ,
1683
- skol_trait_predicate . trait_ref . clone ( ) ,
1683
+ placeholder_trait_predicate . trait_ref . clone ( ) ,
1684
1684
)
1685
1685
} )
1686
1686
} ) ;
@@ -1697,7 +1697,7 @@ impl<'cx, 'gcx, 'tcx> SelectionContext<'cx, 'gcx, 'tcx> {
1697
1697
let result = self . match_projection (
1698
1698
obligation,
1699
1699
bound,
1700
- skol_trait_predicate . trait_ref . clone ( ) ,
1700
+ placeholder_trait_predicate . trait_ref . clone ( ) ,
1701
1701
) ;
1702
1702
1703
1703
assert ! ( result) ;
@@ -1710,12 +1710,12 @@ impl<'cx, 'gcx, 'tcx> SelectionContext<'cx, 'gcx, 'tcx> {
1710
1710
& mut self ,
1711
1711
obligation : & TraitObligation < ' tcx > ,
1712
1712
trait_bound : ty:: PolyTraitRef < ' tcx > ,
1713
- skol_trait_ref : ty:: TraitRef < ' tcx > ,
1713
+ placeholder_trait_ref : ty:: TraitRef < ' tcx > ,
1714
1714
) -> bool {
1715
- debug_assert ! ( !skol_trait_ref . has_escaping_bound_vars( ) ) ;
1715
+ debug_assert ! ( !placeholder_trait_ref . has_escaping_bound_vars( ) ) ;
1716
1716
self . infcx
1717
1717
. at ( & obligation. cause , obligation. param_env )
1718
- . sup ( ty:: Binder :: dummy ( skol_trait_ref ) , trait_bound)
1718
+ . sup ( ty:: Binder :: dummy ( placeholder_trait_ref ) , trait_bound)
1719
1719
. is_ok ( )
1720
1720
}
1721
1721
0 commit comments