rust icon indicating copy to clipboard operation
rust copied to clipboard

internal compiler error preventing servo from compiling on OS X 10.8

Open bdaehlie opened this issue 13 years ago • 5 comments

Compiling servo fails on OS X 10.8 due to an internal compiler error.

rust: task failed at 'index out of bounds: the len is 0 but the index is 0', /Users/josh/src/mozilla/rust/src/librustc/middle/trans/_match.rs:1283 error: internal compiler error: unexpected failure

This happens with current rust trunk, usually while compiling "servo-gfx".

bdaehlie avatar Apr 29 '13 22:04 bdaehlie

Here's a log with RUST_LOG=rustc::middle::trans: https://gist.github.com/sfowler/5485802

sethfowler avatar Apr 30 '13 00:04 sethfowler

This also appears on linux

ILyoan avatar Apr 30 '13 07:04 ILyoan

rust: ~"Representing: core::result::Result<@?,()>"

I wonder if I did something subtly wrong with pattern-matching on nullable-pointer enums (d0451eebc).

jld avatar Apr 30 '13 17:04 jld

In answer to my own question: Yes, I did.

jld avatar Apr 30 '13 17:04 jld

This test case is smaller than servo:

pub fn main() {
        match Left(@17) {
                Right(()) => {}
                _ => {}
        }
}

jld avatar Apr 30 '13 17:04 jld