-
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 on generic trait impl for aliased array type #58212
Labels
A-const-eval
Area: Constant evaluation (MIR interpretation)
C-bug
Category: This is a bug.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Comments
jonas-schievink
added
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
C-bug
Category: This is a bug.
labels
Feb 6, 2019
Minified it a little bit. If one remove the use std::io::{empty, Read};
trait Foo {
fn foo();
}
impl Foo for [u8; 10] {
fn foo() {
let mut result: Self = [0; 10];
empty().read(&mut result).unwrap();
}
} |
The bug also happens on beta (of course).
|
cc @oli-obk |
Possible dup of #57796 |
aoikonomopoulos
pushed a commit
to aoikonomopoulos/rust
that referenced
this issue
Feb 26, 2019
This is required at the very least in order to evaluate associated constants for arrays (see rust-lang#58212).
Centril
added a commit
to Centril/rust
that referenced
this issue
Feb 27, 2019
Normalize the type Self resolves to in an impl This is required at the very least in order to evaluate associated constants for arrays. Fixes rust-lang#57796 Fixes rust-lang#58212. r? @oli-obk cc @hellow554
Centril
added a commit
to Centril/rust
that referenced
this issue
Feb 27, 2019
Normalize the type Self resolves to in an impl This is required at the very least in order to evaluate associated constants for arrays. Fixes rust-lang#57796 Fixes rust-lang#58212. r? @oli-obk cc @hellow554
Centril
added a commit
to Centril/rust
that referenced
this issue
Feb 27, 2019
Normalize the type Self resolves to in an impl This is required at the very least in order to evaluate associated constants for arrays. Fixes rust-lang#57796 Fixes rust-lang#58212. r? @oli-obk cc @hellow554
Centril
added a commit
to Centril/rust
that referenced
this issue
Feb 27, 2019
Normalize the type Self resolves to in an impl This is required at the very least in order to evaluate associated constants for arrays. Fixes rust-lang#57796 Fixes rust-lang#58212. r? @oli-obk cc @hellow554
Centril
added a commit
to Centril/rust
that referenced
this issue
Feb 27, 2019
Normalize the type Self resolves to in an impl This is required at the very least in order to evaluate associated constants for arrays. Fixes rust-lang#57796 Fixes rust-lang#58212. r? @oli-obk cc @hellow554
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
A-const-eval
Area: Constant evaluation (MIR interpretation)
C-bug
Category: This is a bug.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Following snippet is sufficient to trigger an ICE on both stable 1.32 and nightly 1.34
Meta
rustc 1.32.0 (9fda7c2 2019-01-16) running on x86_64-pc-windows-msvc
Backtrace:
The text was updated successfully, but these errors were encountered: