-
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 when calling one method without self from another with const generic types and incremental compilation #61338
Comments
Reduced: #![feature(const_generics)]
struct Struct<T>(T);
impl<T, const N: usize> Struct<[T; N]> {
fn f() {}
fn g() { <Struct<[T; N]>>::f(); }
}
fn main() {} cc @varkor |
Latest nightly shows a different compile error:
|
Does not ICE anymore on playground -> https://play.rust-lang.org/?version=nightly&mode=debug&edition=2018&gist=2b645bb8d4c71206ce6eef1a16ea3390. |
Can confirm it still ICE's with the latest nightly both in my little testing crate, and my larger project. |
Maybe a compiler flag? Not sure if playground uses cc @shepmaster |
The playground attempts to build each night, but it sometimes fails. You can always review exactly what version you are using in the channel dropdown: For what it’s worth, I don’t see the reduced example producing an error locally or in the playground.
|
Thank you very much, @shepmaster It is clear now that incremental compilation is the source of this behavior. |
A new project with the following code:
Causes the following error:
The text was updated successfully, but these errors were encountered: