Closed
Description
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 'assertion failed: !unsize', /checkout/src/librustc_typeck/check/mod.rs:2185
stack backtrace:
0: std::sys::imp::backtrace::tracing::imp::unwind_backtrace
at /checkout/src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:49
1: std::sys_common::backtrace::_print
at /checkout/src/libstd/sys_common/backtrace.rs:71
2: std::panicking::default_hook::{{closure}}
at /checkout/src/libstd/sys_common/backtrace.rs:60
at /checkout/src/libstd/panicking.rs:355
3: std::panicking::default_hook
at /checkout/src/libstd/panicking.rs:365
4: std::panicking::rust_panic_with_hook
at /checkout/src/libstd/panicking.rs:549
5: std::panicking::begin_panic
6: rustc_typeck::check::FnCtxt::try_index_step
7: rustc_typeck::check::method::confirm::ConfirmContext::confirm
8: rustc_typeck::check::method::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::lookup_method
9: rustc_typeck::check::FnCtxt::check_expr_kind
10: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_lvalue_pref
11: rustc_typeck::check::FnCtxt::check_stmt
12: rustc_typeck::check::FnCtxt::check_block_with_expected::{{closure}}
13: rustc_typeck::check::FnCtxt::check_block_with_expected
14: rustc_typeck::check::FnCtxt::check_expr_kind
15: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_lvalue_pref
16: rustc_typeck::check::FnCtxt::check_return_expr
17: rustc_typeck::check::check_fn
18: rustc_typeck::check::typeck_tables_of
19: rustc::ty::maps::<impl rustc::ty::maps::queries::typeck_tables_of<'tcx>>::try_get
20: rustc::ty::maps::TyCtxtAt::typeck_tables_of
21: rustc::ty::maps::<impl rustc::ty::context::TyCtxt<'a, 'tcx, 'lcx>>::typeck_tables_of
22: rustc_typeck::check::typeck_item_bodies
23: rustc::ty::maps::<impl rustc::ty::maps::queries::typeck_item_bodies<'tcx>>::try_get
24: rustc::ty::maps::TyCtxtAt::typeck_item_bodies
25: rustc::ty::maps::<impl rustc::ty::context::TyCtxt<'a, 'tcx, 'lcx>>::typeck_item_bodies
26: rustc_typeck::check_crate
27: rustc_driver::driver::phase_3_run_analysis_passes::{{closure}}
28: rustc_driver::driver::phase_3_run_analysis_passes
29: rustc_driver::driver::compile_input
30: rustc_driver::run_compiler
31: std::panicking::try::do_call
32: __rust_maybe_catch_panic
at /checkout/src/libpanic_unwind/lib.rs:98
33: <F as alloc::boxed::FnBox<A>>::call_box
34: std::sys::imp::thread::Thread::new::thread_start
at /checkout/src/liballoc/boxed.rs:658
at /checkout/src/libstd/sys_common/thread.rs:21
at /checkout/src/libstd/sys/unix/thread.rs:84
35: start_thread
36: clone
error: Could not compile `image`.
Cc @eddyb