-
Notifications
You must be signed in to change notification settings - Fork 13.3k
typeck has an different notion of reachability from liveness #31617
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
My guess would be liveness using proper dataflow-analysis, and typeck only considering We recently investigated typeck behaviour with @nikomatsakis (or, rather, @nmatsakis did) when trying to replicate it for loops in MIR builder. |
Right - I already checked that. That's the problem - typeck essentially considers all A few alternatives:
|
Both functions currently do not compile with the same mismatched types error. Since there's no longer a difference between the two, I'm going to assume that means this is fixed -- "typeck has an different notion of reachability from liveness" is no longer true, at least based on the code above. Please reopen with an explanation and/or a code example which displays the difference if this is still the case. |
for example:
The text was updated successfully, but these errors were encountered: