Skip to content
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: thread 'rustc' panicked at 'unsized_part_of_type failed even though ty is unsized' #23370

Closed
bitvoid opened this issue Mar 14, 2015 · 2 comments
Labels
I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️

Comments

@bitvoid
Copy link

bitvoid commented Mar 14, 2015

I just got an ICE while working on a testcase for another issue.

enum SomeEnum {
    Something(i8),
    SomethingElse([u8])
}

fn some_function(arg: &SomeEnum) -> () {
    ()
}

fn main() {
    some_function(&SomeEnum::Something(1));
}
<anon>:3:5: 3:24 warning: variant is never used: `SomethingElse`, #[warn(dead_code)] on by default
<anon>:3     SomethingElse([u8])
             ^~~~~~~~~~~~~~~~~~~
<anon>:6:18: 6:21 warning: unused variable: `arg`, #[warn(unused_variables)] on by default
<anon>:6 fn some_function(arg: &SomeEnum) -> () {
                          ^~~
error: internal compiler error: unexpected panic
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: run with `RUST_BACKTRACE=1` for a backtrace
thread 'rustc' panicked at 'unsized_part_of_type failed even though ty is unsized', /home/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/librustc_trans/trans/common.rs:168


playpen: application terminated with error code 101

http://is.gd/qkbk29

@steveklabnik steveklabnik added the I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ label Mar 19, 2015
@frewsxcv
Copy link
Member

Visiting for triage: this is still an issue

@apasel422
Copy link
Contributor

I think this is a duplicate of #16812.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
Projects
None yet
Development

No branches or pull requests

5 participants