Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upSlightly-too-long lifetime for Loan inferred #18
Comments
This comment has been minimized.
This comment has been minimized.
|
Interesting. This does seem like a case where SSA-style rewriting would help; I wonder if there is another solution. The constraints that arise are roughly like this:
Ignoring This is an interesting effect. I'm not sure how best to fix it. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
alexanderjsummers commentedSep 22, 2017
In the following code, it doesn't seem correct that the first Loan struct computed includes the line
START/6- it seems that that value oflistis dead by that point, and the lifetime of the borrow onxshouldn't extend beyond the penultimate statement.