-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
ICE on with rustc 1.26.0-nightly (f5631d9ac 2018-03-24) and later #49556
Comments
I have dig into this and found the snippet of code caused this problem: https://github.com/ShisoftResearch/Hivemind/blob/6618ae71c74ebb21f834c68b661b5fca898f8804/src/context/mod.rs#L53 It should produce an error which did not appeared in previous build
This is not the whole story, when I assign I finally able to mitigate the problem by turning the return type from |
I got a possibly same ICE with this code: https://gist.github.com/sinkuu/7d9e6dcf6397546866f367b281562c30 Meta:
Backtrace:
|
This gives me the same ICE: fn iter<'a>(data: &'a [usize]) -> impl Iterator<Item = usize> + 'a {
data.iter().map(|x| x).map(|x| *x)
} However this does not ICE: fn iter<'a>(data: &'a [usize]) -> impl Iterator<Item = usize> + 'a {
data.iter().map(|x| *x).map(|x| x)
} |
The closure in
|
Hi all. #49730 does not fix my issue.
|
@shisoft Sorry, I forgot to test with your case. Though you seem to be using a nightly-2018-03-23 which can never contain unmerged #49730, right? https://github.com/ShisoftResearch/Hivemind/tree/kylo depends on |
Hi, sorry for the slow reply. I will try that again once the branch have been merged. Any ETA on when it will go into nightly? Thanks |
No, it varies due to approval of other PRs. Here is the current queue: https://buildbot2.rust-lang.org/homu/queue/rust |
Fix ICE with impl Trait Fixes rust-lang#49556 (comment). May or may not fix 49556 itself. Closures like `|x: &'a _| x` has `ClosureSubsts` of `fn(&'a _) -> &'(ReScope) _`, so `tcx.note_and_explain_free_region` (called [here](https://github.com/rust-lang/rust/blob/a143462783cec88b7b733e8aa09990bfeb59f754/src/librustc/infer/anon_types/mod.rs#L572)) panics.
Nightly 2018-04-14 contains #49730. Could you reopen if the problem persists? |
As at least one data point, I had the same issue and it was resolved with 2018-04-15. |
I got ICE for sometime and also searched in issues but cannot find a relative one.
Sorry for not able to produce the minimal cases to pin down the actual failing case in my code base by simply reverting my code. x
This issue does not exists in
nightly-2018-03-21
. Error message as follows:meta for 2018-03-21
meta for 2018-03-24
I appreciate any hints and suggestions on helping me to reproduce this issue into minimal case but right now I just can't find out what changes in my code caused this problem. My code base is https://github.com/ShisoftResearch/Hivemind/tree/kylo
The text was updated successfully, but these errors were encountered: