ICE with generic new-type structs #4188

brendanzab opened this Issue Dec 14, 2012 · 1 comment

2 participants

struct Foo<T>(T);

fn main() {
    let _ = Foo(42);
$ RUST_LOG=rustc=1,::rt::backtrace rustc --out-dir . src/
rust: task failed at 'unknown node type in type_use', /usr/local/src/rust/src/librustc/middle/trans/
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
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/
@pcwalton pcwalton was assigned Dec 14, 2012
@pcwalton pcwalton closed this Dec 15, 2012

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=…
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment