Closed
Description
The following code causes an ICE:
enum SomeEnum {
E
}
fn main() {
E { name: "foobar" };
}
compiler: rustc 0.12.0-nightly (d7e1bb5 2014-09-21 01:00:29 +0000)
OS: Linux 3.13.0-35-generic x86_64 (ubuntu 14.04 LTS)
full output with backtrack:
error: internal compiler error: ID not mapped to struct fields: variant E in E (id=5)
note: the compiler hit an unexpected failure path. this is a bug.
note: we would appreciate a bug report: http://doc.rust-lang.org/complement-bugreport.html
note: run with `RUST_BACKTRACE=1` for a backtrace
task 'rustc' failed at 'Box<Any>', /home/rustbuild/src/rust-buildbot/slave/nightly-linux/build/src/libsyntax/diagnostic.rs:169
stack backtrace:
1: 0x7fc23e95df00 - rt::backtrace::imp::write::hb40e767174eadc9blLq
2: 0x7fc23e9610c0 - failure::on_fail::hab6209505fea7a58N6q
3: 0x7fc243077f80 - unwind::begin_unwind_inner::h3a7e8417aad82c7eMTd
4: 0x7fc23f70b450 - unwind::begin_unwind::h2392538768877619269
5: 0x7fc23f70bbc0 - diagnostic::Handler::bug::hbcf500f6b0a7b557wjF
6: 0x7fc2436ca780 - driver::session::Session::bug::h0f635b08aa66c6feeQx
7: 0x7fc243932c10 - middle::ty::lookup_struct_fields::h0404830706d3f8e3c1H
8: 0x7fc243c772e0 - middle::typeck::check::check_expr_with_unifier::hbcb91288bec55a2csXV
9: 0x7fc243ccadf0 - middle::typeck::check::check_stmt::hf5c084201e7fa2b846X
10: 0x7fc243c3f700 - middle::typeck::check::check_block_with_expected::h2574fbf2342efdb2hbY
11: 0x7fc243c3a890 - middle::typeck::check::check_fn::h41bca712826f247fmDS
12: 0x7fc243c3a6a0 - middle::typeck::check::check_bare_fn::h854b4341f0f8841bpsS
13: 0x7fc243c34620 - middle::typeck::check::check_item::he10ec73ffea798b14ZS
14: 0x7fc243c39f40 - middle::typeck::check::check_item_types::h757d0292ac6a701dnrS
15: 0x7fc2436e07d0 - util::common::time::h7040980569714169789
16: 0x7fc243ee3250 - middle::typeck::check_crate::h3c78e9fb1a6da400cDk
17: 0x7fc243f4cc10 - driver::driver::phase_3_run_analysis_passes::h01e80bc9274a9fc096w
18: 0x7fc243f47f50 - driver::driver::compile_input::h644c4bcdb8d4fa416Nw
19: 0x7fc243fc9e40 - driver::run_compiler::hd9154f69e0f25652kFA
20: 0x7fc243fc9d20 - driver::main_args::closure.146572
21: 0x7fc2436f9e70 - task::TaskBuilder<S>::try_future::closure.101814
22: 0x7fc2436f9c60 - task::TaskBuilder<S>::spawn_internal::closure.101785
23: 0x7fc2433c7540 - task::spawn_opts::closure.8457
24: 0x7fc2430ce390 - rust_try_inner
25: 0x7fc2430ce380 - rust_try
26: 0x7fc243075580 - unwind::try::haa9a6e4d3a3bf10cuId
27: 0x7fc2430753e0 - task::Task::run::h18e39631c20de002cYc
28: 0x7fc2433c72b0 - task::spawn_opts::closure.8397
29: 0x7fc243076fd0 - thread::thread_start::hfdbefd9910b77f41rid
30: 0x7fc23dd040c0 - start_thread
31: 0x7fc242d3ef89 - __clone
32: 0x0 - <unknown>
Metadata
Metadata
Assignees
Labels
No labels