Skip to content

Commit 15e95c0

Browse files
committed
rename function
1 parent 239f33e commit 15e95c0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

compiler/rustc_trait_selection/src/traits/select/candidate_assembly.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> {
389389
for bound in matching_bounds {
390390
// FIXME(oli-obk): it is suspicious that we are dropping the constness and
391391
// polarity here.
392-
let wc = self.evaluate_where_clause(stack, bound.map_bound(|t| t.trait_ref))?;
392+
let wc = self.where_clause_may_apply(stack, bound.map_bound(|t| t.trait_ref))?;
393393
if wc.may_apply() {
394394
candidates.vec.push(ParamCandidate(bound));
395395
}

compiler/rustc_trait_selection/src/traits/select/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1481,7 +1481,7 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> {
14811481
.map_err(|_| ())
14821482
}
14831483

1484-
fn evaluate_where_clause<'o>(
1484+
fn where_clause_may_apply<'o>(
14851485
&mut self,
14861486
stack: &TraitObligationStack<'o, 'tcx>,
14871487
where_clause_trait_ref: ty::PolyTraitRef<'tcx>,

0 commit comments

Comments
 (0)