Skip to content

Commit

Permalink
Auto merge of #115039 - jackh726:impl_compare_add_alias_obligations, …
Browse files Browse the repository at this point in the history
…r=aliemjay

Add projection obligations when comparing impl too

Fixes #115033

In the test, when we ask for WF obligations of `DatasetIter<'a, ArrayBase<D>>`, we get back two important obligations: `[<D as Data>::Elem -> ?1, ?1: 'a]`. If we don't add the projection obligation, `?1` remains unconstrained.

An alternative solution would be to use unnormalized obligations, where we only have one relevant obligation: `<D as Data>::Elem: 'a`. This would leave no inference vars unconstrained.
  • Loading branch information
bors committed Aug 21, 2023
2 parents 0080b8d + e0fc9a4 commit a43a3ec
Showing 0 changed files with 0 additions and 0 deletions.

0 comments on commit a43a3ec

Please sign in to comment.