Closed
Description
I get an ICE if I checkout this commit (note - library is a work in progress, but i committed exactly where I got the ICE) and run cargo test
. The error is:
<std macros>:8:12: 154:35 error: cannot apply unary operator `!` to type `&[u8]`
<std macros>:8 if !$cond {
<std macros>:9 fail!($($arg),+)
<std macros>:10 }
<std macros>:11 );
<std macros>:12 )
error: internal compiler error: unexpected failure
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 'index out of bounds: the len is 12 but the index is 12', /home/rustbuild/src/rust-buildbot/slave/nightly-linux/build/src/libsyntax/lib.rs:1
I'm running today's nightly build of rustc (rustc 0.12.0-pre-nightly (d30001d04 2014-08-16 00:46:15 +0000)
), and using a recent-ish version of Cargo (cargo 0.0.1-pre-nightly (b272701 2014-08-14 23:16:18 -0700)
).
Running with RUST_BACKTRACE=1
gives:
stack backtrace:
1: 0x7f196752fa60 - rt::backtrace::imp::write::h915f70b87af05b8cmxr
2: 0x7f1967532b00 - failure::on_fail::h3bfbb66e809f10e63Sr
3: 0x7f1967d09ee0 - unwind::begin_unwind_inner::hdda436f89ca4acd6Zhe
4: 0x7f1967d09bd0 - unwind::begin_unwind_fmt::hb8e515de17081e67pfe
5: 0x7f1967d09b90 - rust_begin_unwind
6: 0x7f1967d4fa90 - failure::begin_unwind::h1c162896c5429cfbYDk
7: 0x7f1967d53730 - failure::fail_bounds_check::h8e9ee7819434fe19aCk
8: 0x7f1966142c80 - codemap::FileMap::get_line::h19b3f017dda66d96qzE
9: 0x7f196614d950 - diagnostic::emit::h3e86c6133df605f2j0F
10: 0x7f196614a1c0 - diagnostic::EmitterWriter.Emitter::emit::h58a90c7e6af80dd0QVF
11: 0x7f19661485f0 - diagnostic::Handler::emit::h2e5607c086da9d01fDF
12: 0x7f1966141480 - diagnostic::SpanHandler::span_err::ha9729a9b17106068urF
13: 0x7f19686531a0 - middle::typeck::infer::InferCtxt<'a>::type_error_message_str_with_expected::hc33c9099d20b534atde
14: 0x7f1968701930 - middle::typeck::infer::InferCtxt<'a>::type_error_message::h6af320b34ce8ad0eUke
15: 0x7f1968735220 - middle::typeck::check::check_expr_with_unifier::check_user_unop::closure.123804
16: 0x7f1968734760 - middle::typeck::check::check_expr_with_unifier::lookup_op_method::hb7de34575e112e04HbW
17: 0x7f19687142c0 - middle::typeck::check::check_expr_with_unifier::check_user_unop::h7fb43db6395c7721BqW
18: 0x7f1968706960 - middle::typeck::check::check_expr_with_unifier::h7f07d1d05896e44fSXV
19: 0x7f1968706960 - middle::typeck::check::check_expr_with_unifier::h7f07d1d05896e44fSXV
20: 0x7f19687656a0 - middle::typeck::check::check_stmt::h139e8f1cea959a0502X
21: 0x7f19686cf610 - middle::typeck::check::check_block_with_expected::h32b2d067c318c94ad7X
22: 0x7f1968706960 - middle::typeck::check::check_expr_with_unifier::h7f07d1d05896e44fSXV
23: 0x7f19686cf610 - middle::typeck::check::check_block_with_expected::h32b2d067c318c94ad7X
24: 0x7f19686cb3a0 - middle::typeck::check::check_fn::h11b95bd8147ec11f3dT
25: 0x7f1968714de0 - middle::typeck::check::check_expr_with_unifier::check_expr_fn::h0589615023e0987dLvW
26: 0x7f1968706960 - middle::typeck::check::check_expr_with_unifier::h7f07d1d05896e44fSXV
27: 0x7f19687042c0 - middle::typeck::check::check_argument_types::ha6ecc6e8415348b0xmV
28: 0x7f1968706960 - middle::typeck::check::check_expr_with_unifier::h7f07d1d05896e44fSXV
29: 0x7f19687656a0 - middle::typeck::check::check_stmt::h139e8f1cea959a0502X
30: 0x7f19686cf610 - middle::typeck::check::check_block_with_expected::h32b2d067c318c94ad7X
31: 0x7f19686cb3a0 - middle::typeck::check::check_fn::h11b95bd8147ec11f3dT
32: 0x7f19686cb0c0 - middle::typeck::check::check_bare_fn::h0b6077c308262260I2S
33: 0x7f19686c4220 - middle::typeck::check::check_item::habadeb79d560f4d0QBT
34: 0x7f19686c5f10 - visit::walk_item::h15187993146872906571
35: 0x7f19686c5f10 - visit::walk_item::h15187993146872906571
36: 0x7f19686caec0 - middle::typeck::check::check_item_types::h63a60aa7829eefedZ1S
37: 0x7f19680e3300 - util::common::time::h2328891505148832078
38: 0x7f19688d8b50 - middle::typeck::check_crate::h266f9d5cd5ece381vFk
39: 0x7f19689a6180 - driver::driver::phase_3_run_analysis_passes::h53949348bfafe8ffJfz
40: 0x7f19689a12c0 - driver::driver::compile_input::hd2d14ec13437de9cP1y
41: 0x7f1968a4e150 - driver::run_compiler::he03a385a4310d17aJzC
42: 0x7f1968a4e060 - driver::main_args::closure.137214
43: 0x7f1968a60a30 - task::TaskBuilder<S>::try_future::closure.138375
44: 0x7f1968a60830 - task::TaskBuilder<S>::spawn_internal::closure.138352
45: 0x7f19694afb30 - task::spawn_opts::closure.8325
46: 0x7f1967d61f70 - rust_try_inner
47: 0x7f1967d61f60 - rust_try
48: 0x7f1967d07540 - unwind::try::hc4ccde5733fe2f0cf6d
49: 0x7f1967d072e0 - task::Task::run::h4d1bcb29f70db0c3xcd
50: 0x7f19694af8f0 - task::spawn_opts::closure.8271
51: 0x7f1967d09120 - thread::thread_start::h8729f7243e18bd84jBd
52: 0x7f1966fbf060 - start_thread
53: 0x7f19679d8489 - __clone
54: 0x0 - <unknown>