Skip to content

Commit 3cd286b

Browse files
committed
s/skol_/placeholder_/
1 parent 0e25a68 commit 3cd286b

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
@@ -1682,23 +1682,23 @@ impl<'cx, 'gcx, 'tcx> SelectionContext<'cx, 'gcx, 'tcx> {
16821682
) -> bool {
16831683
let poly_trait_predicate = self.infcx()
16841684
.resolve_type_vars_if_possible(&obligation.predicate);
1685-
let (skol_trait_predicate, _) = self.infcx()
1685+
let (placeholder_trait_predicate, _) = self.infcx()
16861686
.replace_bound_vars_with_placeholders(&poly_trait_predicate);
16871687
debug!(
16881688
"match_projection_obligation_against_definition_bounds: \
1689-
skol_trait_predicate={:?}",
1690-
skol_trait_predicate,
1689+
placeholder_trait_predicate={:?}",
1690+
placeholder_trait_predicate,
16911691
);
16921692

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 {
16941694
ty::Projection(ref data) => (data.trait_ref(self.tcx()).def_id, data.substs),
16951695
ty::Opaque(def_id, substs) => (def_id, substs),
16961696
_ => {
16971697
span_bug!(
16981698
obligation.cause.span,
16991699
"match_projection_obligation_against_definition_bounds() called \
17001700
but self-ty is not a projection: {:?}",
1701-
skol_trait_predicate.trait_ref.self_ty()
1701+
placeholder_trait_predicate.trait_ref.self_ty()
17021702
);
17031703
}
17041704
};
@@ -1723,7 +1723,7 @@ impl<'cx, 'gcx, 'tcx> SelectionContext<'cx, 'gcx, 'tcx> {
17231723
self.match_projection(
17241724
obligation,
17251725
bound.clone(),
1726-
skol_trait_predicate.trait_ref.clone(),
1726+
placeholder_trait_predicate.trait_ref.clone(),
17271727
)
17281728
})
17291729
});
@@ -1740,7 +1740,7 @@ impl<'cx, 'gcx, 'tcx> SelectionContext<'cx, 'gcx, 'tcx> {
17401740
let result = self.match_projection(
17411741
obligation,
17421742
bound,
1743-
skol_trait_predicate.trait_ref.clone(),
1743+
placeholder_trait_predicate.trait_ref.clone(),
17441744
);
17451745

17461746
assert!(result);
@@ -1753,12 +1753,12 @@ impl<'cx, 'gcx, 'tcx> SelectionContext<'cx, 'gcx, 'tcx> {
17531753
&mut self,
17541754
obligation: &TraitObligation<'tcx>,
17551755
trait_bound: ty::PolyTraitRef<'tcx>,
1756-
skol_trait_ref: ty::TraitRef<'tcx>,
1756+
placeholder_trait_ref: ty::TraitRef<'tcx>,
17571757
) -> bool {
1758-
debug_assert!(!skol_trait_ref.has_escaping_bound_vars());
1758+
debug_assert!(!placeholder_trait_ref.has_escaping_bound_vars());
17591759
self.infcx
17601760
.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)
17621762
.is_ok()
17631763
}
17641764

0 commit comments

Comments
 (0)