Skip to content
This repository has been archived by the owner on Dec 29, 2022. It is now read-only.

thread 'rustc' panicked at 'no entry found for key' #210

Closed
oli-obk opened this issue Mar 11, 2017 · 3 comments
Closed

thread 'rustc' panicked at 'no entry found for key' #210

oli-obk opened this issue Mar 11, 2017 · 3 comments

Comments

@oli-obk
Copy link
Contributor

oli-obk commented Mar 11, 2017

stack backtrace:

   0: core::option::expect_failed
             at /checkout/src/libcore/option.rs:785
   1: rustc_save_analysis::SaveContext::get_expr_data
   2: <rustc_save_analysis::dump_visitor::DumpVisitor<'l, 'tcx, 'll, D>>::process_method_call
   3: syntax::visit::walk_expr
   4: syntax::visit::walk_expr
   5: syntax::visit::walk_expr
   6: syntax::visit::walk_expr
   7: <rustc_save_analysis::dump_visitor::DumpVisitor<'l, 'tcx, 'll, D> as syntax::visit::Visitor<'l>>::visit_expr
   8: <rustc_save_analysis::dump_visitor::DumpVisitor<'l, 'tcx, 'll, D>>::process_method
   9: <rustc_save_analysis::dump_visitor::DumpVisitor<'l, 'tcx, 'll, D>>::process_impl_item
  10: <rustc_save_analysis::dump_visitor::DumpVisitor<'l, 'tcx, 'll, D> as syntax::visit::Visitor<'l>>::visit_item
  11: <rustc_save_analysis::dump_visitor::DumpVisitor<'l, 'tcx, 'll, D> as syntax::visit::Visitor<'l>>::visit_item
  12: rustc_save_analysis::process_crate
  13: <rustc_driver::RustcDefaultCalls as rustc_driver::CompilerCalls<'a>>::build_controller::{{closure}}::{{closure}}
  14: <rustc_driver::RustcDefaultCalls as rustc_driver::CompilerCalls<'a>>::build_controller::{{closure}}
  15: rustc_driver::driver::compile_input::{{closure}}
  16: rustc_driver::driver::phase_3_run_analysis_passes::{{closure}}
  17: rustc_driver::driver::phase_3_run_analysis_passes
  18: rustc_driver::driver::compile_input
  19: rustc_driver::run_compiler
  20: rls::build::BuildQueue::rustc::{{closure}}::{{closure}}
             at src/build.rs:459
  21: rustc_driver::run::{{closure}}
             at /checkout/src/librustc_driver/lib.rs:137
  22: rustc_driver::monitor::{{closure}}
             at /checkout/src/librustc_driver/lib.rs:1064
  23: <std::panic::AssertUnwindSafe<F> as core::ops::FnOnce<()>>::call_once
             at /checkout/src/libstd/panic.rs:296
  24: std::panicking::try::do_call
             at /checkout/src/libstd/panicking.rs:454
  25: __rust_maybe_catch_panic
             at /checkout/src/libpanic_unwind/lib.rs:98
  26: std::panicking::try
             at /checkout/src/libstd/panicking.rs:433
  27: std::panic::catch_unwind
             at /checkout/src/libstd/panic.rs:361
  28: std::thread::Builder::spawn::{{closure}}
             at /checkout/src/libstd/thread/mod.rs:360
  29: <F as alloc::boxed::FnBox<A>>::call_box
             at /checkout/src/liballoc/boxed.rs:638
  30: std::sys::imp::thread::Thread::new::thread_start
             at /checkout/src/liballoc/boxed.rs:648
             at /checkout/src/libstd/sys_common/thread.rs:21
             at /checkout/src/libstd/sys/unix/thread.rs:84
  31: start_thread
  32: __clone

Happens when you use a struct variant pattern for a tuple variant.

@sophiajt
Copy link

"use a struct variant pattern for a tuple variant"

Maybe it's because it's still morning here, but I'm not quite sure I understand. Do you have some sample code that fits this description?

@nrc
Copy link
Member

nrc commented Mar 12, 2017

Could you paste the code needed to repro please? These bugs can sometimes be a bit tricky to repro without the exact code that causes them.

@oli-obk
Copy link
Contributor Author

oli-obk commented Mar 13, 2017

I cannot reproduce after a rustup. Probably related to rust-lang/rust#37787 which fixed that ICE in a different context.

@oli-obk oli-obk closed this as completed Mar 13, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants