Check projections are well-formed when using projection candidates
This commit is contained in:
parent
87f2f42dc2
commit
b3057f4d5f
13 changed files with 278 additions and 30 deletions
|
@ -323,9 +323,9 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> {
|
|||
_ => return,
|
||||
}
|
||||
|
||||
let result = self
|
||||
.infcx
|
||||
.probe(|_| self.match_projection_obligation_against_definition_bounds(obligation));
|
||||
let result = self.infcx.probe(|_| {
|
||||
self.match_projection_obligation_against_definition_bounds(obligation).is_some()
|
||||
});
|
||||
|
||||
if result {
|
||||
candidates.vec.push(ProjectionCandidate);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue