-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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 with generic associated type #60654
Comments
Hasn't the feature gate issue been fixed? :| |
I've removed the nomination and added this to the tracking issue for GATs #44265. The current impl is highly incomplete and ICEs are, sadly, expected. Also, I verified that a feature gate is indeed required. |
triage: P-medium |
I don't know if I get you wrong, but the example above ICEs on stable, beta and nightly without feature gate |
@nikomatsakis @hellow554 oops, looks like I accidentally left the feature gate in there when I tried it out, but it produces the same ICE when it is omitted as well. |
No, niko edited your question. |
Oh, I guess I was indeed incorreect. I tried it on play but didn't notice that, after the "correct" error, it goes on to print an ICE. |
What about adding the I-nominated tag again? |
I'm not sure why we would nominate this for discussion. Yes, it is an ICE (and an ICE that occurs without the user adding a feature gate), but the message pretty clearly states that you're using an unstable feature. It would be great to fix it so that it issues the error diagnostic without ICEing, but I wouldn't re-prioritize that work above |
assigning to self since its a clear annoyance |
triage: P-medium. (dupe of #61064) |
…t, r=varkor Dont ICE on an attempt to use GAT without feature gate Fix rust-lang#60654
…t, r=varkor Dont ICE on an attempt to use GAT without feature gate Fix rust-lang#60654
…t, r=varkor Dont ICE on an attempt to use GAT without feature gate Fix rust-lang#60654
…t, r=varkor Dont ICE on an attempt to use GAT without feature gate Fix rust-lang#60654
(the remaining bug, when the feature gate is enabled, is tracked in issue #62521) |
The following minimal example causes an internal compiler error.
Error in question:
rustc version:
This error was encountered on stable, but I can confirm that it also occurs on the latest nightly (
1.36.0-nightly (cfdc84a00 2019-05-07)
).The text was updated successfully, but these errors were encountered: