Skip to content

ICE: debuginfo: Could not find scope info for node NodeExpr(expr(11: false)) #29696

Closed
@tamird

Description

@tamird

Attempting to compile src/test/run-pass/issue-24956.rs with -g results in:

$ RUST_BACKTRACE=1 rustc -g issue-24956.rs
issue-24956.rs:17:9: 17:19 error: internal compiler error: debuginfo: Could not find scope info for node NodeExpr(expr(11: false))
issue-24956.rs:17         STATIC_FOO => 3,
                          ^~~~~~~~~~
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 'Box<Any>', ../src/libsyntax/diagnostic.rs:176
stack backtrace:
   1:        0x10e51bdd8 - sys::backtrace::tracing::imp::write::h0a2d6c10405f14e9s9s
   2:        0x10e521fdf - panicking::log_panic::_<closure>::closure.39695
   3:        0x10e521aa5 - panicking::log_panic::hc7c01ece5f01a427xYw
   4:        0x10e4e3a06 - sys_common::unwind::begin_unwind_inner::h8b3944d8990dc3440cs
   5:        0x10be0a12a - sys_common::unwind::begin_unwind::begin_unwind::h13732395294583850347
   6:        0x10be0a0f2 - diagnostic::_<impl>::span_bug::h517cd016f9a1ed4fqGA
   7:        0x10b1ef1a4 - session::_<impl>::span_bug::he9a8248b6024575cKuv
   8:        0x10ab62a6b - trans::debuginfo::metadata::scope_metadata::hbe206e9154976e55kqy
   9:        0x10ab6eda3 - trans::debuginfo::source_loc::set_source_location::h87d06462311d22f9jRz
  10:        0x10aa9b611 - trans::build::ICmp::hfbfc8712d90babd4DLk
  11:        0x10aaaa5d1 - trans::base::compare_scalar_types::h91a7aae35f439196TQg
  12:        0x10abbd45b - trans::_match::compile_submatch_continue::hf1d84208b19597e7yjK
  13:        0x10abb9d57 - trans::_match::compile_submatch::h301ed15dba6570f3WdK
  14:        0x10abbb95b - trans::_match::compile_submatch_continue::hf1d84208b19597e7yjK
  15:        0x10abb9d57 - trans::_match::compile_submatch::h301ed15dba6570f3WdK
  16:        0x10abc184d - trans::_match::trans_match_inner::h6e919563d302a987XNK
  17:        0x10ab7e464 - trans::expr::trans_rvalue_dps_unadjusted::h0d37ce8304585490oiC
  18:        0x10aacd443 - trans::expr::trans_into::h0caa679ba3e22002c7A
  19:        0x10ab4ef51 - trans::controlflow::trans_stmt_semi::h689eb1686b7c1d95XSv
  20:        0x10aac970d - trans::controlflow::trans_block::h010ef1d4a6bc1278TTv
  21:        0x10aac8779 - trans::base::trans_closure::h1b8238a0c1fd2d3eSki
  22:        0x10aac9fd9 - trans::base::trans_fn::ha2076e0043058a5bhui
  23:        0x10aace253 - trans::base::trans_item::hbe6d1c72a9835b3amTi
  24:        0x10aadc7ef - trans::base::trans_crate::h6d3c629924521d07iFj
  25:        0x10a700907 - driver::phase_4_translate_to_llvm::h37590c404928bcefSPa
  26:        0x10a6fa765 - driver::phase_3_run_analysis_passes::_<closure>::closure.21968
  27:        0x10a6dc3fe - middle::ty::context::_<impl>::create_and_enter::create_and_enter::h1419945709347326969
  28:        0x10a6d750b - driver::phase_3_run_analysis_passes::h7016458686077072509
  29:        0x10a6b944e - driver::compile_input::h53e997668b2475778ba
  30:        0x10a806fa0 - run_compiler::hd4ec16dad9c77b96vqc
  31:        0x10a803f64 - sys_common::unwind::try::try_fn::try_fn::h2258659004909451683
  32:        0x10e519988 - __rust_try
  33:        0x10e50dd0e - sys_common::unwind::try::inner_try::h1141072c5215138ey9r
  34:        0x10a804347 - boxed::_<impl>::call_box::call_box::h15543862226430518769
  35:        0x10e52136d - sys::thread::_<impl>::new::thread_start::h4b522afb0aaa36f3Kvw
  36:     0x7fff891689b0 - _pthread_body
  37:     0x7fff8916892d - _pthread_start

Metadata

Metadata

Assignees

No one assigned

    Labels

    I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions