-
Notifications
You must be signed in to change notification settings - Fork 13k
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 associated type violating its bounds in a blanket impl #54108
Comments
Triage: Still reproduces on current stable and nightly. Also seems like this could be some potential unsoundness. |
@jonas-schievink the potential unsoundness that you posited above: is that based on the part of the description stating that they think Or is it something else that caused you to note that? Because I'll just post a reminder that under the current rustc, we don't check trait bounds eagerly; cc #51626 |
(in other words, #51626 type stuff should not be a source of unsoundness.) |
((I'm tempted to downgrade this (#54108) to P-medium, but I'll wait until I see a response from @jonas-schievink before I make any decision there.)) |
Yeah, instead of getting an |
triage: Downgrading to P-medium until someone can demonstrate actual unsoundness. |
Triage: This is no longer ICE with the latest nightly, marking as E-needs-test. |
When I give this code to
rustc
:I get this output:
(The same crash occurs with
rustc 1.30.0-nightly (2d4e34ca8 2018-09-09)
.)It seems the line
should have resulted in an error stating that the trait bounds for
Size
are not fulfilled, but no such error was generated, and the subsequent use of+
on an expression of typeSize
withSize
as a type not implementingAdd
caused the compiler to panic.The text was updated successfully, but these errors were encountered: