Skip to content

evaluating trait selection obligation #138855

@rsharath

Description

@rsharath

Code

<code>

Meta

rustc --version --verbose:

rustc --version --verbose
rustc 1.85.1 (4eb161250 2025-03-15) (Homebrew)
binary: rustc
commit-hash: 4eb161250e340c8f48f66e2b929ef4a5bed7c181
commit-date: 2025-03-15
host: aarch64-apple-darwin
release: 1.85.1
LLVM version: 19.1.7

cargo version
cargo 1.85.1
<version>

Error output

<output>
Backtrace

<backtrace>

thread 'rustc' panicked at compiler/rustc_metadata/src/rmeta/def_path_hash_map.rs:23:54:
called `Option::unwrap()` on a `None` value
stack backtrace:
   0:        0x1089a0810 - <std::sys::backtrace::BacktraceLock::print::DisplayBacktrace as core::fmt::Display>::fmt::h69fb0771ca4927e7
   1:        0x1089f2800 - core::fmt::write::ha746b8eed2a8b025
   2:        0x10897f52c - std::io::Write::write_fmt::h84907d310cf7838c
   3:        0x1089a06c0 - std::sys::backtrace::BacktraceLock::print::h192522516a80a79a
   4:        0x1089c7a1c - std::panicking::default_hook::{{closure}}::h558a7c9eb7108e66
   5:        0x1089c7894 - std::panicking::default_hook::h0e1fd4244b979d73
   6:        0x1061c1988 - <alloc[7b838a86c52b316b]::boxed::Box<rustc_driver_impl[cfcc4bafc47ca80]::install_ice_hook::{closure#1}> as core[154e01997c7268e7]::ops::function::Fn<(&dyn for<'a, 'b> core[154e01997c7268e7]::ops::function::Fn<(&'a std[d2b4a93c40de67a4]::panic::PanicHookInfo<'b>,), Output = ()> + core[154e01997c7268e7]::marker::Send + core[154e01997c7268e7]::marker::Sync, &std[d2b4a93c40de67a4]::panic::PanicHookInfo)>>::call
   7:        0x1089c80b0 - std::panicking::rust_panic_with_hook::h00b2262cd25a9e0f
   8:        0x1089a0d8c - std::panicking::begin_panic_handler::{{closure}}::h466628b32158069b
   9:        0x1089a0a68 - std::sys::backtrace::__rust_end_short_backtrace::h328e872885259eca
  10:        0x1089c7b3c - _rust_begin_unwind
  11:        0x108b7f568 - core::panicking::panic_fmt::h53349c61e2cc42f9
  12:        0x108b7f5d8 - core::panicking::panic::h0e1d184b1034d17a
  13:        0x108b7fb30 - core::option::unwrap_failed::hf0a749ee75d269e7
  14:        0x107f4c674 - <rustc_metadata[902d97bd17a47569]::rmeta::decoder::cstore_impl::provide_cstore_hooks::{closure#0} as core[154e01997c7268e7]::ops::function::FnOnce<(rustc_middle[52979066c3c8bde6]::query::plumbing::TyCtxtAt, rustc_span[117a8bc13a61ced1]::def_id::DefPathHash, rustc_span[117a8bc13a61ced1]::def_id::StableCrateId)>>::call_once
  15:        0x108425524 - <rustc_middle[52979066c3c8bde6]::ty::context::TyCtxt>::def_path_hash_to_def_id
  16:        0x1084bb570 - <rustc_query_system[5bb926e17a82138e]::dep_graph::dep_node::DepNode as rustc_middle[52979066c3c8bde6]::dep_graph::dep_node::DepNodeExt>::extract_def_id
  17:        0x107700bec - <rustc_query_impl[23aa8cd7557db5ec]::plumbing::query_callback<rustc_query_impl[23aa8cd7557db5ec]::query_impl::type_of::QueryType>::{closure#0} as core[154e01997c7268e7]::ops::function::FnOnce<(rustc_middle[52979066c3c8bde6]::ty::context::TyCtxt, rustc_query_system[5bb926e17a82138e]::dep_graph::dep_node::DepNode)>>::call_once
  18:        0x1078ab5ac - <rustc_query_system[5bb926e17a82138e]::dep_graph::graph::DepGraphData<rustc_middle[52979066c3c8bde6]::dep_graph::DepsType>>::try_mark_previous_green::<rustc_query_impl[23aa8cd7557db5ec]::plumbing::QueryCtxt>
  19:        0x1078ab55c - <rustc_query_system[5bb926e17a82138e]::dep_graph::graph::DepGraphData<rustc_middle[52979066c3c8bde6]::dep_graph::DepsType>>::try_mark_previous_green::<rustc_query_impl[23aa8cd7557db5ec]::plumbing::QueryCtxt>
  20:        0x1078ab55c - <rustc_query_system[5bb926e17a82138e]::dep_graph::graph::DepGraphData<rustc_middle[52979066c3c8bde6]::dep_graph::DepsType>>::try_mark_previous_green::<rustc_query_impl[23aa8cd7557db5ec]::plumbing::QueryCtxt>
  21:        0x1078ab55c - <rustc_query_system[5bb926e17a82138e]::dep_graph::graph::DepGraphData<rustc_middle[52979066c3c8bde6]::dep_graph::DepsType>>::try_mark_previous_green::<rustc_query_impl[23aa8cd7557db5ec]::plumbing::QueryCtxt>
  22:        0x1078ab358 - <rustc_query_system[5bb926e17a82138e]::dep_graph::graph::DepGraphData<rustc_middle[52979066c3c8bde6]::dep_graph::DepsType>>::try_mark_green::<rustc_query_impl[23aa8cd7557db5ec]::plumbing::QueryCtxt>
  23:        0x107681674 - rustc_query_system[5bb926e17a82138e]::query::plumbing::try_execute_query::<rustc_query_impl[23aa8cd7557db5ec]::DynamicConfig<rustc_query_system[5bb926e17a82138e]::query::caches::DefaultCache<rustc_type_ir[57ebed0265500450]::canonical::CanonicalQueryInput<rustc_middle[52979066c3c8bde6]::ty::context::TyCtxt, rustc_middle[52979066c3c8bde6]::ty::ParamEnvAnd<rustc_middle[52979066c3c8bde6]::ty::predicate::Predicate>>, rustc_middle[52979066c3c8bde6]::query::erase::Erased<[u8; 2usize]>>, false, false, false>, rustc_query_impl[23aa8cd7557db5ec]::plumbing::QueryCtxt, true>
  24:        0x107830ae8 - rustc_query_impl[23aa8cd7557db5ec]::query_impl::evaluate_obligation::get_query_incr::__rust_end_short_backtrace
  25:        0x107c3ee74 - <rustc_infer[279efc90aa3243cb]::infer::InferCtxt as rustc_trait_selection[533c3f9b0393a02]::traits::query::evaluate_obligation::InferCtxtExt>::evaluate_obligation
  26:        0x107c3f170 - <rustc_infer[279efc90aa3243cb]::infer::InferCtxt as rustc_trait_selection[533c3f9b0393a02]::traits::query::evaluate_obligation::InferCtxtExt>::evaluate_obligation_no_overflow
  27:        0x107ca8614 - <rustc_trait_selection[533c3f9b0393a02]::traits::fulfill::FulfillProcessor>::process_trait_obligation
  28:        0x107ca7afc - <rustc_trait_selection[533c3f9b0393a02]::traits::fulfill::FulfillProcessor as rustc_data_structures[22796f94ef206356]::obligation_forest::ObligationProcessor>::process_obligation
  29:        0x107c82a20 - <rustc_data_structures[22796f94ef206356]::obligation_forest::ObligationForest<rustc_trait_selection[533c3f9b0393a02]::traits::fulfill::PendingPredicateObligation>>::process_obligations::<rustc_trait_selection[533c3f9b0393a02]::traits::fulfill::FulfillProcessor>
  30:        0x107ca0554 - <rustc_trait_selection[533c3f9b0393a02]::traits::fulfill::FulfillmentContext<rustc_infer[279efc90aa3243cb]::traits::engine::ScrubbedTraitError> as rustc_infer[279efc90aa3243cb]::traits::engine::TraitEngine<rustc_infer[279efc90aa3243cb]::traits::engine::ScrubbedTraitError>>::select_where_possible
  31:        0x107c9ac60 - <rustc_trait_selection[533c3f9b0393a02]::traits::fulfill::FulfillmentContext<rustc_infer[279efc90aa3243cb]::traits::engine::ScrubbedTraitError> as rustc_infer[279efc90aa3243cb]::traits::engine::TraitEngine<rustc_infer[279efc90aa3243cb]::traits::engine::ScrubbedTraitError>>::select_all_or_error
  32:        0x106fd470c - rustc_traits[2b8def229ee200f7]::codegen::codegen_select_candidate
  33:        0x10773017c - rustc_query_impl[23aa8cd7557db5ec]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[23aa8cd7557db5ec]::query_impl::codegen_select_candidate::dynamic_query::{closure#2}::{closure#0}, rustc_middle[52979066c3c8bde6]::query::erase::Erased<[u8; 16usize]>>
  34:        0x107770e34 - <rustc_query_impl[23aa8cd7557db5ec]::query_impl::codegen_select_candidate::dynamic_query::{closure#2} as core[154e01997c7268e7]::ops::function::FnOnce<(rustc_middle[52979066c3c8bde6]::ty::context::TyCtxt, rustc_middle[52979066c3c8bde6]::ty::PseudoCanonicalInput<rustc_type_ir[57ebed0265500450]::predicate::TraitRef<rustc_middle[52979066c3c8bde6]::ty::context::TyCtxt>>)>>::call_once
  35:        0x10765b6d4 - rustc_query_system[5bb926e17a82138e]::query::plumbing::try_execute_query::<rustc_query_impl[23aa8cd7557db5ec]::DynamicConfig<rustc_query_system[5bb926e17a82138e]::query::caches::DefaultCache<rustc_middle[52979066c3c8bde6]::ty::PseudoCanonicalInput<rustc_type_ir[57ebed0265500450]::predicate::TraitRef<rustc_middle[52979066c3c8bde6]::ty::context::TyCtxt>>, rustc_middle[52979066c3c8bde6]::query::erase::Erased<[u8; 16usize]>>, false, false, false>, rustc_query_impl[23aa8cd7557db5ec]::plumbing::QueryCtxt, true>
  36:        0x10781d758 - rustc_query_impl[23aa8cd7557db5ec]::query_impl::codegen_select_candidate::get_query_incr::__rust_end_short_backtrace
  37:        0x1069ff7f8 - rustc_monomorphize[b78f6d90ee87c4b8]::custom_coerce_unsize_info
  38:        0x1069cc2a8 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::find_vtable_types_for_unsizing
  39:        0x1069ca998 - <rustc_monomorphize[b78f6d90ee87c4b8]::collector::MirUsedCollector as rustc_middle[52979066c3c8bde6]::mir::visit::Visitor>::visit_rvalue
  40:        0x1069cdddc - rustc_monomorphize[b78f6d90ee87c4b8]::collector::items_of_instance
  41:        0x10772caec - rustc_query_impl[23aa8cd7557db5ec]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[23aa8cd7557db5ec]::query_impl::items_of_instance::dynamic_query::{closure#2}::{closure#0}, rustc_middle[52979066c3c8bde6]::query::erase::Erased<[u8; 32usize]>>
  42:        0x1077675c8 - <rustc_query_impl[23aa8cd7557db5ec]::query_impl::items_of_instance::dynamic_query::{closure#2} as core[154e01997c7268e7]::ops::function::FnOnce<(rustc_middle[52979066c3c8bde6]::ty::context::TyCtxt, (rustc_middle[52979066c3c8bde6]::ty::instance::Instance, rustc_middle[52979066c3c8bde6]::mir::mono::CollectionMode))>>::call_once
  43:        0x1076caf9c - rustc_query_system[5bb926e17a82138e]::query::plumbing::try_execute_query::<rustc_query_impl[23aa8cd7557db5ec]::DynamicConfig<rustc_query_system[5bb926e17a82138e]::query::caches::DefaultCache<(rustc_middle[52979066c3c8bde6]::ty::instance::Instance, rustc_middle[52979066c3c8bde6]::mir::mono::CollectionMode), rustc_middle[52979066c3c8bde6]::query::erase::Erased<[u8; 32usize]>>, false, false, false>, rustc_query_impl[23aa8cd7557db5ec]::plumbing::QueryCtxt, true>
  44:        0x107835ca8 - rustc_query_impl[23aa8cd7557db5ec]::query_impl::items_of_instance::get_query_incr::__rust_end_short_backtrace
  45:        0x1069ced60 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
  46:        0x1069cf794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
  47:        0x1069cf794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
  48:        0x1069cf794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
  49:        0x1069cf794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
  50:        0x1069cf794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
  51:        0x1069cf794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
  52:        0x1069cf794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
  53:        0x1069cf794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
  54:        0x1069cf794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
  55:        0x1069cf794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
  56:        0x1069cf794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
  57:        0x1069cf794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
  58:        0x1069cf794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
  59:        0x1069cf794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
  60:        0x1069cf794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
  61:        0x1069cf794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
  62:        0x1069cf794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
  63:        0x1069cf794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
  64:        0x1069cf794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
  65:        0x1069cf794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
  66:        0x1069cf794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
  67:        0x1069cf794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
  68:        0x1069cf794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
  69:        0x1069cf794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
  70:        0x1069cf794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
  71:        0x1069cf794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
  72:        0x1069cf794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
  73:        0x1069cf794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
  74:        0x1069cf794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
  75:        0x1069cf794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
  76:        0x1069cf794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
  77:        0x1069cf794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
  78:        0x1069cf794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
  79:        0x1069cf794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
  80:        0x1069cf794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
  81:        0x1069cf794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
  82:        0x1069cf794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
  83:        0x1069cf794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
  84:        0x1069cf794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
  85:        0x1069cf794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
  86:        0x1069cf794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
  87:        0x1069cf794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
  88:        0x1069cf794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
  89:        0x1069cf794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
  90:        0x1069cf794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
  91:        0x1069cf794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
  92:        0x1069cf794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
  93:        0x1069cf794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
  94:        0x1069cf794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
  95:        0x1069cf794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
  96:        0x1069cf794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
  97:        0x1069cf794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
  98:        0x1069cf794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
  99:        0x1069cf794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
 100:        0x1069cf794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
 101:        0x1069cf794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
 102:        0x1069cf794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
 103:        0x1069cf794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
 104:        0x1069cf794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
 105:        0x1069cf794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
 106:        0x1069cf794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
 107:        0x1069cf794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
 108:        0x1069cf794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
 109:        0x1069cf794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
 110:        0x1069cf794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
 111:        0x1069cf794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
 112:        0x1069cf794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
 113:        0x1069cf794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
 114:        0x1069cf794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
 115:        0x1069cf794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
 116:        0x1069cf794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
 117:        0x1069cf794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
 118:        0x1069cf794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
 119:        0x1069cf794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
 120:        0x1069f1528 - <rustc_data_structures[22796f94ef206356]::sync::parallel::ParallelGuard>::run::<(), rustc_data_structures[22796f94ef206356]::sync::parallel::par_for_each_in<rustc_middle[52979066c3c8bde6]::mir::mono::MonoItem, alloc[7b838a86c52b316b]::vec::Vec<rustc_middle[52979066c3c8bde6]::mir::mono::MonoItem>, rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_crate_mono_items::{closure#1}::{closure#0}>::{closure#0}::{closure#1}::{closure#0}>
 121:        0x1069f94c8 - <rustc_session[4e9477578bc9c318]::session::Session>::time::<(), rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_crate_mono_items::{closure#1}>
 122:        0x1069d119c - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_crate_mono_items
 123:        0x1069d6894 - rustc_monomorphize[b78f6d90ee87c4b8]::partitioning::collect_and_partition_mono_items
 124:        0x10773163c - rustc_query_impl[23aa8cd7557db5ec]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[23aa8cd7557db5ec]::query_impl::collect_and_partition_mono_items::dynamic_query::{closure#2}::{closure#0}, rustc_middle[52979066c3c8bde6]::query::erase::Erased<[u8; 24usize]>>
 125:        0x1077757c0 - <rustc_query_impl[23aa8cd7557db5ec]::query_impl::collect_and_partition_mono_items::dynamic_query::{closure#2} as core[154e01997c7268e7]::ops::function::FnOnce<(rustc_middle[52979066c3c8bde6]::ty::context::TyCtxt, ())>>::call_once
 126:        0x107650f94 - rustc_query_system[5bb926e17a82138e]::query::plumbing::try_execute_query::<rustc_query_impl[23aa8cd7557db5ec]::DynamicConfig<rustc_query_system[5bb926e17a82138e]::query::caches::SingleCache<rustc_middle[52979066c3c8bde6]::query::erase::Erased<[u8; 24usize]>>, false, false, false>, rustc_query_impl[23aa8cd7557db5ec]::plumbing::QueryCtxt, true>
 127:        0x10782e764 - rustc_query_impl[23aa8cd7557db5ec]::query_impl::collect_and_partition_mono_items::get_query_incr::__rust_end_short_backtrace
 128:        0x106411778 - rustc_codegen_ssa[6451673db5079e3f]::base::codegen_crate::<rustc_codegen_llvm[b2988737c0c9b810]::LlvmCodegenBackend>
 129:        0x10648ec6c - <rustc_codegen_llvm[b2988737c0c9b810]::LlvmCodegenBackend as rustc_codegen_ssa[6451673db5079e3f]::traits::backend::CodegenBackend>::codegen_crate
 130:        0x1063a6344 - <rustc_session[4e9477578bc9c318]::session::Session>::time::<alloc[7b838a86c52b316b]::boxed::Box<dyn core[154e01997c7268e7]::any::Any>, rustc_interface[1435849924764c54]::passes::start_codegen::{closure#0}>
 131:        0x106382cf0 - rustc_interface[1435849924764c54]::passes::start_codegen
 132:        0x1063b9758 - <rustc_interface[1435849924764c54]::queries::Linker>::codegen_and_build_linker
 133:        0x1061d356c - <rustc_middle[52979066c3c8bde6]::ty::context::TyCtxt>::create_global_ctxt::<core[154e01997c7268e7]::option::Option<rustc_interface[1435849924764c54]::queries::Linker>, rustc_interface[1435849924764c54]::passes::create_and_enter_global_ctxt<core[154e01997c7268e7]::option::Option<rustc_interface[1435849924764c54]::queries::Linker>, rustc_driver_impl[cfcc4bafc47ca80]::run_compiler::{closure#0}::{closure#2}>::{closure#2}::{closure#0}>
 134:        0x10619eb64 - <rustc_interface[1435849924764c54]::passes::create_and_enter_global_ctxt<core[154e01997c7268e7]::option::Option<rustc_interface[1435849924764c54]::queries::Linker>, rustc_driver_impl[cfcc4bafc47ca80]::run_compiler::{closure#0}::{closure#2}>::{closure#2} as core[154e01997c7268e7]::ops::function::FnOnce<(&rustc_session[4e9477578bc9c318]::session::Session, rustc_middle[52979066c3c8bde6]::ty::context::CurrentGcx, &std[d2b4a93c40de67a4]::sync::once_lock::OnceLock<rustc_middle[52979066c3c8bde6]::ty::context::GlobalCtxt>, &rustc_data_structures[22796f94ef206356]::sync::worker_local::WorkerLocal<rustc_middle[52979066c3c8bde6]::arena::Arena>, &rustc_data_structures[22796f94ef206356]::sync::worker_local::WorkerLocal<rustc_hir[1c4daa29a3d5d4ec]::Arena>, rustc_driver_impl[cfcc4bafc47ca80]::run_compiler::{closure#0}::{closure#2})>>::call_once::{shim:vtable#0}
 135:        0x1061849bc - rustc_interface[1435849924764c54]::passes::create_and_enter_global_ctxt::<core[154e01997c7268e7]::option::Option<rustc_interface[1435849924764c54]::queries::Linker>, rustc_driver_impl[cfcc4bafc47ca80]::run_compiler::{closure#0}::{closure#2}>
 136:        0x1061a675c - <scoped_tls[400b39c51cac609b]::ScopedKey<rustc_span[117a8bc13a61ced1]::SessionGlobals>>::set::<rustc_interface[1435849924764c54]::util::run_in_thread_with_globals<rustc_interface[1435849924764c54]::util::run_in_thread_pool_with_globals<rustc_interface[1435849924764c54]::interface::run_compiler<(), rustc_driver_impl[cfcc4bafc47ca80]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}::{closure#0}, ()>
 137:        0x1061ae644 - rustc_span[117a8bc13a61ced1]::create_session_globals_then::<(), rustc_interface[1435849924764c54]::util::run_in_thread_with_globals<rustc_interface[1435849924764c54]::util::run_in_thread_pool_with_globals<rustc_interface[1435849924764c54]::interface::run_compiler<(), rustc_driver_impl[cfcc4bafc47ca80]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}::{closure#0}>
 138:        0x1061e869c - std[d2b4a93c40de67a4]::sys::backtrace::__rust_begin_short_backtrace::<rustc_interface[1435849924764c54]::util::run_in_thread_with_globals<rustc_interface[1435849924764c54]::util::run_in_thread_pool_with_globals<rustc_interface[1435849924764c54]::interface::run_compiler<(), rustc_driver_impl[cfcc4bafc47ca80]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()>
 139:        0x1061ad1e8 - <<std[d2b4a93c40de67a4]::thread::Builder>::spawn_unchecked_<rustc_interface[1435849924764c54]::util::run_in_thread_with_globals<rustc_interface[1435849924764c54]::util::run_in_thread_pool_with_globals<rustc_interface[1435849924764c54]::interface::run_compiler<(), rustc_driver_impl[cfcc4bafc47ca80]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()>::{closure#1} as core[154e01997c7268e7]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
 140:        0x10898b660 - std::sys::pal::unix::thread::Thread::new::thread_start::h1e50832d06f6350c
 141:        0x19a0382e4 - __pthread_deallocate

error: 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.85.0 (4d91de4e4 2025-02-17) (Homebrew) running on aarch64-apple-darwin

note: compiler flags: --crate-type bin -C embed-bitcode=no -C debuginfo=2 -C split-debuginfo=unpacked -C incremental=[REDACTED]

note: some of the compiler flags provided by cargo are hidden

query stack during panic:
#0 [evaluate_obligation] evaluating trait selection obligation `{coroutine witness@pingora_proxy::HttpProxy<r_proxy_core::middleware::middlewares::Middlewares>::handle_error::{closure#0}}: core::marker::Send`
#1 [codegen_select_candidate] computing candidate for `<core::pin::Pin<alloc::boxed::Box<{async block@<pingora_proxy::HttpProxy<r_proxy_core::middleware::middlewares::Middlewares> as pingora_core::apps::HttpServerApp>::process_new_http<'_, '_, '_>::{closure#0}}>> as core::ops::unsize::CoerceUnsized<core::pin::Pin<alloc::boxed::Box<dyn core::future::future::Future<Output = core::option::Option<alloc::boxed::Box<dyn pingora_core::protocols::IO>>> + core::marker::Send>>>>`
end of query stack
there was a panic while trying to force a dep node
try_mark_green dep node stack:
#0 TraitSelect(f52ac268e6de50d3-e152909aafd560f)
#1 TraitSelect(f5382577bc4efbd0-20e61c0492339ad)
#2 TraitSelect(6363fa3780128f4a-49b09c3b24ee8169)
#3 evaluate_obligation(de621111c014325f-b866ac978e5eaa88)
end of try_mark_green dep node stack
error: could not compile `r-proxy-cli` (bin "r-proxy-cli")

Caused by:
  process didn't exit successfully: `rustc --crate-name r_proxy_cli --edition=2024 cli/src/main.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=155 --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debuginfo=2 -C split-debuginfo=unpacked --check-cfg 'cfg(docsrs,test)' --check-cfg 'cfg(feature, values())' -C metadata=003684e17dccd29f -C extra-filename=-647a27bf6505ad15 --out-dir /Users/sharath/Library/CloudStorage/Dropbox/Development/Javelin/javelin-rust/target/debug/deps -C incremental=/Users/sharath/Library/CloudStorage/Dropbox/Development/Javelin/javelin-rust/target/debug/incremental -L dependency=/Users/sharath/Library/CloudStorage/Dropbox/Development/Javelin/javelin-rust/target/debug/deps --extern anyhow=/Users/sharath/Library/CloudStorage/Dropbox/Development/Javelin/javelin-rust/target/debug/deps/libanyhow-34b7f1672c212a25.rlib --extern clap=/Users/sharath/Library/CloudStorage/Dropbox/Development/Javelin/javelin-rust/target/debug/deps/libclap-f6b653585b75b2d1.rlib --extern r_proxy=/Users/sharath/Library/CloudStorage/Dropbox/Development/Javelin/javelin-rust/target/debug/deps/libr_proxy-5147bf664af08f39.rlib --extern r_proxy_core=/Users/sharath/Library/CloudStorage/Dropbox/Development/Javelin/javelin-rust/target/debug/deps/libr_proxy_core-ee6fcec37f7ce15e.rlib --extern tokio=/Users/sharath/Library/CloudStorage/Dropbox/Development/Javelin/javelin-rust/target/debug/deps/libtokio-234206cf4582da4d.rlib --extern tracing=/Users/sharath/Library/CloudStorage/Dropbox/Development/Javelin/javelin-rust/target/debug/deps/libtracing-4f1adf68ed35fa6d.rlib --extern tracing_subscriber=/Users/sharath/Library/CloudStorage/Dropbox/Development/Javelin/javelin-rust/target/debug/deps/libtracing_subscriber-7d0a05ba9cb80914.rlib -L native=/Users/sharath/Library/CloudStorage/Dropbox/Development/Javelin/javelin-rust/target/debug/build/libz-ng-sys-8c62b968c3a18421/out/lib -L native=/Users/sharath/Library/CloudStorage/Dropbox/Development/Javelin/javelin-rust/target/debug/build/openssl-sys-04d1be9a9dcf77bc/out/openssl-build/install/lib -L native=/Users/sharath/Library/CloudStorage/Dropbox/Development/Javelin/javelin-rust/target/debug/build/zstd-sys-958099b97a9de750/out` (exit status: 101)
warning: build failed, waiting for other jobs to finish...

thread 'rustc' panicked at compiler/rustc_metadata/src/rmeta/def_path_hash_map.rs:23:54:
called `Option::unwrap()` on a `None` value
stack backtrace:
   0:        0x108950810 - <std::sys::backtrace::BacktraceLock::print::DisplayBacktrace as core::fmt::Display>::fmt::h69fb0771ca4927e7
   1:        0x1089a2800 - core::fmt::write::ha746b8eed2a8b025
   2:        0x10892f52c - std::io::Write::write_fmt::h84907d310cf7838c
   3:        0x1089506c0 - std::sys::backtrace::BacktraceLock::print::h192522516a80a79a
   4:        0x108977a1c - std::panicking::default_hook::{{closure}}::h558a7c9eb7108e66
   5:        0x108977894 - std::panicking::default_hook::h0e1fd4244b979d73
   6:        0x106171988 - <alloc[7b838a86c52b316b]::boxed::Box<rustc_driver_impl[cfcc4bafc47ca80]::install_ice_hook::{closure#1}> as core[154e01997c7268e7]::ops::function::Fn<(&dyn for<'a, 'b> core[154e01997c7268e7]::ops::function::Fn<(&'a std[d2b4a93c40de67a4]::panic::PanicHookInfo<'b>,), Output = ()> + core[154e01997c7268e7]::marker::Send + core[154e01997c7268e7]::marker::Sync, &std[d2b4a93c40de67a4]::panic::PanicHookInfo)>>::call
   7:        0x1089780b0 - std::panicking::rust_panic_with_hook::h00b2262cd25a9e0f
   8:        0x108950d8c - std::panicking::begin_panic_handler::{{closure}}::h466628b32158069b
   9:        0x108950a68 - std::sys::backtrace::__rust_end_short_backtrace::h328e872885259eca
  10:        0x108977b3c - _rust_begin_unwind
  11:        0x108b2f568 - core::panicking::panic_fmt::h53349c61e2cc42f9
  12:        0x108b2f5d8 - core::panicking::panic::h0e1d184b1034d17a
  13:        0x108b2fb30 - core::option::unwrap_failed::hf0a749ee75d269e7
  14:        0x107efc674 - <rustc_metadata[902d97bd17a47569]::rmeta::decoder::cstore_impl::provide_cstore_hooks::{closure#0} as core[154e01997c7268e7]::ops::function::FnOnce<(rustc_middle[52979066c3c8bde6]::query::plumbing::TyCtxtAt, rustc_span[117a8bc13a61ced1]::def_id::DefPathHash, rustc_span[117a8bc13a61ced1]::def_id::StableCrateId)>>::call_once
  15:        0x1083d5524 - <rustc_middle[52979066c3c8bde6]::ty::context::TyCtxt>::def_path_hash_to_def_id
  16:        0x10846b570 - <rustc_query_system[5bb926e17a82138e]::dep_graph::dep_node::DepNode as rustc_middle[52979066c3c8bde6]::dep_graph::dep_node::DepNodeExt>::extract_def_id
  17:        0x1076b0bec - <rustc_query_impl[23aa8cd7557db5ec]::plumbing::query_callback<rustc_query_impl[23aa8cd7557db5ec]::query_impl::type_of::QueryType>::{closure#0} as core[154e01997c7268e7]::ops::function::FnOnce<(rustc_middle[52979066c3c8bde6]::ty::context::TyCtxt, rustc_query_system[5bb926e17a82138e]::dep_graph::dep_node::DepNode)>>::call_once
  18:        0x10785b5ac - <rustc_query_system[5bb926e17a82138e]::dep_graph::graph::DepGraphData<rustc_middle[52979066c3c8bde6]::dep_graph::DepsType>>::try_mark_previous_green::<rustc_query_impl[23aa8cd7557db5ec]::plumbing::QueryCtxt>
  19:        0x10785b55c - <rustc_query_system[5bb926e17a82138e]::dep_graph::graph::DepGraphData<rustc_middle[52979066c3c8bde6]::dep_graph::DepsType>>::try_mark_previous_green::<rustc_query_impl[23aa8cd7557db5ec]::plumbing::QueryCtxt>
  20:        0x10785b55c - <rustc_query_system[5bb926e17a82138e]::dep_graph::graph::DepGraphData<rustc_middle[52979066c3c8bde6]::dep_graph::DepsType>>::try_mark_previous_green::<rustc_query_impl[23aa8cd7557db5ec]::plumbing::QueryCtxt>
  21:        0x10785b55c - <rustc_query_system[5bb926e17a82138e]::dep_graph::graph::DepGraphData<rustc_middle[52979066c3c8bde6]::dep_graph::DepsType>>::try_mark_previous_green::<rustc_query_impl[23aa8cd7557db5ec]::plumbing::QueryCtxt>
  22:        0x10785b358 - <rustc_query_system[5bb926e17a82138e]::dep_graph::graph::DepGraphData<rustc_middle[52979066c3c8bde6]::dep_graph::DepsType>>::try_mark_green::<rustc_query_impl[23aa8cd7557db5ec]::plumbing::QueryCtxt>
  23:        0x107631674 - rustc_query_system[5bb926e17a82138e]::query::plumbing::try_execute_query::<rustc_query_impl[23aa8cd7557db5ec]::DynamicConfig<rustc_query_system[5bb926e17a82138e]::query::caches::DefaultCache<rustc_type_ir[57ebed0265500450]::canonical::CanonicalQueryInput<rustc_middle[52979066c3c8bde6]::ty::context::TyCtxt, rustc_middle[52979066c3c8bde6]::ty::ParamEnvAnd<rustc_middle[52979066c3c8bde6]::ty::predicate::Predicate>>, rustc_middle[52979066c3c8bde6]::query::erase::Erased<[u8; 2usize]>>, false, false, false>, rustc_query_impl[23aa8cd7557db5ec]::plumbing::QueryCtxt, true>
  24:        0x1077e0ae8 - rustc_query_impl[23aa8cd7557db5ec]::query_impl::evaluate_obligation::get_query_incr::__rust_end_short_backtrace
  25:        0x107beee74 - <rustc_infer[279efc90aa3243cb]::infer::InferCtxt as rustc_trait_selection[533c3f9b0393a02]::traits::query::evaluate_obligation::InferCtxtExt>::evaluate_obligation
  26:        0x107bef170 - <rustc_infer[279efc90aa3243cb]::infer::InferCtxt as rustc_trait_selection[533c3f9b0393a02]::traits::query::evaluate_obligation::InferCtxtExt>::evaluate_obligation_no_overflow
  27:        0x107c58614 - <rustc_trait_selection[533c3f9b0393a02]::traits::fulfill::FulfillProcessor>::process_trait_obligation
  28:        0x107c57afc - <rustc_trait_selection[533c3f9b0393a02]::traits::fulfill::FulfillProcessor as rustc_data_structures[22796f94ef206356]::obligation_forest::ObligationProcessor>::process_obligation
  29:        0x107c32a20 - <rustc_data_structures[22796f94ef206356]::obligation_forest::ObligationForest<rustc_trait_selection[533c3f9b0393a02]::traits::fulfill::PendingPredicateObligation>>::process_obligations::<rustc_trait_selection[533c3f9b0393a02]::traits::fulfill::FulfillProcessor>
  30:        0x107c50554 - <rustc_trait_selection[533c3f9b0393a02]::traits::fulfill::FulfillmentContext<rustc_infer[279efc90aa3243cb]::traits::engine::ScrubbedTraitError> as rustc_infer[279efc90aa3243cb]::traits::engine::TraitEngine<rustc_infer[279efc90aa3243cb]::traits::engine::ScrubbedTraitError>>::select_where_possible
  31:        0x107c4ac60 - <rustc_trait_selection[533c3f9b0393a02]::traits::fulfill::FulfillmentContext<rustc_infer[279efc90aa3243cb]::traits::engine::ScrubbedTraitError> as rustc_infer[279efc90aa3243cb]::traits::engine::TraitEngine<rustc_infer[279efc90aa3243cb]::traits::engine::ScrubbedTraitError>>::select_all_or_error
  32:        0x106f8470c - rustc_traits[2b8def229ee200f7]::codegen::codegen_select_candidate
  33:        0x1076e017c - rustc_query_impl[23aa8cd7557db5ec]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[23aa8cd7557db5ec]::query_impl::codegen_select_candidate::dynamic_query::{closure#2}::{closure#0}, rustc_middle[52979066c3c8bde6]::query::erase::Erased<[u8; 16usize]>>
  34:        0x107720e34 - <rustc_query_impl[23aa8cd7557db5ec]::query_impl::codegen_select_candidate::dynamic_query::{closure#2} as core[154e01997c7268e7]::ops::function::FnOnce<(rustc_middle[52979066c3c8bde6]::ty::context::TyCtxt, rustc_middle[52979066c3c8bde6]::ty::PseudoCanonicalInput<rustc_type_ir[57ebed0265500450]::predicate::TraitRef<rustc_middle[52979066c3c8bde6]::ty::context::TyCtxt>>)>>::call_once
  35:        0x10760b6d4 - rustc_query_system[5bb926e17a82138e]::query::plumbing::try_execute_query::<rustc_query_impl[23aa8cd7557db5ec]::DynamicConfig<rustc_query_system[5bb926e17a82138e]::query::caches::DefaultCache<rustc_middle[52979066c3c8bde6]::ty::PseudoCanonicalInput<rustc_type_ir[57ebed0265500450]::predicate::TraitRef<rustc_middle[52979066c3c8bde6]::ty::context::TyCtxt>>, rustc_middle[52979066c3c8bde6]::query::erase::Erased<[u8; 16usize]>>, false, false, false>, rustc_query_impl[23aa8cd7557db5ec]::plumbing::QueryCtxt, true>
  36:        0x1077cd758 - rustc_query_impl[23aa8cd7557db5ec]::query_impl::codegen_select_candidate::get_query_incr::__rust_end_short_backtrace
  37:        0x1069af7f8 - rustc_monomorphize[b78f6d90ee87c4b8]::custom_coerce_unsize_info
  38:        0x10697c2a8 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::find_vtable_types_for_unsizing
  39:        0x10697a998 - <rustc_monomorphize[b78f6d90ee87c4b8]::collector::MirUsedCollector as rustc_middle[52979066c3c8bde6]::mir::visit::Visitor>::visit_rvalue
  40:        0x10697dddc - rustc_monomorphize[b78f6d90ee87c4b8]::collector::items_of_instance
  41:        0x1076dcaec - rustc_query_impl[23aa8cd7557db5ec]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[23aa8cd7557db5ec]::query_impl::items_of_instance::dynamic_query::{closure#2}::{closure#0}, rustc_middle[52979066c3c8bde6]::query::erase::Erased<[u8; 32usize]>>
  42:        0x1077175c8 - <rustc_query_impl[23aa8cd7557db5ec]::query_impl::items_of_instance::dynamic_query::{closure#2} as core[154e01997c7268e7]::ops::function::FnOnce<(rustc_middle[52979066c3c8bde6]::ty::context::TyCtxt, (rustc_middle[52979066c3c8bde6]::ty::instance::Instance, rustc_middle[52979066c3c8bde6]::mir::mono::CollectionMode))>>::call_once
  43:        0x10767af9c - rustc_query_system[5bb926e17a82138e]::query::plumbing::try_execute_query::<rustc_query_impl[23aa8cd7557db5ec]::DynamicConfig<rustc_query_system[5bb926e17a82138e]::query::caches::DefaultCache<(rustc_middle[52979066c3c8bde6]::ty::instance::Instance, rustc_middle[52979066c3c8bde6]::mir::mono::CollectionMode), rustc_middle[52979066c3c8bde6]::query::erase::Erased<[u8; 32usize]>>, false, false, false>, rustc_query_impl[23aa8cd7557db5ec]::plumbing::QueryCtxt, true>
  44:        0x1077e5ca8 - rustc_query_impl[23aa8cd7557db5ec]::query_impl::items_of_instance::get_query_incr::__rust_end_short_backtrace
  45:        0x10697ed60 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
  46:        0x10697f794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
  47:        0x10697f794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
  48:        0x10697f794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
  49:        0x10697f794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
  50:        0x10697f794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
  51:        0x10697f794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
  52:        0x10697f794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
  53:        0x10697f794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
  54:        0x10697f794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
  55:        0x10697f794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
  56:        0x10697f794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
  57:        0x10697f794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
  58:        0x10697f794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
  59:        0x10697f794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
  60:        0x10697f794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
  61:        0x10697f794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
  62:        0x10697f794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
  63:        0x10697f794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
  64:        0x10697f794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
  65:        0x10697f794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
  66:        0x10697f794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
  67:        0x10697f794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
  68:        0x10697f794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
  69:        0x10697f794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
  70:        0x10697f794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
  71:        0x10697f794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
  72:        0x10697f794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
  73:        0x10697f794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
  74:        0x10697f794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
  75:        0x10697f794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
  76:        0x10697f794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
  77:        0x10697f794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
  78:        0x10697f794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
  79:        0x10697f794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
  80:        0x10697f794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
  81:        0x10697f794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
  82:        0x10697f794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
  83:        0x10697f794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
  84:        0x10697f794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
  85:        0x10697f794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
  86:        0x10697f794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
  87:        0x10697f794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
  88:        0x10697f794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
  89:        0x10697f794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
  90:        0x10697f794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
  91:        0x10697f794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
  92:        0x10697f794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
  93:        0x10697f794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
  94:        0x10697f794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
  95:        0x10697f794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
  96:        0x10697f794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
  97:        0x10697f794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
  98:        0x10697f794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
  99:        0x10697f794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
 100:        0x10697f794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
 101:        0x10697f794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
 102:        0x10697f794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
 103:        0x10697f794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
 104:        0x10697f794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
 105:        0x10697f794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
 106:        0x10697f794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
 107:        0x10697f794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
 108:        0x10697f794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
 109:        0x10697f794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
 110:        0x10697f794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
 111:        0x10697f794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
 112:        0x10697f794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
 113:        0x10697f794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
 114:        0x10697f794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
 115:        0x10697f794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
 116:        0x10697f794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
 117:        0x10697f794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
 118:        0x10697f794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
 119:        0x10697f794 - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_items_rec
 120:        0x1069a1528 - <rustc_data_structures[22796f94ef206356]::sync::parallel::ParallelGuard>::run::<(), rustc_data_structures[22796f94ef206356]::sync::parallel::par_for_each_in<rustc_middle[52979066c3c8bde6]::mir::mono::MonoItem, alloc[7b838a86c52b316b]::vec::Vec<rustc_middle[52979066c3c8bde6]::mir::mono::MonoItem>, rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_crate_mono_items::{closure#1}::{closure#0}>::{closure#0}::{closure#1}::{closure#0}>
 121:        0x1069a94c8 - <rustc_session[4e9477578bc9c318]::session::Session>::time::<(), rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_crate_mono_items::{closure#1}>
 122:        0x10698119c - rustc_monomorphize[b78f6d90ee87c4b8]::collector::collect_crate_mono_items
 123:        0x106986894 - rustc_monomorphize[b78f6d90ee87c4b8]::partitioning::collect_and_partition_mono_items
 124:        0x1076e163c - rustc_query_impl[23aa8cd7557db5ec]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[23aa8cd7557db5ec]::query_impl::collect_and_partition_mono_items::dynamic_query::{closure#2}::{closure#0}, rustc_middle[52979066c3c8bde6]::query::erase::Erased<[u8; 24usize]>>
 125:        0x1077257c0 - <rustc_query_impl[23aa8cd7557db5ec]::query_impl::collect_and_partition_mono_items::dynamic_query::{closure#2} as core[154e01997c7268e7]::ops::function::FnOnce<(rustc_middle[52979066c3c8bde6]::ty::context::TyCtxt, ())>>::call_once
 126:        0x107600f94 - rustc_query_system[5bb926e17a82138e]::query::plumbing::try_execute_query::<rustc_query_impl[23aa8cd7557db5ec]::DynamicConfig<rustc_query_system[5bb926e17a82138e]::query::caches::SingleCache<rustc_middle[52979066c3c8bde6]::query::erase::Erased<[u8; 24usize]>>, false, false, false>, rustc_query_impl[23aa8cd7557db5ec]::plumbing::QueryCtxt, true>
 127:        0x1077de764 - rustc_query_impl[23aa8cd7557db5ec]::query_impl::collect_and_partition_mono_items::get_query_incr::__rust_end_short_backtrace
 128:        0x1063c1778 - rustc_codegen_ssa[6451673db5079e3f]::base::codegen_crate::<rustc_codegen_llvm[b2988737c0c9b810]::LlvmCodegenBackend>
 129:        0x10643ec6c - <rustc_codegen_llvm[b2988737c0c9b810]::LlvmCodegenBackend as rustc_codegen_ssa[6451673db5079e3f]::traits::backend::CodegenBackend>::codegen_crate
 130:        0x106356344 - <rustc_session[4e9477578bc9c318]::session::Session>::time::<alloc[7b838a86c52b316b]::boxed::Box<dyn core[154e01997c7268e7]::any::Any>, rustc_interface[1435849924764c54]::passes::start_codegen::{closure#0}>
 131:        0x106332cf0 - rustc_interface[1435849924764c54]::passes::start_codegen
 132:        0x106369758 - <rustc_interface[1435849924764c54]::queries::Linker>::codegen_and_build_linker
 133:        0x10618356c - <rustc_middle[52979066c3c8bde6]::ty::context::TyCtxt>::create_global_ctxt::<core[154e01997c7268e7]::option::Option<rustc_interface[1435849924764c54]::queries::Linker>, rustc_interface[1435849924764c54]::passes::create_and_enter_global_ctxt<core[154e01997c7268e7]::option::Option<rustc_interface[1435849924764c54]::queries::Linker>, rustc_driver_impl[cfcc4bafc47ca80]::run_compiler::{closure#0}::{closure#2}>::{closure#2}::{closure#0}>
 134:        0x10614eb64 - <rustc_interface[1435849924764c54]::passes::create_and_enter_global_ctxt<core[154e01997c7268e7]::option::Option<rustc_interface[1435849924764c54]::queries::Linker>, rustc_driver_impl[cfcc4bafc47ca80]::run_compiler::{closure#0}::{closure#2}>::{closure#2} as core[154e01997c7268e7]::ops::function::FnOnce<(&rustc_session[4e9477578bc9c318]::session::Session, rustc_middle[52979066c3c8bde6]::ty::context::CurrentGcx, &std[d2b4a93c40de67a4]::sync::once_lock::OnceLock<rustc_middle[52979066c3c8bde6]::ty::context::GlobalCtxt>, &rustc_data_structures[22796f94ef206356]::sync::worker_local::WorkerLocal<rustc_middle[52979066c3c8bde6]::arena::Arena>, &rustc_data_structures[22796f94ef206356]::sync::worker_local::WorkerLocal<rustc_hir[1c4daa29a3d5d4ec]::Arena>, rustc_driver_impl[cfcc4bafc47ca80]::run_compiler::{closure#0}::{closure#2})>>::call_once::{shim:vtable#0}
 135:        0x1061349bc - rustc_interface[1435849924764c54]::passes::create_and_enter_global_ctxt::<core[154e01997c7268e7]::option::Option<rustc_interface[1435849924764c54]::queries::Linker>, rustc_driver_impl[cfcc4bafc47ca80]::run_compiler::{closure#0}::{closure#2}>
 136:        0x10615675c - <scoped_tls[400b39c51cac609b]::ScopedKey<rustc_span[117a8bc13a61ced1]::SessionGlobals>>::set::<rustc_interface[1435849924764c54]::util::run_in_thread_with_globals<rustc_interface[1435849924764c54]::util::run_in_thread_pool_with_globals<rustc_interface[1435849924764c54]::interface::run_compiler<(), rustc_driver_impl[cfcc4bafc47ca80]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}::{closure#0}, ()>
 137:        0x10615e644 - rustc_span[117a8bc13a61ced1]::create_session_globals_then::<(), rustc_interface[1435849924764c54]::util::run_in_thread_with_globals<rustc_interface[1435849924764c54]::util::run_in_thread_pool_with_globals<rustc_interface[1435849924764c54]::interface::run_compiler<(), rustc_driver_impl[cfcc4bafc47ca80]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}::{closure#0}>
 138:        0x10619869c - std[d2b4a93c40de67a4]::sys::backtrace::__rust_begin_short_backtrace::<rustc_interface[1435849924764c54]::util::run_in_thread_with_globals<rustc_interface[1435849924764c54]::util::run_in_thread_pool_with_globals<rustc_interface[1435849924764c54]::interface::run_compiler<(), rustc_driver_impl[cfcc4bafc47ca80]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()>
 139:        0x10615d1e8 - <<std[d2b4a93c40de67a4]::thread::Builder>::spawn_unchecked_<rustc_interface[1435849924764c54]::util::run_in_thread_with_globals<rustc_interface[1435849924764c54]::util::run_in_thread_pool_with_globals<rustc_interface[1435849924764c54]::interface::run_compiler<(), rustc_driver_impl[cfcc4bafc47ca80]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()>::{closure#1} as core[154e01997c7268e7]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
 140:        0x10893b660 - std::sys::pal::unix::thread::Thread::new::thread_start::h1e50832d06f6350c
 141:        0x19a0382e4 - __pthread_deallocate

error: 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.85.0 (4d91de4e4 2025-02-17) (Homebrew) running on aarch64-apple-darwin

note: compiler flags: --crate-type bin -C embed-bitcode=no -C debuginfo=2 -C split-debuginfo=unpacked -C incremental=[REDACTED]

note: some of the compiler flags provided by cargo are hidden

query stack during panic:
#0 [evaluate_obligation] evaluating trait selection obligation `{coroutine witness@pingora_proxy::HttpProxy<r_proxy_core::middleware::middlewares::Middlewares>::handle_error::{closure#0}}: core::marker::Send`
#1 [codegen_select_candidate] computing candidate for `<core::pin::Pin<alloc::boxed::Box<{async block@<pingora_proxy::HttpProxy<r_proxy_core::middleware::middlewares::Middlewares> as pingora_core::apps::HttpServerApp>::process_new_http<'_, '_, '_>::{closure#0}}>> as core::ops::unsize::CoerceUnsized<core::pin::Pin<alloc::boxed::Box<dyn core::future::future::Future<Output = core::option::Option<alloc::boxed::Box<dyn pingora_core::protocols::IO>>> + core::marker::Send>>>>`
end of query stack
there was a panic while trying to force a dep node
try_mark_green dep node stack:
#0 TraitSelect(6d477fd7a5dd4ed4-d8b41a39536f2981)
#1 TraitSelect(eb873cd05a8b47d5-ce925a851794ec65)
#2 TraitSelect(f2b9cdc39d79ca17-4457d22a76adef05)
#3 evaluate_obligation(de621111c014325f-b866ac978e5eaa88)
end of try_mark_green dep node stack
error: could not compile `r-proxy` (bin "r-proxy")

Caused by:
  process didn't exit successfully: `rustc --crate-name r_proxy --edition=2024 src/main.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=155 --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debuginfo=2 -C split-debuginfo=unpacked --check-cfg 'cfg(docsrs,test)' --check-cfg 'cfg(feature, values())' -C metadata=183f40992bffdc37 -C extra-filename=-6d4c2d1e385539f4 --out-dir /Users/sharath/Library/CloudStorage/Dropbox/Development/Javelin/javelin-rust/target/debug/deps -C incremental=/Users/sharath/Library/CloudStorage/Dropbox/Development/Javelin/javelin-rust/target/debug/incremental -L dependency=/Users/sharath/Library/CloudStorage/Dropbox/Development/Javelin/javelin-rust/target/debug/deps --extern anyhow=/Users/sharath/Library/CloudStorage/Dropbox/Development/Javelin/javelin-rust/target/debug/deps/libanyhow-34b7f1672c212a25.rlib --extern clap=/Users/sharath/Library/CloudStorage/Dropbox/Development/Javelin/javelin-rust/target/debug/deps/libclap-f6b653585b75b2d1.rlib --extern pingora=/Users/sharath/Library/CloudStorage/Dropbox/Development/Javelin/javelin-rust/target/debug/deps/libpingora-ffff7158c391d561.rlib --extern psutil=/Users/sharath/Library/CloudStorage/Dropbox/Development/Javelin/javelin-rust/target/debug/deps/libpsutil-d69d40eea360f61a.rlib --extern r_proxy=/Users/sharath/Library/CloudStorage/Dropbox/Development/Javelin/javelin-rust/target/debug/deps/libr_proxy-5147bf664af08f39.rlib --extern r_proxy_core=/Users/sharath/Library/CloudStorage/Dropbox/Development/Javelin/javelin-rust/target/debug/deps/libr_proxy_core-ee6fcec37f7ce15e.rlib --extern tokio=/Users/sharath/Library/CloudStorage/Dropbox/Development/Javelin/javelin-rust/target/debug/deps/libtokio-234206cf4582da4d.rlib --extern tracing=/Users/sharath/Library/CloudStorage/Dropbox/Development/Javelin/javelin-rust/target/debug/deps/libtracing-4f1adf68ed35fa6d.rlib --extern tracing_subscriber=/Users/sharath/Library/CloudStorage/Dropbox/Development/Javelin/javelin-rust/target/debug/deps/libtracing_subscriber-7d0a05ba9cb80914.rlib -L native=/Users/sharath/Library/CloudStorage/Dropbox/Development/Javelin/javelin-rust/target/debug/build/libz-ng-sys-8c62b968c3a18421/out/lib -L native=/Users/sharath/Library/CloudStorage/Dropbox/Development/Javelin/javelin-rust/target/debug/build/openssl-sys-04d1be9a9dcf77bc/out/openssl-build/install/lib -L native=/Users/sharath/Library/CloudStorage/Dropbox/Development/Javelin/javelin-rust/target/debug/build/zstd-sys-958099b97a9de750/out` (exit status: 101)
make: *** [build] Error 101
</backtrace>

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️S-needs-reproStatus: This issue has no reproduction and needs a reproduction to make progress.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions