Don't elaborate non-obligations into obligations
This commit is contained in:
parent
96bd50dd47
commit
1ce4b37900
20 changed files with 112 additions and 131 deletions
|
@ -470,7 +470,7 @@ impl<'tcx> EvalCtxt<'_, 'tcx> {
|
|||
for assumption in
|
||||
elaborate_predicates(tcx, bounds.iter().map(|bound| bound.with_self_ty(tcx, self_ty)))
|
||||
{
|
||||
match G::consider_object_bound_candidate(self, goal, assumption.predicate) {
|
||||
match G::consider_object_bound_candidate(self, goal, assumption) {
|
||||
Ok(result) => {
|
||||
candidates.push(Candidate { source: CandidateSource::BuiltinImpl, result })
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue