Closed
Description
rustc 1.17.0-nightly (6f10e2f63 2017-03-14)
Backtrace and last log statement before panic:
INFO:rustc_metadata::creader: resolving crate `extern crate rayon as rayon`
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
note: run with `RUST_BACKTRACE=1` for a backtrace
thread 'rustc' panicked at 'called `Option::unwrap()` on a `None` value', /checkout/src/libcore/option.rs:323
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
stack backtrace:
0: rustc_metadata::creader::CrateLoader::resolve_crate
1: <rustc_metadata::creader::CrateLoader<'a> as rustc::middle::cstore::CrateLoader>::process_item
2: rustc_resolve::build_reduced_graph::<impl rustc_resolve::Resolver<'a>>::build_reduced_graph_for_item
3: <rustc_resolve::build_reduced_graph::BuildReducedGraphVisitor<'a, 'b> as syntax::visit::Visitor<'a>>::visit_item
4: <rustc_resolve::build_reduced_graph::BuildReducedGraphVisitor<'a, 'b> as syntax::visit::Visitor<'a>>::visit_item
5: rustc_resolve::macros::<impl syntax::ext::base::Resolver for rustc_resolve::Resolver<'a>>::visit_expansion
6: syntax::ext::expand::MacroExpander::collect_invocations
7: syntax::ext::expand::MacroExpander::expand
8: syntax::ext::expand::MacroExpander::expand_crate
9: rustc_driver::driver::phase_2_configure_and_expand::{{closure}}
10: rustc_driver::driver::phase_2_configure_and_expand
11: rustc_driver::driver::compile_input
12: rustc_driver::run_compiler
13: std::panicking::try::do_call
14: __rust_maybe_catch_panic
at /checkout/src/libpanic_unwind/lib.rs:98
15: <F as alloc::boxed::FnBox<A>>::call_box
16: std::sys::imp::thread::Thread::new::thread_start
at /checkout/src/liballoc/boxed.rs:650
at /checkout/src/libstd/sys_common/thread.rs:21
at /checkout/src/libstd/sys/unix/thread.rs:84
17: start_thread
18: clone
error: Could not compile `img-dup`.
To learn more, run the command again with --verbose.
I have the code that caused the ICE (including Cargo.lock) branched off here: https://github.com/abonander/img-dup/tree/ice_mar_2017
@jseyfried I'd like to work on this one, first step will be to attempt building with a debug-mode rustc to get the exact line number.