ICE with generic new-type structs #4188

Closed
brendanzab opened this Issue Dec 14, 2012 · 1 comment

2 participants

@brendanzab
struct Foo<T>(T);

fn main() {
    let _ = Foo(42);
}
$ RUST_LOG=rustc=1,::rt::backtrace rustc --out-dir . src/test.rs
rust: task failed at 'unknown node type in type_use', /usr/local/src/rust/src/librustc/middle/trans/type_use.rs:139
error: internal compiler error: unexpected failure
note: the compiler hit an unexpected failure path. this is a bug
note: try running with RUST_LOG=rustc=1,::rt::backtrace to get further details and report the results to github.com/mozilla/rust/issues
rust: task failed at 'explicit failure', /usr/local/src/rust/src/librustc/rustc.rc:483
rust: domain main @0x7fd7fa00bc10 root task failed
rust: task failed at 'killed', /usr/local/src/rust/src/libcore/task/mod.rs:630
@pcwalton pcwalton was assigned Dec 14, 2012
@pcwalton pcwalton closed this Dec 15, 2012
@pcwalton

Fixed in incoming

@erickt erickt pushed a commit to erickt/rust that referenced this issue Dec 16, 2012
@pcwalton pcwalton librustc: Fix type_use for generic newtype structs. Closes #4188. rs=…
…bugfix
41c0d70
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment