Closed as not planned
Description
I can't provide any details about the project I'm working on, but the compiler asked me to report, so here I am.
Code
Something to do with serde
/ serde_json
Meta
rustc --version --verbose
:
rustc 1.51.0-nightly (a4cbb44ae 2021-01-20)
binary: rustc
commit-hash: a4cbb44ae2c80545db957763b502dc7f6ea22085
commit-date: 2021-01-20
host: x86_64-apple-darwin
release: 1.51.0-nightly
LLVM version: 11.0.1
Error output
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/issues/new?labels=C-bug%2C+I-ICE%2C+T-compiler&template=ice.md
note: rustc 1.51.0-nightly (a4cbb44ae 2021-01-20) running on x86_64-apple-darwin
note: compiler flags: -Z macro-backtrace -C embed-bitcode=no -C debuginfo=2 -C incremental
note: some of the compiler flags provided by cargo are hidden
Backtrace
thread 'rustc' panicked at 'Missing span for DefIndex(1193)', compiler/rustc_metadata/src/rmeta/decoder.rs:748:32
stack backtrace:
0: _rust_begin_unwind
1: std::panicking::begin_panic_fmt
2: rustc_metadata::rmeta::decoder::<impl rustc_metadata::creader::CrateMetadataRef>::get_span::{{closure}}
3: rustc_metadata::rmeta::decoder::<impl rustc_metadata::creader::CrateMetadataRef>::get_span
4: rustc_metadata::rmeta::decoder::cstore_impl::provide_extern::def_span
5: rustc_middle::ty::query::<impl rustc_query_system::query::config::QueryAccessors<rustc_middle::ty::context::TyCtxt> for rustc_middle::ty::query::queries::def_span>::compute
6: rustc_middle::dep_graph::<impl rustc_query_system::dep_graph::DepKind for rustc_middle::dep_graph::dep_node::DepKind>::with_deps
7: rustc_query_system::dep_graph::graph::DepGraph<K>::with_task_impl
8: rustc_data_structures::stack::ensure_sufficient_stack
9: rustc_query_system::query::plumbing::force_query_with_job
10: rustc_query_system::query::plumbing::get_query_impl
11: <rustc_typeck::structured_errors::wrong_number_of_generic_args::WrongNumberOfGenericArgs as rustc_typeck::structured_errors::StructuredDiagnostic>::diagnostic_common
12: rustc_typeck::structured_errors::StructuredDiagnostic::diagnostic
13: rustc_typeck::astconv::generics::<impl dyn rustc_typeck::astconv::AstConv>::check_generic_arg_count::{{closure}}
14: rustc_typeck::astconv::generics::<impl dyn rustc_typeck::astconv::AstConv>::check_generic_arg_count
15: <dyn rustc_typeck::astconv::AstConv>::create_substs_for_ast_path
16: <dyn rustc_typeck::astconv::AstConv>::create_substs_for_ast_trait_ref
17: <dyn rustc_typeck::astconv::AstConv>::instantiate_poly_trait_ref_inner
18: rustc_typeck::collect::gather_explicit_predicates_of
19: rustc_typeck::collect::explicit_predicates_of
20: rustc_middle::ty::query::<impl rustc_query_system::query::config::QueryAccessors<rustc_middle::ty::context::TyCtxt> for rustc_middle::ty::query::queries::explicit_predicates_of>::compute
21: rustc_middle::dep_graph::<impl rustc_query_system::dep_graph::DepKind for rustc_middle::dep_graph::dep_node::DepKind>::with_deps
22: rustc_query_system::dep_graph::graph::DepGraph<K>::with_task_impl
23: rustc_data_structures::stack::ensure_sufficient_stack
24: rustc_query_system::query::plumbing::force_query_with_job
25: rustc_query_system::query::plumbing::force_query_impl
26: rustc_middle::dep_graph::dep_node::dep_kind::explicit_predicates_of::force_from_dep_node
27: rustc_query_system::dep_graph::graph::DepGraph<K>::try_mark_previous_green
28: rustc_query_system::dep_graph::graph::DepGraph<K>::try_mark_previous_green
29: rustc_query_system::dep_graph::graph::DepGraph<K>::try_mark_green_and_read
30: rustc_query_system::query::plumbing::ensure_query_impl
31: <rustc_typeck::collect::CollectItemTypesVisitor as rustc_hir::intravisit::Visitor>::visit_item
32: rustc_middle::hir::map::Map::visit_item_likes_in_module
33: rustc_typeck::collect::collect_mod_item_types
34: rustc_middle::ty::query::<impl rustc_query_system::query::config::QueryAccessors<rustc_middle::ty::context::TyCtxt> for rustc_middle::ty::query::queries::collect_mod_item_types>::compute
35: rustc_middle::dep_graph::<impl rustc_query_system::dep_graph::DepKind for rustc_middle::dep_graph::dep_node::DepKind>::with_deps
36: rustc_query_system::dep_graph::graph::DepGraph<K>::with_task_impl
37: rustc_data_structures::stack::ensure_sufficient_stack
38: rustc_query_system::query::plumbing::force_query_with_job
39: rustc_query_system::query::plumbing::get_query_impl
40: rustc_query_system::query::plumbing::ensure_query_impl
41: rustc_typeck::check_crate
42: rustc_interface::passes::analysis
43: rustc_middle::ty::query::<impl rustc_query_system::query::config::QueryAccessors<rustc_middle::ty::context::TyCtxt> for rustc_middle::ty::query::queries::analysis>::compute
44: rustc_middle::dep_graph::<impl rustc_query_system::dep_graph::DepKind for rustc_middle::dep_graph::dep_node::DepKind>::with_deps
45: rustc_query_system::dep_graph::graph::DepGraph<K>::with_task_impl
46: rustc_data_structures::stack::ensure_sufficient_stack
47: rustc_query_system::query::plumbing::force_query_with_job
48: rustc_query_system::query::plumbing::get_query_impl
49: rustc_interface::queries::<impl rustc_interface::interface::Compiler>::enter
50: rustc_span::with_source_map
51: rustc_interface::interface::create_compiler_and_run
52: rustc_span::with_session_globals
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.