Skip to content

save-analysis with cgmath leads to ICE #41478

Closed
@ishitatsuyuki

Description

@ishitatsuyuki
$ rustc -vV
rustc 1.18.0-dev (252d3da8a 2017-04-22)
binary: rustc
commit-hash: 252d3da8a6c715ccafcf77d83b826f6fb899cfe5
commit-date: 2017-04-22
host: x86_64-unknown-linux-gnu
release: 1.18.0-dev
LLVM version: 4.0
rustc --crate-name cgmath ~/.cargo/registry/src/github.com-1ecc6299db9ec823/cgmath-0.13.0/src/lib.rs --color never --crate-type lib --emit=dep-info,metadata -C debuginfo=2 --cfg feature=\"rustc-serialize\" --cfg feature=\"default\" -C metadata=d3371898a27ffcd7 -C extra-filename=-d3371898a27ffcd7 --out-dir target/rls/debug/deps -L dependency=target/rls/debug/deps --extern rustc_serialize=target/rls/debug/deps/librustc_serialize-11a16e191609bcdb.rmeta --extern approx=target/rls/debug/deps/libapprox-b3f7cf616ce926ae.rmeta --extern num_traits=target/rls/debug/deps/libnum_traits-4c2dc66d8816610d.rmeta --extern rand=target/rls/debug/deps/librand-d22275320cd9f6c2.rmeta --cap-lints allow -Zunstable-options -Zsave-analysis --error-format=json -Zcontinue-parse-after-error
error: internal compiler error: unexpected panic
... (omitted)
note: run with `RUST_BACKTRACE=1` for a backtrace

thread 'rustc' panicked at 'called `Option::unwrap()` on a `None` value', src/libcore/option.rs:329
stack backtrace:
   0: std::sys::imp::backtrace::tracing::imp::unwind_backtrace
   1: std::sys_common::backtrace::_print
   2: std::panicking::default_hook::{{closure}}
   3: std::panicking::default_hook
   4: std::panicking::rust_panic_with_hook
   5: std::panicking::begin_panic
   6: std::panicking::begin_panic_fmt
   7: rust_begin_unwind
   8: core::panicking::panic_fmt
   9: core::panicking::panic
  10: rustc_save_analysis::SaveContext::get_item_data
  11: <rustc_save_analysis::dump_visitor::DumpVisitor<'l, 'tcx, 'll, D> as syntax::visit::Visitor<'l>>::visit_item
  12: <rustc_save_analysis::dump_visitor::DumpVisitor<'l, 'tcx, 'll, D> as syntax::visit::Visitor<'l>>::visit_item
  13: <rustc_save_analysis::DumpHandler<'a> as rustc_save_analysis::SaveHandler>::save
  14: <rustc_driver::RustcDefaultCalls as rustc_driver::CompilerCalls<'a>>::build_controller::{{closure}}::{{closure}}
  15: <rustc_driver::RustcDefaultCalls as rustc_driver::CompilerCalls<'a>>::build_controller::{{closure}}
  16: rustc_driver::driver::compile_input::{{closure}}
  17: rustc_driver::driver::phase_3_run_analysis_passes::{{closure}}
  18: rustc_driver::driver::phase_3_run_analysis_passes
  19: rustc_driver::driver::compile_input
  20: rustc_driver::run_compiler
  21: std::panicking::try::do_call
  22: __rust_maybe_catch_panic
  23: <F as alloc::boxed::FnBox<A>>::call_box
  24: std::sys::imp::thread::Thread::new::thread_start
  25: start_thread
  26: clone

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.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