Skip to content

Commit f599ab6

Browse files
committed
s/skol_/placeholder_/
1 parent 687c449 commit f599ab6

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/librustc/traits/select.rs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1639,23 +1639,23 @@ impl<'cx, 'gcx, 'tcx> SelectionContext<'cx, 'gcx, 'tcx> {
16391639
) -> bool {
16401640
let poly_trait_predicate = self.infcx()
16411641
.resolve_type_vars_if_possible(&obligation.predicate);
1642-
let (skol_trait_predicate, _) = self.infcx()
1642+
let (placeholder_trait_predicate, _) = self.infcx()
16431643
.replace_bound_vars_with_placeholders(&poly_trait_predicate);
16441644
debug!(
16451645
"match_projection_obligation_against_definition_bounds: \
1646-
skol_trait_predicate={:?}",
1647-
skol_trait_predicate,
1646+
placeholder_trait_predicate={:?}",
1647+
placeholder_trait_predicate,
16481648
);
16491649

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 {
16511651
ty::Projection(ref data) => (data.trait_ref(self.tcx()).def_id, data.substs),
16521652
ty::Opaque(def_id, substs) => (def_id, substs),
16531653
_ => {
16541654
span_bug!(
16551655
obligation.cause.span,
16561656
"match_projection_obligation_against_definition_bounds() called \
16571657
but self-ty is not a projection: {:?}",
1658-
skol_trait_predicate.trait_ref.self_ty()
1658+
placeholder_trait_predicate.trait_ref.self_ty()
16591659
);
16601660
}
16611661
};
@@ -1680,7 +1680,7 @@ impl<'cx, 'gcx, 'tcx> SelectionContext<'cx, 'gcx, 'tcx> {
16801680
self.match_projection(
16811681
obligation,
16821682
bound.clone(),
1683-
skol_trait_predicate.trait_ref.clone(),
1683+
placeholder_trait_predicate.trait_ref.clone(),
16841684
)
16851685
})
16861686
});
@@ -1697,7 +1697,7 @@ impl<'cx, 'gcx, 'tcx> SelectionContext<'cx, 'gcx, 'tcx> {
16971697
let result = self.match_projection(
16981698
obligation,
16991699
bound,
1700-
skol_trait_predicate.trait_ref.clone(),
1700+
placeholder_trait_predicate.trait_ref.clone(),
17011701
);
17021702

17031703
assert!(result);
@@ -1710,12 +1710,12 @@ impl<'cx, 'gcx, 'tcx> SelectionContext<'cx, 'gcx, 'tcx> {
17101710
&mut self,
17111711
obligation: &TraitObligation<'tcx>,
17121712
trait_bound: ty::PolyTraitRef<'tcx>,
1713-
skol_trait_ref: ty::TraitRef<'tcx>,
1713+
placeholder_trait_ref: ty::TraitRef<'tcx>,
17141714
) -> bool {
1715-
debug_assert!(!skol_trait_ref.has_escaping_bound_vars());
1715+
debug_assert!(!placeholder_trait_ref.has_escaping_bound_vars());
17161716
self.infcx
17171717
.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)
17191719
.is_ok()
17201720
}
17211721

0 commit comments

Comments
 (0)