Skip to content

Instantly share code, notes, and snippets.

@alexreg
Created October 7, 2019 23:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alexreg/54483ab2c86451c0ba36d006f2a13c64 to your computer and use it in GitHub Desktop.
Save alexreg/54483ab2c86451c0ba36d006f2a13c64 to your computer and use it in GitHub Desktop.
thread 'rustc' panicked at 'assertion failed: i < this.fields.count()', src/librustc/ty/layout.rs:2098:17
stack backtrace:
0: <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt
1: core::fmt::write
2: std::io::Write::write_fmt
3: std::panicking::default_hook::{{closure}}
4: std::panicking::default_hook
5: rustc_driver::report_ice
6: std::panicking::rust_panic_with_hook
7: std::panicking::begin_panic
8: rustc::ty::layout::<impl rustc_target::abi::TyLayoutMethods<C> for &rustc::ty::TyS>::field
9: <rustc_target::abi::TyLayout<&rustc::ty::TyS> as rustc_codegen_llvm::type_of::LayoutLlvmExt>::scalar_pair_element_llvm_type
10: rustc_codegen_ssa::base::unsized_info
11: rustc_codegen_ssa::base::coerce_ptr_unsized
12: rustc_codegen_ssa::mir::rvalue::<impl rustc_codegen_ssa::mir::FunctionCx<Bx>>::codegen_rvalue_operand
13: rustc_codegen_ssa::mir::rvalue::<impl rustc_codegen_ssa::mir::FunctionCx<Bx>>::codegen_rvalue
14: rustc_codegen_ssa::mir::codegen_mir
15: rustc_codegen_ssa::base::codegen_instance
16: <rustc::mir::mono::MonoItem as rustc_codegen_ssa::mono_item::MonoItemExt>::define
17: rustc_codegen_llvm::base::compile_codegen_unit::module_codegen
18: rustc::dep_graph::graph::DepGraph::with_task
19: rustc_codegen_llvm::base::compile_codegen_unit
20: rustc_codegen_ssa::base::codegen_crate
21: <rustc_codegen_llvm::LlvmCodegenBackend as rustc_codegen_utils::codegen_backend::CodegenBackend>::codegen_crate
22: rustc::util::common::time
23: rustc_interface::passes::start_codegen
24: rustc::ty::context::tls::enter_global
25: rustc_interface::passes::BoxedGlobalCtxt::access::{{closure}}
26: rustc_interface::passes::create_global_ctxt::{{closure}}
27: rustc_interface::passes::BoxedGlobalCtxt::enter
28: rustc_interface::queries::Query<T>::compute
29: rustc_interface::queries::<impl rustc_interface::interface::Compiler>::ongoing_codegen
30: rustc_interface::interface::run_compiler_in_existing_thread_pool
31: std::thread::local::LocalKey<T>::with
32: scoped_tls::ScopedKey<T>::set
33: syntax::with_globals
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
error: internal compiler error: unexpected panic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment