rename function
This commit is contained in:
parent
239f33ea5b
commit
15e95c0b7f
@ -389,7 +389,7 @@ fn assemble_candidates_from_caller_bounds<'o>(
|
|||||||
for bound in matching_bounds {
|
for bound in matching_bounds {
|
||||||
// FIXME(oli-obk): it is suspicious that we are dropping the constness and
|
// FIXME(oli-obk): it is suspicious that we are dropping the constness and
|
||||||
// polarity here.
|
// polarity here.
|
||||||
let wc = self.evaluate_where_clause(stack, bound.map_bound(|t| t.trait_ref))?;
|
let wc = self.where_clause_may_apply(stack, bound.map_bound(|t| t.trait_ref))?;
|
||||||
if wc.may_apply() {
|
if wc.may_apply() {
|
||||||
candidates.vec.push(ParamCandidate(bound));
|
candidates.vec.push(ParamCandidate(bound));
|
||||||
}
|
}
|
||||||
|
@ -1481,7 +1481,7 @@ fn match_normalize_trait_ref(
|
|||||||
.map_err(|_| ())
|
.map_err(|_| ())
|
||||||
}
|
}
|
||||||
|
|
||||||
fn evaluate_where_clause<'o>(
|
fn where_clause_may_apply<'o>(
|
||||||
&mut self,
|
&mut self,
|
||||||
stack: &TraitObligationStack<'o, 'tcx>,
|
stack: &TraitObligationStack<'o, 'tcx>,
|
||||||
where_clause_trait_ref: ty::PolyTraitRef<'tcx>,
|
where_clause_trait_ref: ty::PolyTraitRef<'tcx>,
|
||||||
|
Loading…
Reference in New Issue
Block a user