Closed as not planned
Description
Code
With apologies: I don't have a minimal example, and the repo in which I saw this is not yet open.
Meta
rustc --version --verbose
:
rustc 1.58.0-nightly (efd048394 2021-10-20)
binary: rustc
commit-hash: efd0483949496b067cd5f7569d1b28cd3d5d3c72
commit-date: 2021-10-20
host: x86_64-apple-darwin
release: 1.58.0-nightly
LLVM version: 13.0.0
Error output
WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '/Users/ahl/src/omicron/target/debug/deps/libapi_identity-2688e0341215579a.rmeta'
WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '/Users/ahl/src/omicron/target/debug/deps/libapi_identity-c2808c02b8973adb.rmeta'
thread 'rustc' panicked at 'called `Option::unwrap()` on a `None` value', compiler/rustc_metadata/src/rmeta/def_path_hash_map.rs:18:85
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
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.58.0-nightly (efd048394 2021-10-20) running on x86_64-apple-darwin
note: compiler flags: -C panic=abort -C embed-bitcode=no -C split-debuginfo=unpacked -C debuginfo=2 -C incremental --crate-type lib
note: some of the compiler flags provided by cargo are hidden
query stack during panic:
#0 [evaluate_obligation] evaluating trait selection obligation `for<'c> fn(steno::saga_exec::ActionContext<sagas::SagaInstanceCreate>) -> impl core::future::future::Future {sagas::sic_instance_ensure}: steno::saga_action_func::ActionFn<'c, sagas::SagaInstanceCreate>`
#1 [codegen_fulfill_obligation] checking if `core::ops::unsize::CoerceUnsized` fulfills its obligations
end of query stack
Backtrace
thread 'rustc' panicked at 'called `Option::unwrap()` on a `None` value', compiler/rustc_metadata/src/rmeta/def_path_hash_map.rs:18:85
stack backtrace:
0: _rust_begin_unwind
1: core::panicking::panic_fmt
2: core::panicking::panic
3: rustc_metadata::rmeta::decoder::cstore_impl::<impl rustc_session::cstore::CrateStore for rustc_metadata::creader::CStore>::def_path_hash_to_def_id
4: rustc_middle::ty::context::TyCtxt::def_path_hash_to_def_id
5: <rustc_query_system::dep_graph::dep_node::DepNode<rustc_middle::dep_graph::dep_node::DepKind> as rustc_middle::dep_graph::dep_node::DepNodeExt>::extract_def_id
6: rustc_query_impl::query_callbacks::type_of::force_from_dep_node
7: rustc_middle::dep_graph::<impl rustc_query_system::dep_graph::DepContext for rustc_middle::ty::context::TyCtxt>::try_force_from_dep_node
8: rustc_query_system::dep_graph::graph::DepGraph<K>::try_mark_previous_green
9: rustc_query_system::dep_graph::graph::DepGraph<K>::try_mark_previous_green
10: rustc_query_system::dep_graph::graph::DepGraph<K>::try_mark_previous_green
11: rustc_query_system::dep_graph::graph::DepGraph<K>::try_mark_previous_green
12: rustc_query_system::dep_graph::graph::DepGraph<K>::try_mark_previous_green
13: rustc_query_system::dep_graph::graph::DepGraph<K>::try_mark_green
14: rustc_query_system::query::plumbing::try_load_from_disk_and_cache_in_memory
15: rustc_query_system::query::plumbing::try_execute_query
16: rustc_query_system::query::plumbing::get_query
17: <rustc_query_impl::Queries as rustc_middle::ty::query::QueryEngine>::evaluate_obligation
18: <rustc_infer::infer::InferCtxt as rustc_trait_selection::traits::query::evaluate_obligation::InferCtxtExt>::evaluate_obligation
19: <rustc_infer::infer::InferCtxt as rustc_trait_selection::traits::query::evaluate_obligation::InferCtxtExt>::evaluate_obligation_no_overflow
20: rustc_trait_selection::traits::fulfill::FulfillProcessor::process_trait_obligation
21: rustc_trait_selection::traits::fulfill::FulfillProcessor::progress_changed_obligations
22: rustc_data_structures::obligation_forest::ObligationForest<O>::process_obligations
23: rustc_trait_selection::traits::fulfill::FulfillmentContext::select
24: <rustc_trait_selection::traits::fulfill::FulfillmentContext as rustc_infer::traits::engine::TraitEngine>::select_where_possible
25: <rustc_trait_selection::traits::fulfill::FulfillmentContext as rustc_infer::traits::engine::TraitEngine>::select_all_or_error
26: rustc_trait_selection::traits::codegen::drain_fulfillment_cx_or_panic
27: rustc_infer::infer::InferCtxtBuilder::enter
28: rustc_trait_selection::traits::codegen::codegen_fulfill_obligation
29: rustc_middle::dep_graph::<impl rustc_query_system::dep_graph::DepKind for rustc_middle::dep_graph::dep_node::DepKind>::with_deps
30: rustc_query_system::dep_graph::graph::DepGraph<K>::with_task
31: rustc_data_structures::stack::ensure_sufficient_stack
32: rustc_query_system::query::plumbing::try_execute_query
33: rustc_query_system::query::plumbing::get_query
34: <rustc_query_impl::Queries as rustc_middle::ty::query::QueryEngine>::codegen_fulfill_obligation
35: rustc_monomorphize::custom_coerce_unsize_info
36: <rustc_monomorphize::collector::MirNeighborCollector as rustc_middle::mir::visit::Visitor>::visit_rvalue
37: rustc_monomorphize::collector::collect_neighbours
38: rustc_monomorphize::collector::collect_items_rec
39: rustc_monomorphize::collector::collect_items_rec
40: rustc_monomorphize::collector::collect_items_rec
41: rustc_monomorphize::collector::collect_items_rec
42: rustc_monomorphize::collector::collect_items_rec
43: rustc_monomorphize::collector::collect_items_rec
44: rustc_monomorphize::collector::collect_items_rec
45: rustc_monomorphize::collector::collect_items_rec
46: rustc_monomorphize::collector::collect_items_rec
47: rustc_monomorphize::collector::collect_items_rec
48: rustc_monomorphize::collector::collect_items_rec
49: rustc_monomorphize::collector::collect_items_rec
50: rustc_monomorphize::collector::collect_items_rec
51: rustc_monomorphize::collector::collect_items_rec
52: rustc_monomorphize::collector::collect_items_rec
53: rustc_monomorphize::collector::collect_items_rec
54: rustc_monomorphize::collector::collect_items_rec
55: rustc_monomorphize::collector::collect_items_rec
56: rustc_monomorphize::collector::collect_items_rec
57: rustc_monomorphize::collector::collect_items_rec
58: rustc_monomorphize::collector::collect_items_rec
59: rustc_monomorphize::collector::collect_items_rec
60: rustc_monomorphize::collector::collect_items_rec
61: rustc_monomorphize::collector::collect_items_rec
62: rustc_monomorphize::collector::collect_items_rec
63: rustc_monomorphize::collector::collect_items_rec
64: rustc_session::utils::<impl rustc_session::session::Session>::time
65: rustc_monomorphize::collector::collect_crate_mono_items
66: rustc_monomorphize::partitioning::collect_and_partition_mono_items
67: rustc_query_system::dep_graph::graph::DepGraph<K>::with_task
68: rustc_data_structures::stack::ensure_sufficient_stack
69: rustc_query_system::query::plumbing::try_execute_query
70: rustc_query_system::query::plumbing::force_query
71: rustc_query_impl::query_callbacks::collect_and_partition_mono_items::force_from_dep_node
72: rustc_middle::dep_graph::<impl rustc_query_system::dep_graph::DepContext for rustc_middle::ty::context::TyCtxt>::try_force_from_dep_node
73: rustc_query_system::dep_graph::graph::DepGraph<K>::try_mark_previous_green
74: rustc_query_system::dep_graph::graph::DepGraph<K>::try_mark_green
75: rustc_query_system::query::plumbing::try_load_from_disk_and_cache_in_memory
76: rustc_data_structures::stack::ensure_sufficient_stack
77: rustc_query_system::query::plumbing::try_execute_query
78: rustc_query_system::query::plumbing::get_query
79: rustc_metadata::rmeta::encoder::EncodeContext::encode_crate_root
80: rustc_metadata::rmeta::encoder::encode_metadata_impl
81: rustc_data_structures::sync::join
82: rustc_metadata::rmeta::encoder::encode_metadata
83: rustc_interface::queries::Queries::ongoing_codegen
84: rustc_interface::queries::<impl rustc_interface::interface::Compiler>::enter
85: rustc_span::with_source_map
86: scoped_tls::ScopedKey<T>::set
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
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.58.0-nightly (efd048394 2021-10-20) running on x86_64-apple-darwin
note: compiler flags: -C panic=abort -C embed-bitcode=no -C split-debuginfo=unpacked -C debuginfo=2 -C incremental --crate-type lib
note: some of the compiler flags provided by cargo are hidden
query stack during panic:
#0 [evaluate_obligation] evaluating trait selection obligation `for<'c> fn(steno::saga_exec::ActionContext<sagas::SagaInstanceCreate>) -> impl core::future::future::Future {sagas::sic_instance_ensure}: steno::saga_action_func::ActionFn<'c, sagas::SagaInstanceCreate>`
#1 [codegen_fulfill_obligation] checking if `core::ops::unsize::CoerceUnsized` fulfills its obligations
#2 [collect_and_partition_mono_items] collect_and_partition_mono_items
#3 [exported_symbols] exported_symbols
end of query stack