You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the first collates the necessary parts from proptest-arbitrary and proptest and reproduces faithfully the messages from the crater run. Playground.
the second is a bit more minimal, while still being accepted by AST borrowck. It is however, in an effort to simplify the code, partially automatically reduced to focus on only one of these two identical errors. Playground.
The text was updated successfully, but these errors were encountered:
…=pnkfelix
rework how we handle outlives relationships
When we encounter an outlives relationship involving a projection, we use to over-constrain in some cases with region constraints. We also used to evaluate whether the where-clauses in the environment might apply **before** running inference.
We now avoid doing both of those things:
- If there are where-clauses in the environment that might be useful, we add no constraints.
- After inference is done, we check if we wound up inferring values compatible with the where-clause, and make use of them if so.
I realize now that this PR includes some meandering commits and refactorings from when I expected to go in a different direction. If desired, I could try to remove some of those.
Fixes#53121Fixes#53789
r? @pnkfelix
Filing for investigation.
The recent crater run found an interesting case in
proptest-arbitrary
0.2.2, which used to compile with AST borrowck.Crater logs.
There are 2 reproductions:
proptest-arbitrary
andproptest
and reproduces faithfully the messages from the crater run. Playground.The text was updated successfully, but these errors were encountered: