Skip to content

Instantly share code, notes, and snippets.

@pvdrz
Last active February 1, 2020 14:19
Show Gist options
  • Save pvdrz/add4b2eb5da058b39cda774fdb677041 to your computer and use it in GitHub Desktop.
Save pvdrz/add4b2eb5da058b39cda774fdb677041 to your computer and use it in GitHub Desktop.
thread 'rustc' panicked at 'called `Result::unwrap()` on an `Err` value: "read_option: expected 0 for None or 1 for Some"', src/librustc_metadata/rmeta/decoder.rs:225:9
stack backtrace:
0: 0x7fc9d0c10313 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h66f6e8480585dc51
1: 0x7fc9d0c45fec - core::fmt::write::heedf53e364631398
2: 0x7fc9d0c0b885 - std::io::Write::write_fmt::h7812f34d3fb40dd0
3: 0x7fc9d0be77b5 - std::panicking::default_hook::{{closure}}::hc53bde5034054f22
4: 0x7fc9d0be74c0 - std::panicking::default_hook::h3384b1cc95191773
5: 0x7fc9d1300ae9 - rustc_driver::report_ice::h51ee98aae05b572a
6: 0x7fc9d0be7fad - std::panicking::rust_panic_with_hook::h9d9bfc48fc8a3bea
7: 0x7fc9d0be7ac0 - rust_begin_unwind
8: 0x7fc9d0c4cbd1 - core::panicking::panic_fmt::h4c0aa82b5f57a464
9: 0x7fc9d0c4cc63 - core::result::unwrap_failed::hcfeccde0040080fa
10: 0x7fc9d4b88b62 - rustc_metadata::rmeta::decoder::<impl rustc_metadata::rmeta::Lazy<T>>::decode::h8c3a250ee7f95966
11: 0x7fc9d4c7ed1b - rustc_metadata::rmeta::decoder::CrateMetadata::get_optimized_mir::h6e3c4a0994c598e6
12: 0x7fc9d4ba5676 - rustc_metadata::rmeta::decoder::cstore_impl::provide_extern::optimized_mir::he5c49c200c63c41d
13: 0x7fc9d44378a7 - rustc::ty::query::__query_compute::optimized_mir::h280fdc784caaf280
14: 0x7fc9d4628c47 - rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt>::get_query::h5be0b35f15f7e241
15: 0x7fc9d46d0ab3 - rustc_mir::interpret::eval_context::InterpCx<M>::load_mir::h486fb67131460d27
16: 0x7fc9d481216f - rustc_mir::const_eval::eval_queries::const_eval_raw_provider::h9390b5957acba009
17: 0x7fc9d4437b93 - rustc::ty::query::__query_compute::const_eval_raw::h666c59e963f2621d
18: 0x7fc9d4690766 - rustc::ty::context::tls::with_context::{{closure}}::h32ae2bb87f271836
19: 0x7fc9d45fe53a - rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt>::get_query::h238306ca6e08236f
20: 0x7fc9d48112e3 - rustc_mir::const_eval::eval_queries::const_eval_validated_provider::hd755f9980a187d1d
21: 0x7fc9d4438cc3 - rustc::ty::query::__query_compute::const_eval_validated::he3be8eab21a83cb4
22: 0x7fc9d468fb26 - rustc::ty::context::tls::with_context::{{closure}}::h2f5ce18aae8d4f69
23: 0x7fc9d463d3c8 - rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt>::get_query::h7cd8e0ce28ac5d8d
24: 0x7fc9d481107e - rustc_mir::const_eval::eval_queries::const_eval_validated_provider::hd755f9980a187d1d
25: 0x7fc9d544ea4a - rustc::ty::query::__query_compute::const_eval_validated::h40f194e80e389b0e
26: 0x7fc9d565aa8a - rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors for rustc::ty::query::queries::const_eval_validated>::compute::h31e39e301035da79
27: 0x7fc9d5112855 - rustc::dep_graph::graph::DepGraph::with_task_impl::h289ebf9fb661850a
28: 0x7fc9d5569219 - rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt>::get_query::he31d06b3d6d8ec2a
29: 0x7fc9d54cea81 - rustc::mir::interpret::queries::<impl rustc::ty::context::TyCtxt>::const_eval_instance::heb28227f44cde2b7
30: 0x7fc9d54ce65b - rustc::mir::interpret::queries::<impl rustc::ty::context::TyCtxt>::const_eval_resolve::hc69e77a14ff3a7eb
31: 0x7fc9d520a2ce - <rustc::traits::project::AssocTypeNormalizer as rustc::ty::fold::TypeFolder>::fold_const::he15ca5d6a2669c04
32: 0x7fc9d518b203 - rustc::ty::structural_impls::<impl rustc::ty::fold::TypeFoldable for &rustc::ty::TyS>::super_fold_with::h2266a437d526c250
33: 0x7fc9d5209d54 - <rustc::traits::project::AssocTypeNormalizer as rustc::ty::fold::TypeFolder>::fold_ty::hfd0eaf509d46fe63
34: 0x7fc9d517c2d6 - rustc::ty::fold::TypeFoldable::fold_with::h8a28511a704200d4
35: 0x7fc9d520991d - rustc::traits::project::normalize_with_depth::h8a2b283dde895f58
36: 0x7fc9d52d76ae - rustc::traits::select::SelectionContext::match_impl::h4d16e2061a2e55a3
37: 0x7fc9d56ae866 - rustc::infer::InferCtxt::probe::h208d18c62c1a5f62
38: 0x7fc9d563b960 - rustc::ty::trait_def::<impl rustc::ty::context::TyCtxt>::for_each_relevant_impl::h83874cde2bdfe5a1
39: 0x7fc9d52d1900 - rustc::traits::select::SelectionContext::assemble_candidates_from_impls::h48cd08405164e072
40: 0x7fc9d52cf957 - rustc::traits::select::SelectionContext::assemble_candidates::hee3346e64daee1da
41: 0x7fc9d52cd916 - rustc::traits::select::SelectionContext::candidate_from_obligation_no_cache::hc99d8dfa8cb2adfd
42: 0x7fc9d514985c - rustc::dep_graph::graph::DepGraph::with_anon_task::h7b0e72cf308c77a0
43: 0x7fc9d52cc97e - rustc::traits::select::SelectionContext::candidate_from_obligation::h0aa807d4ae58f234
44: 0x7fc9d52cb7b0 - rustc::traits::select::SelectionContext::evaluate_stack::hb843f59ed886b864
45: 0x7fc9d514940e - rustc::dep_graph::graph::DepGraph::with_anon_task::h77bc4658575b2283
46: 0x7fc9d52cab9f - rustc::traits::select::SelectionContext::evaluate_predicate_recursively::h355ae5e2d88286ae
47: 0x7fc9d52c93bd - rustc::traits::select::SelectionContext::evaluate_predicates_recursively::h6c7e3f588989e75e
48: 0x7fc9d56af965 - rustc::infer::InferCtxt::probe::hf8ec4aa650573c6b
49: 0x7fc9d50ae149 - <core::iter::adapters::ResultShunt<I,E> as core::iter::traits::iterator::Iterator>::next::h9e3627664912b378
50: 0x7fc9d5377951 - <alloc::vec::Vec<T> as alloc::vec::SpecExtend<T,I>>::from_iter::h12eb4fe8e0a75e83
51: 0x7fc9d52cdaf3 - rustc::traits::select::SelectionContext::candidate_from_obligation_no_cache::hc99d8dfa8cb2adfd
52: 0x7fc9d514985c - rustc::dep_graph::graph::DepGraph::with_anon_task::h7b0e72cf308c77a0
53: 0x7fc9d52cc97e - rustc::traits::select::SelectionContext::candidate_from_obligation::h0aa807d4ae58f234
54: 0x7fc9d52cb7b0 - rustc::traits::select::SelectionContext::evaluate_stack::hb843f59ed886b864
55: 0x7fc9d514940e - rustc::dep_graph::graph::DepGraph::with_anon_task::h77bc4658575b2283
56: 0x7fc9d52cab9f - rustc::traits::select::SelectionContext::evaluate_predicate_recursively::h355ae5e2d88286ae
57: 0x7fc9d52c93bd - rustc::traits::select::SelectionContext::evaluate_predicates_recursively::h6c7e3f588989e75e
58: 0x7fc9d56af965 - rustc::infer::InferCtxt::probe::hf8ec4aa650573c6b
59: 0x7fc9d50ae149 - <core::iter::adapters::ResultShunt<I,E> as core::iter::traits::iterator::Iterator>::next::h9e3627664912b378
60: 0x7fc9d5377951 - <alloc::vec::Vec<T> as alloc::vec::SpecExtend<T,I>>::from_iter::h12eb4fe8e0a75e83
61: 0x7fc9d52cdaf3 - rustc::traits::select::SelectionContext::candidate_from_obligation_no_cache::hc99d8dfa8cb2adfd
62: 0x7fc9d514985c - rustc::dep_graph::graph::DepGraph::with_anon_task::h7b0e72cf308c77a0
63: 0x7fc9d52cc97e - rustc::traits::select::SelectionContext::candidate_from_obligation::h0aa807d4ae58f234
64: 0x7fc9d52cb7b0 - rustc::traits::select::SelectionContext::evaluate_stack::hb843f59ed886b864
65: 0x7fc9d514940e - rustc::dep_graph::graph::DepGraph::with_anon_task::h77bc4658575b2283
66: 0x7fc9d52cab9f - rustc::traits::select::SelectionContext::evaluate_predicate_recursively::h355ae5e2d88286ae
67: 0x7fc9d56ae69f - rustc::infer::InferCtxt::probe::h00459895e9eff904
68: 0x7fc9d52c9130 - rustc::traits::select::SelectionContext::evaluate_root_obligation::h1781b29e9a42cf28
69: 0x7fc9d3c02151 - rustc::ty::context::GlobalCtxt::enter_local::h8ff49d867bae4d1c
70: 0x7fc9d3c2c4bf - rustc_traits::evaluate_obligation::evaluate_obligation::h8bb6c0a5f2439a8c
71: 0x7fc9d5452f4f - rustc::ty::query::__query_compute::evaluate_obligation::hc4a05f9993c4661f
72: 0x7fc9d565b5df - rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors for rustc::ty::query::queries::evaluate_obligation>::compute::h2f8c3be5a428967a
73: 0x7fc9d514302a - rustc::dep_graph::graph::DepGraph::with_task_impl::hd87926f243e822e9
74: 0x7fc9d54e263e - rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt>::get_query::h12368e098130ccf7
75: 0x7fc9d56d0230 - rustc::traits::query::evaluate_obligation::<impl rustc::infer::InferCtxt>::evaluate_obligation::hb3c0b4f1d67981a0
76: 0x7fc9d56d02ed - rustc::traits::query::evaluate_obligation::<impl rustc::infer::InferCtxt>::evaluate_obligation_no_overflow::hcadd76144fa5565e
77: 0x7fc9d56d0066 - rustc::traits::query::evaluate_obligation::<impl rustc::infer::InferCtxt>::predicate_may_hold::h97f06911fb254580
78: 0x7fc9d3ef0942 - rustc_typeck::check::method::<impl rustc_typeck::check::FnCtxt>::lookup_method_in_trait::h1f18bef3baa66424
79: 0x7fc9d3ef6001 - rustc_typeck::check::op::<impl rustc_typeck::check::FnCtxt>::lookup_op_method::h09ad7f0ac80e1a05
80: 0x7fc9d3ef2198 - rustc_typeck::check::op::<impl rustc_typeck::check::FnCtxt>::check_overloaded_binop::ha53479498fbfbac0
81: 0x7fc9d3ef1ed1 - rustc_typeck::check::op::<impl rustc_typeck::check::FnCtxt>::check_binop::h2969b1df860c70f4
82: 0x7fc9d3edc332 - rustc_typeck::check::expr::<impl rustc_typeck::check::FnCtxt>::check_expr_kind::ha08d506881a2e826
83: 0x7fc9d3edb3b6 - rustc_typeck::check::expr::<impl rustc_typeck::check::FnCtxt>::check_expr_with_expectation_and_needs::h6cb603028ed0cce0
84: 0x7fc9d3edc408 - rustc_typeck::check::expr::<impl rustc_typeck::check::FnCtxt>::check_expr_kind::ha08d506881a2e826
85: 0x7fc9d3edb3b6 - rustc_typeck::check::expr::<impl rustc_typeck::check::FnCtxt>::check_expr_with_expectation_and_needs::h6cb603028ed0cce0
86: 0x7fc9d3edb955 - rustc_typeck::check::expr::<impl rustc_typeck::check::FnCtxt>::check_expr_kind::ha08d506881a2e826
87: 0x7fc9d3edb3b6 - rustc_typeck::check::expr::<impl rustc_typeck::check::FnCtxt>::check_expr_with_expectation_and_needs::h6cb603028ed0cce0
88: 0x7fc9d3eca678 - rustc_typeck::check::_match::<impl rustc_typeck::check::FnCtxt>::check_match::h2bbba41374a77397
89: 0x7fc9d3edc3cf - rustc_typeck::check::expr::<impl rustc_typeck::check::FnCtxt>::check_expr_kind::ha08d506881a2e826
90: 0x7fc9d3edb3b6 - rustc_typeck::check::expr::<impl rustc_typeck::check::FnCtxt>::check_expr_with_expectation_and_needs::h6cb603028ed0cce0
91: 0x7fc9d3f183d5 - rustc_typeck::check::FnCtxt::check_block_with_expected::h54a6df5f77c113b4
92: 0x7fc9d3edbe72 - rustc_typeck::check::expr::<impl rustc_typeck::check::FnCtxt>::check_expr_kind::ha08d506881a2e826
93: 0x7fc9d3edb3b6 - rustc_typeck::check::expr::<impl rustc_typeck::check::FnCtxt>::check_expr_with_expectation_and_needs::h6cb603028ed0cce0
94: 0x7fc9d3ecb225 - rustc_typeck::check::_match::<impl rustc_typeck::check::FnCtxt>::check_match::h2bbba41374a77397
95: 0x7fc9d3edc3cf - rustc_typeck::check::expr::<impl rustc_typeck::check::FnCtxt>::check_expr_kind::ha08d506881a2e826
96: 0x7fc9d3edb3b6 - rustc_typeck::check::expr::<impl rustc_typeck::check::FnCtxt>::check_expr_with_expectation_and_needs::h6cb603028ed0cce0
97: 0x7fc9d3f183d5 - rustc_typeck::check::FnCtxt::check_block_with_expected::h54a6df5f77c113b4
98: 0x7fc9d3edbe72 - rustc_typeck::check::expr::<impl rustc_typeck::check::FnCtxt>::check_expr_kind::ha08d506881a2e826
99: 0x7fc9d3edb3b6 - rustc_typeck::check::expr::<impl rustc_typeck::check::FnCtxt>::check_expr_with_expectation_and_needs::h6cb603028ed0cce0
100: 0x7fc9d3f17d39 - rustc_typeck::check::FnCtxt::check_stmt::haddd1e0098d64d11
101: 0x7fc9d3f1839b - rustc_typeck::check::FnCtxt::check_block_with_expected::h54a6df5f77c113b4
102: 0x7fc9d3edbe72 - rustc_typeck::check::expr::<impl rustc_typeck::check::FnCtxt>::check_expr_kind::ha08d506881a2e826
103: 0x7fc9d3edb3b6 - rustc_typeck::check::expr::<impl rustc_typeck::check::FnCtxt>::check_expr_with_expectation_and_needs::h6cb603028ed0cce0
104: 0x7fc9d3ee5abb - rustc_typeck::check::expr::<impl rustc_typeck::check::FnCtxt>::check_return_expr::h2f9ca86d272b5bc7
105: 0x7fc9d3f03954 - rustc_typeck::check::check_fn::h8264454e6cf0e510
106: 0x7fc9d40ba635 - rustc::ty::context::tls::with_context::{{closure}}::hf269ba6e654ba842
107: 0x7fc9d3f0218e - rustc_typeck::check::typeck_tables_of::hb783120714c375f1
108: 0x7fc9d410993a - rustc::ty::query::__query_compute::typeck_tables_of::h4085e407971136d8
109: 0x7fc9d402b8eb - rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors for rustc::ty::query::queries::typeck_tables_of>::compute::h7fe290e1a190d0b7
110: 0x7fc9d3fbce6b - rustc::dep_graph::graph::DepGraph::with_task_impl::h3bf8a120565bd5b9
111: 0x7fc9d4064b72 - rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt>::get_query::h7121900f84c655d7
112: 0x7fc9d402724f - rustc::ty::<impl rustc::ty::context::TyCtxt>::par_body_owners::h6f6dbd37665677d9
113: 0x7fc9d3f01a7d - rustc_typeck::check::typeck_item_bodies::h193ef9738cdcd31a
114: 0x7fc9d4109d45 - rustc::ty::query::__query_compute::typeck_item_bodies::h27b9c5929b0991c5
115: 0x7fc9d3fcb5c9 - rustc::dep_graph::graph::DepGraph::with_task_impl::hd9b4e43e2b7888c5
116: 0x7fc9d406fbe9 - rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt>::get_query::h7e1dd12301529545
117: 0x7fc9d40ec9ed - rustc_typeck::check_crate::h8dd50578803febd3
118: 0x7fc9d1512a4b - rustc_interface::passes::analysis::h1760453b137b0348
119: 0x7fc9d12a0901 - rustc::ty::query::__query_compute::analysis::h46e21ab0b78d6ea1
120: 0x7fc9d12f0c1b - rustc::dep_graph::graph::DepGraph::with_task_impl::h63ac6a158e56acd6
121: 0x7fc9d1303cf4 - rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt>::get_query::h53d716a70b514093
122: 0x7fc9d12eee85 - rustc::ty::context::tls::enter_global::hc7d81f2de7c4b10e
123: 0x7fc9d12aca0c - rustc_interface::interface::run_compiler_in_existing_thread_pool::h5275131d9b7d7d44
124: 0x7fc9d129c80d - scoped_tls::ScopedKey<T>::set::hf0ec96ef2daf9576
125: 0x7fc9d1299e44 - syntax::with_globals::hffe6ce90bfefa228
126: 0x7fc9d129de60 - std::sys_common::backtrace::__rust_begin_short_backtrace::hd2bdf835a0831f54
127: 0x7fc9d0c19087 - __rust_maybe_catch_panic
128: 0x7fc9d12afae9 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h0add63df27e599c7
129: 0x7fc9d0be144f - <alloc::boxed::Box<F> as core::ops::function::FnOnce<A>>::call_once::h74346d90f0a2dd8c
130: 0x7fc9d0c0c680 - std::sys_common::thread::start_thread::hba18ee19d9464e32
131: 0x7fc9d0bf1dc6 - std::sys::unix::thread::Thread::new::thread_start::h5ebae22d794f6aaa
132: 0x7fc9d0b4b4cf - start_thread
133: 0x7fc9d09182d3 - clone
134: 0x0 - <unknown>
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: rustc 1.42.0-dev running on x86_64-unknown-linux-gnu
note: compiler flags: -Z miri-disable-isolation
query stack during panic:
#0 [optimized_mir] processing `<[T; _] as std::array::LengthAtMost32>::{{constant}}#0`
#1 [const_eval_raw] const-evaluating `<[T; _] as std::array::LengthAtMost32>::{{constant}}#0`
#2 [const_eval_validated] const-evaluating + checking `<[T; _] as std::array::LengthAtMost32>::{{constant}}#0`
#3 [const_eval_validated] const-evaluating + checking `<[T; _] as std::array::LengthAtMost32>::{{constant}}#0`
#4 [evaluate_obligation] evaluating trait selection obligation `&[u8; 14]: std::cmp::PartialEq<^1_1>`
#5 [typeck_tables_of] processing `main`
#6 [typeck_item_bodies] type-checking all item bodies
#7 [analysis] running analysis passes on this crate
end of query stack
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment