-
Notifications
You must be signed in to change notification settings - Fork 13.3k
upvar: Make sure that typeck succeeded before analyzing a closure #20891
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
Conversation
r? @pcwalton (rust_highfive has picked a reviewer for you, use r? to override) |
From IRC:
|
18b8765
to
5a0d98c
Compare
re-r? @nikomatsakis |
If a type that cannot be called as a function is called, and the result is assigned to a variable, the "unexpected callee type" ICE occurs. Fixes rust-lang#20714. Fixes rust-lang#20842. Fixes rust-lang#20862.
5a0d98c
to
7e24b98
Compare
I'm still not particularly keen on this patch. I'd rather make EUV more tolerant somehow. I'm torn between just returning rather than calling |
I apologize for the extreme delay in responding on this bug. Believe it or not I am digging myself out of a github notification hole that has accumulated and only saw @alexcrichton's comments now. |
ping @nikomatsakis |
// option. This file may not be copied, modified, or distributed | ||
// except according to those terms. | ||
|
||
// Related issues: #20714, #20842, #20862 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
20714 is already fixed fwiw
It seems that two out of the three relevant issues have been fixed. Given how old and inactive this PR is, I'm going to close it. Feel free to re-open with a newer version if desired. :) |
If a type that cannot be called as a function is called, and the result is assigned to a variable, the "unexpected callee type" ICE occurs.
Fixes #20714.
Fixes #20842.
Fixes #20862.