This repository was archived by the owner on Dec 29, 2022. It is now read-only.
This repository was archived by the owner on Dec 29, 2022. It is now read-only.
rls/rustc panicked at 'Box<Any>' #757
Closed
Description
Not sure if this is the right place to report this (instead of rust).
Reproducer:
fn main() {
let k1 = non_existing_func();
let k1_slice = &k1.0; // k1.0 also would be enough to trigger this
}
thread 'rustc' panicked at 'Box<Any>', librustc_errors/lib.rs:482:9
stack backtrace:
0: 0x105eff513 - std::sys::unix::backtrace::tracing::imp::unwind_backtrace::habc93374f46b96c6
1: 0x105ef6622 - std::sys_common::backtrace::_print::h02aa7f33cc8eb31c
2: 0x105efbf1d - std::panicking::default_hook::{{closure}}::h8ff31a99a0d9dc53
3: 0x105efbba8 - std::panicking::default_hook::h33497023b2540abf
4: 0x1044c4320 - core::ops::function::Fn::call::ha2628313b19b40ae
5: 0x105efc3e0 - std::panicking::rust_panic_with_hook::hfb782cc2d42c2525
6: 0x1033685ed - std::panicking::begin_panic::hf4cda7295ceca195
7: 0x1033664d5 - rustc_errors::Handler::span_bug::heb16940ecae81948
8: 0x10337de3d - rustc::session::opt_span_bug_fmt::{{closure}}::h8bdfc47a8d96d736
9: 0x10337dbc0 - rustc::ty::context::tls::with_opt::{{closure}}::h8a2988a6cacc1900
10: 0x103368692 - <std::thread::local::LocalKey<T>>::try_with::hee3d0dfc74a98f73
11: 0x103368614 - <std::thread::local::LocalKey<T>>::with::hd6ce7938bb0a788a
12: 0x10337db04 - rustc::ty::context::tls::with::h7249606af53101d8
13: 0x10337db81 - rustc::ty::context::tls::with_opt::h40a870cbd5e36fcc
14: 0x10337dd04 - rustc::session::opt_span_bug_fmt::h5d0a813fd2fdf49c
15: 0x10337dca7 - rustc::session::span_bug_fmt::h65f3de703c327652
16: 0x1033bdb73 - <rustc_save_analysis::dump_visitor::DumpVisitor<'l, 'tcx, 'll, O> as syntax::visit::Visitor<'l>>::visit_expr::h4088b7a2ecc33ea2
17: 0x1033bfb0d - <rustc_save_analysis::dump_visitor::DumpVisitor<'l, 'tcx, 'll, O> as syntax::visit::Visitor<'l>>::visit_local::hfed04439eba914aa
18: 0x10339d93e - <rustc_save_analysis::dump_visitor::DumpVisitor<'l, 'tcx, 'll, O>>::nest_tables::h6f1dfa1d884dc07d
19: 0x1033b4ec7 - <rustc_save_analysis::dump_visitor::DumpVisitor<'l, 'tcx, 'll, O> as syntax::visit::Visitor<'l>>::visit_item::h119d835b7c869e41
20: 0x1033afcea - <rustc_save_analysis::dump_visitor::DumpVisitor<'l, 'tcx, 'll, O> as syntax::visit::Visitor<'l>>::visit_mod::h88d56c1ff08e4fdb
21: 0x1033d7b97 - <rustc_save_analysis::CallbackHandler<'b> as rustc_save_analysis::SaveHandler>::save::he2a6ea4116b40599
22: 0x101f6758d - rustc::dep_graph::graph::DepGraph::with_ignore::h89cfabcf1e7476cd
23: 0x1020267b7 - <rls::build::rustc::RlsRustcCalls as rustc_driver::CompilerCalls<'a>>::build_controller::{{closure}}::hba00b07d5aa8f78a
24: 0x1031d3b7d - rustc_driver::driver::compile_input::{{closure}}::hfbfb3128fc6a2626
25: 0x10315fcaf - rustc::ty::context::TyCtxt::create_and_enter::h0857b9abf3fd96d6
26: 0x1031d1e82 - rustc_driver::driver::compile_input::h4216943f96293be0
27: 0x1031ee2ee - rustc_driver::run_compiler::h9a8e91adda5e234f
28: 0x10203ce92 - std::sys_common::backtrace::__rust_begin_short_backtrace::h4b2a991917de1f87
29: 0x102030964 - std::panicking::try::do_call::h693a628f263770df
30: 0x105f1724e - __rust_maybe_catch_panic
31: 0x1020c6d3d - <F as alloc::boxed::FnBox<A>>::call_box::h2c51470a3a35a1f0
32: 0x105f0bebb - std::sys::unix::thread::Thread::new::thread_start::h28014739efd3d89b
33: 0x7fff74b826c0 - _pthread_body
34: 0x7fff74b8256c - _pthread_start
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: rustc 1.26.0-nightly (2789b067d 2018-03-06) running on x86_64-apple-darwin
Metadata
Metadata
Assignees
Labels
No labels