Closed
Description
Minimal example:
fn main() {
let n = 0.3333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333;
}
error: internal compiler error: unexpected panic
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
thread 'rustc' panicked at 'index out of bounds: the len is 40 but the index is 40', ../src/libcore/num/bignum.rs:312
stack backtrace:
1: 0x7ff30d98bbf0 - sys::backtrace::tracing::imp::write::haa19c02b4de52f3bG0t
2: 0x7ff30d9927d5 - panicking::log_panic::_<closure>::closure.41218
3: 0x7ff30d99226f - panicking::log_panic::h527fe484e9de8fe1W7x
4: 0x7ff30d95b8c3 - sys_common::unwind::begin_unwind_inner::h51f64b1a34c60827fTs
5: 0x7ff30d95c228 - sys_common::unwind::begin_unwind_fmt::h0845853a1913f45blSs
6: 0x7ff30d989a41 - rust_begin_unwind
7: 0x7ff30d9da4ff - panicking::panic_fmt::h3967afc085fe8067LFK
8: 0x7ff30d9da6e2 - panicking::panic_bounds_check::h3ef0001c29fc27faREK
9: 0x7ff30d9e3b98 - num::bignum::_<impl>::mul_pow2::hf44130abcdb21a20Rcg
10: 0x7ff30b2ffa36 - middle::const_eval::lit_to_const::hbf4c6ead21bd7490vdn
11: 0x7ff30b2b1dde - middle::const_eval::eval_const_expr_partial::h88510700fb26a214pcm
12: 0x7ff30b2f2bb1 - middle::const_eval::eval_const_expr::h20663b302f1cb1c1WPk
13: 0x7ff30c5c1ece - hair::cx::expr::_<impl>::make_mirror::h291808654ea13ab1aFd
14: 0x7ff30c59488b - build::into::_<impl>::eval_into::h6cb1b5bbafd636bfTob
15: 0x7ff30c5a7a11 - build::stmt::_<impl>::stmts::_<closure>::closure.18489
16: 0x7ff30c580531 - build::block::_<impl>::ast_block::h1282e09e7e411f8fdla
17: 0x7ff30c57d586 - build::construct::h8a4ec3c0bcbd6db2cca
18: 0x7ff30c5aa9de - mir_map::_<impl>::visit_fn::h01af1300e9119117Cid
19: 0x7ff30c5a8a71 - mir_map::_<impl>::visit_item::hcc14ab58582fe303Nfd
20: 0x7ff30c5a80a3 - mir_map::build_mir_for_crate::h293121b3ad2600dfWdd
21: 0x7ff30de93a3f - driver::phase_3_run_analysis_passes::_<closure>::closure.25599
22: 0x7ff30de75813 - middle::ty::context::_<impl>::create_and_enter::create_and_enter::h13716335538836217011
23: 0x7ff30de71251 - driver::phase_3_run_analysis_passes::h5249241190295309167
24: 0x7ff30de46559 - driver::compile_input::h58ee58653fb11a3ehca
25: 0x7ff30de3877b - run_compiler::hd4933b7af1175e4aOwc
26: 0x7ff30de35436 - sys_common::unwind::try::try_fn::try_fn::h5795434642313485966
27: 0x7ff30d989888 - __rust_try
28: 0x7ff30d98118b - sys_common::unwind::try::inner_try::h771fec597ec8f35cNPs
29: 0x7ff30de35790 - boxed::_<impl>::call_box::call_box::h18189923456789545281
30: 0x7ff30d990cd3 - sys::thread::_<impl>::new::thread_start::haf749b76474da6b089w
31: 0x7ff3076474a3 - start_thread
32: 0x7ff30d62013c - clone
33: 0x0 - <unknown>