Skip to content

Failure to compile on nightly: perhaps the coroutine_for_closure query was never assigned a provider function #121017

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
humb1t opened this issue Feb 13, 2024 · 2 comments
Labels
C-bug Category: This is a bug. I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Comments

@humb1t
Copy link

humb1t commented Feb 13, 2024

Code

Unfortunately the codebase is proprietary, but this piece of code is safe to share.

#[allow(clippy::unused_async)]
pub async fn graphql_ws_handler<Q: ObjectType + 'static, M: ObjectType + 'static, S: SubscriptionType + 'static>(
    schema: Extension<Schema<Q, M, S>>,
    protocol: GraphQLProtocol,
    websocket: WebSocketUpgrade,
    state: State<String>,
) -> impl IntoResponse {
    let secret = state.0;
    let on_connection_init = async move |connection_init_payload: serde_json::Value| {
        #[derive(Deserialize)]
        struct Payload {
            #[serde(rename = "Authorization")]
            bearer_token_string: String,
        }
        if let Ok(payload) = serde_json::from_value::<Payload>(connection_init_payload) {
            let mut data = Data::default();
            let jwt_claims = JwtClaims(
                jsonwebtoken::decode::<RegisteredClaims>(
                    payload.bearer_token_string.trim_start_matches("Bearer "),
                    &DecodingKey::from_secret(secret.as_bytes()),
                    &Validation::default(),
                )?
                .claims,
            );
            tracing::debug!("{:?}", &jwt_claims);
            data.insert(jwt_claims);
            Ok(data)
        } else {
            Err("Failed to init connection - token required".into())
        }
    };
    websocket.protocols(ALL_WEBSOCKET_PROTOCOLS).on_upgrade(move |stream| {
        GraphQLWebSocket::new(stream, schema.0, protocol)
            .on_connection_init(on_connection_init)
            .serve()
    })
}

Meta∆

rustc --version --verbose:

rustc 1.78.0-nightly (1a648b397 2024-02-11)

Error output

error: internal compiler error: compiler/rustc_middle/src/query/mod.rs:2222:1: `tcx.coroutine_for_closure(DefId(143:50 ~ graphql[eea6]::handlers::graphql_ws_handler::{closure#0}::{closure#0}))` unsupported by its crate; perhaps the `coroutine_for_closure` query was never assigned a provider function
Backtrace

stack backtrace:
   0:        0x1015ddfbc - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h4a0a68be335d4914
   1:        0x1016211a8 - core::fmt::write::h6e402872426c84c7
   2:        0x1015d4720 - std::io::Write::write_fmt::hccb279f7ddeda194
   3:        0x1015dddf8 - std::sys_common::backtrace::print::h10502623eb5a7d38
   4:        0x1015e08e8 - std::panicking::default_hook::{{closure}}::h38eb31f24465acd2
   5:        0x1015e0628 - std::panicking::default_hook::h1b82db842fc41ec1
   6:        0x10abc7324 - std[e77b8cc82bfbcdfd]::panicking::update_hook::<alloc[1c9bd4fa5433bea]::boxed::Box<rustc_driver_impl[219c9928d75f923b]::install_ice_hook::{closure#0}>>::{closure#0}
   7:        0x1015e0f74 - std::panicking::rust_panic_with_hook::hc40baab8129fe7f9
   8:        0x10ac468bc - std[e77b8cc82bfbcdfd]::panicking::begin_panic::<rustc_errors[7c5efc93a3acd179]::ExplicitBug>::{closure#0}
   9:        0x10ac430a0 - std[e77b8cc82bfbcdfd]::sys_common::backtrace::__rust_end_short_backtrace::<std[e77b8cc82bfbcdfd]::panicking::begin_panic<rustc_errors[7c5efc93a3acd179]::ExplicitBug>::{closure#0}, !>
  10:        0x10e9e6360 - std[e77b8cc82bfbcdfd]::panicking::begin_panic::<rustc_errors[7c5efc93a3acd179]::ExplicitBug>
  11:        0x10ac501d0 - <rustc_errors[7c5efc93a3acd179]::diagnostic_builder::BugAbort as rustc_errors[7c5efc93a3acd179]::diagnostic_builder::EmissionGuarantee>::emit_producing_guarantee
  12:        0x10b62ce40 - <rustc_errors[7c5efc93a3acd179]::DiagCtxt>::bug::<alloc[1c9bd4fa5433bea]::string::String>
  13:        0x10b6f8bb4 - rustc_middle[82fdd60edd279704]::util::bug::opt_span_bug_fmt::<rustc_span[9910a9a9a2b8b1b0]::span_encoding::Span>::{closure#0}
  14:        0x10b6f7324 - rustc_middle[82fdd60edd279704]::ty::context::tls::with_opt::<rustc_middle[82fdd60edd279704]::util::bug::opt_span_bug_fmt<rustc_span[9910a9a9a2b8b1b0]::span_encoding::Span>::{closure#0}, !>::{closure#0}
  15:        0x10b6f6f5c - rustc_middle[82fdd60edd279704]::ty::context::tls::with_context_opt::<rustc_middle[82fdd60edd279704]::ty::context::tls::with_opt<rustc_middle[82fdd60edd279704]::util::bug::opt_span_bug_fmt<rustc_span[9910a9a9a2b8b1b0
  16:        0x10ea8345c - rustc_middle[82fdd60edd279704]::util::bug::bug_fmt
  17:        0x10b6d94f0 - <<rustc_middle[82fdd60edd279704]::query::ExternProviders as core[3a363f1eef6f7cb2]::default::Default>::default::{closure#28} as core[3a363f1eef6f7cb2]::ops::function::FnOnce<(rustc_middle[82fdd60edd279704]::ty::cont
  18:        0x10be04388 - rustc_query_impl[d9b7452daba4f436]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[d9b7452daba4f436]::query_impl::coroutine_for_closure::dynamic_query::{closure#2}::{closure#0}, rustc_middle[82fdd60edd279
  19:        0x10bf5ca90 - <rustc_query_impl[d9b7452daba4f436]::query_impl::coroutine_for_closure::dynamic_query::{closure#2} as core[3a363f1eef6f7cb2]::ops::function::FnOnce<(rustc_middle[82fdd60edd279704]::ty::context::TyCtxt, rustc_span[99
  20:        0x10bd2bd50 - rustc_query_system[f11765a6e63743ab]::query::plumbing::try_execute_query::<rustc_query_impl[d9b7452daba4f436]::DynamicConfig<rustc_query_system[f11765a6e63743ab]::query::caches::DefIdCache<rustc_middle[82fdd60edd279
  21:        0x10be7e384 - rustc_query_impl[d9b7452daba4f436]::query_impl::coroutine_for_closure::get_query_incr::__rust_end_short_backtrace
  22:        0x10c426628 - rustc_middle[82fdd60edd279704]::query::plumbing::query_get_at::<rustc_query_system[f11765a6e63743ab]::query::caches::DefIdCache<rustc_middle[82fdd60edd279704]::query::erase::Erased<[u8; 8usize]>>>
  23:        0x10c444ba8 - rustc_trait_selection[245e993a42eb5754]::traits::project::project
  24:        0x10c4419a8 - rustc_trait_selection[245e993a42eb5754]::traits::project::opt_normalize_projection_type
  25:        0x10c43ee10 - rustc_trait_selection[245e993a42eb5754]::traits::project::project_and_unify_type
  26:        0x10c2e4838 - <rustc_infer[aabe15202c70372f]::infer::InferCtxt>::commit_if_ok::<rustc_trait_selection[245e993a42eb5754]::traits::project::ProjectAndUnifyResult, rustc_infer[aabe15202c70372f]::traits::project::MismatchedProjection
  27:        0x10c43ed74 - rustc_trait_selection[245e993a42eb5754]::traits::project::poly_project_and_unify_type
  28:        0x10c31f13c - <rustc_trait_selection[245e993a42eb5754]::traits::select::SelectionContext>::evaluate_predicate_recursively
  29:        0x10c31e9c0 - <rustc_trait_selection[245e993a42eb5754]::traits::select::SelectionContext>::evaluate_predicates_recursively::<alloc[1c9bd4fa5433bea]::vec::into_iter::IntoIter<rustc_infer[aabe15202c70372f]::traits::Obligation<rustc
  30:        0x10c2ff9cc - <rustc_trait_selection[245e993a42eb5754]::traits::select::SelectionContext>::evaluation_probe::<<rustc_trait_selection[245e993a42eb5754]::traits::select::SelectionContext>::evaluate_candidate::{closure#0}::{closure#
  31:        0x10c2e8acc - <rustc_infer[aabe15202c70372f]::infer::InferCtxt>::probe::<core[3a363f1eef6f7cb2]::result::Result<rustc_middle[82fdd60edd279704]::traits::select::EvaluationResult, rustc_middle[82fdd60edd279704]::traits::select::Ove
  32:        0x10c312508 - <rustc_trait_selection[245e993a42eb5754]::traits::select::SelectionContext>::evaluate_stack
  33:        0x10c3050d4 - <rustc_middle[82fdd60edd279704]::dep_graph::DepsType as rustc_query_system[f11765a6e63743ab]::dep_graph::Deps>::with_deps::<<rustc_trait_selection[245e993a42eb5754]::traits::select::SelectionContext>::in_task<<rustc
  34:        0x10c446fd4 - <rustc_query_system[f11765a6e63743ab]::dep_graph::graph::DepGraph<rustc_middle[82fdd60edd279704]::dep_graph::DepsType>>::with_anon_task::<rustc_middle[82fdd60edd279704]::ty::context::TyCtxt, <rustc_trait_selection[2
  35:        0x10c31fd38 - <rustc_trait_selection[245e993a42eb5754]::traits::select::SelectionContext>::evaluate_trait_predicate_recursively
  36:        0x10c31ecf0 - <rustc_trait_selection[245e993a42eb5754]::traits::select::SelectionContext>::evaluate_predicate_recursively
  37:        0x10c2ffd34 - <rustc_trait_selection[245e993a42eb5754]::traits::select::SelectionContext>::evaluation_probe::<<rustc_trait_selection[245e993a42eb5754]::traits::select::SelectionContext>::evaluate_root_obligation::{closure#0}>::{c
  38:        0x10c2e9064 - <rustc_infer[aabe15202c70372f]::infer::InferCtxt>::probe::<core[3a363f1eef6f7cb2]::result::Result<rustc_middle[82fdd60edd279704]::traits::select::EvaluationResult, rustc_middle[82fdd60edd279704]::traits::select::Ove
  39:        0x10c4e0b7c - rustc_traits[6ea151025c428050]::evaluate_obligation::evaluate_obligation
  40:        0x10be03b8c - rustc_query_impl[d9b7452daba4f436]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[d9b7452daba4f436]::query_impl::evaluate_obligation::dynamic_query::{closure#2}::{closure#0}, rustc_middle[82fdd60edd27970
  41:        0x10bea57b4 - <rustc_query_impl[d9b7452daba4f436]::query_impl::evaluate_obligation::dynamic_query::{closure#2} as core[3a363f1eef6f7cb2]::ops::function::FnOnce<(rustc_middle[82fdd60edd279704]::ty::context::TyCtxt, rustc_type_ir[7
  42:        0x10bd4e928 - rustc_query_system[f11765a6e63743ab]::query::plumbing::try_execute_query::<rustc_query_impl[d9b7452daba4f436]::DynamicConfig<rustc_query_system[f11765a6e63743ab]::query::caches::DefaultCache<rustc_type_ir[7d33213526
  43:        0x10bfa5084 - rustc_query_impl[d9b7452daba4f436]::query_impl::evaluate_obligation::get_query_incr::__rust_end_short_backtrace
  44:        0x10c2fe5f4 - <rustc_infer[aabe15202c70372f]::infer::InferCtxt as rustc_trait_selection[245e993a42eb5754]::traits::query::evaluate_obligation::InferCtxtExt>::evaluate_obligation
  45:        0x10c2fe978 - <rustc_infer[aabe15202c70372f]::infer::InferCtxt as rustc_trait_selection[245e993a42eb5754]::traits::query::evaluate_obligation::InferCtxtExt>::evaluate_obligation_no_overflow
  46:        0x10c38be98 - <rustc_trait_selection[245e993a42eb5754]::traits::fulfill::FulfillProcessor>::process_trait_obligation
  47:        0x10c38b030 - <rustc_trait_selection[245e993a42eb5754]::traits::fulfill::FulfillProcessor as rustc_data_structures[712596e8823b4fc6]::obligation_forest::ObligationProcessor>::process_obligation
  48:        0x10c378fe4 - <rustc_data_structures[712596e8823b4fc6]::obligation_forest::ObligationForest<rustc_trait_selection[245e993a42eb5754]::traits::fulfill::PendingPredicateObligation>>::process_obligations::<rustc_trait_selection[245e9
  49:        0x10c3880f4 - <rustc_trait_selection[245e993a42eb5754]::traits::fulfill::FulfillmentContext as rustc_infer[aabe15202c70372f]::traits::engine::TraitEngine>::select_where_possible
  50:        0x10c4e030c - rustc_traits[6ea151025c428050]::codegen::codegen_select_candidate
  51:        0x10be056e8 - rustc_query_impl[d9b7452daba4f436]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[d9b7452daba4f436]::query_impl::codegen_select_candidate::dynamic_query::{closure#2}::{closure#0}, rustc_middle[82fdd60edd
  52:        0x10bec16ec - <rustc_query_impl[d9b7452daba4f436]::query_impl::codegen_select_candidate::dynamic_query::{closure#2} as core[3a363f1eef6f7cb2]::ops::function::FnOnce<(rustc_middle[82fdd60edd279704]::ty::context::TyCtxt, (rustc_mid
  53:        0x10bd981e0 - rustc_query_system[f11765a6e63743ab]::query::plumbing::try_execute_query::<rustc_query_impl[d9b7452daba4f436]::DynamicConfig<rustc_query_system[f11765a6e63743ab]::query::caches::DefaultCache<(rustc_middle[82fdd60edd
  54:        0x10bfa33a4 - rustc_query_impl[d9b7452daba4f436]::query_impl::codegen_select_candidate::get_query_incr::__rust_end_short_backtrace
  55:        0x10c559b08 - rustc_ty_utils[2a74e4c401905c8a]::instance::resolve_instance
  56:        0x10be02cc8 - rustc_query_impl[d9b7452daba4f436]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[d9b7452daba4f436]::query_impl::resolve_instance::dynamic_query::{closure#2}::{closure#0}, rustc_middle[82fdd60edd279704]:
  57:        0x10bebe1ac - <rustc_query_impl[d9b7452daba4f436]::query_impl::resolve_instance::dynamic_query::{closure#2} as core[3a363f1eef6f7cb2]::ops::function::FnOnce<(rustc_middle[82fdd60edd279704]::ty::context::TyCtxt, rustc_middle[82fdd
  58:        0x10bd69fc4 - rustc_query_system[f11765a6e63743ab]::query::plumbing::try_execute_query::<rustc_query_impl[d9b7452daba4f436]::DynamicConfig<rustc_query_system[f11765a6e63743ab]::query::caches::DefaultCache<rustc_middle[82fdd60edd2
  59:        0x10bfa5570 - rustc_query_impl[d9b7452daba4f436]::query_impl::resolve_instance::get_query_incr::__rust_end_short_backtrace
  60:        0x10b6e69b4 - <rustc_middle[82fdd60edd279704]::ty::instance::Instance>::resolve
  61:        0x10b6e1bbc - <rustc_middle[82fdd60edd279704]::ty::instance::Instance>::expect_resolve
  62:        0x10ba02db0 - <rustc_monomorphize[44a02060cf3ad5f6]::collector::MirUsedCollector as rustc_middle[82fdd60edd279704]::mir::visit::Visitor>::visit_terminator
  63:        0x10ba001e8 - <rustc_monomorphize[44a02060cf3ad5f6]::collector::MirUsedCollector as rustc_middle[82fdd60edd279704]::mir::visit::Visitor>::super_body
  64:        0x10ba05e50 - rustc_monomorphize[44a02060cf3ad5f6]::collector::collect_items_rec
  65:        0x10ba06480 - rustc_monomorphize[44a02060cf3ad5f6]::collector::collect_items_rec
  66:        0x10ba06480 - rustc_monomorphize[44a02060cf3ad5f6]::collector::collect_items_rec
  67:        0x10ba06480 - rustc_monomorphize[44a02060cf3ad5f6]::collector::collect_items_rec
  68:        0x10ba06480 - rustc_monomorphize[44a02060cf3ad5f6]::collector::collect_items_rec
  69:        0x10ba06480 - rustc_monomorphize[44a02060cf3ad5f6]::collector::collect_items_rec
  70:        0x10ba06480 - rustc_monomorphize[44a02060cf3ad5f6]::collector::collect_items_rec
  71:        0x10ba06480 - rustc_monomorphize[44a02060cf3ad5f6]::collector::collect_items_rec
  72:        0x10ba06480 - rustc_monomorphize[44a02060cf3ad5f6]::collector::collect_items_rec
  73:        0x10ba06480 - rustc_monomorphize[44a02060cf3ad5f6]::collector::collect_items_rec
  74:        0x10ba06480 - rustc_monomorphize[44a02060cf3ad5f6]::collector::collect_items_rec
  75:        0x10ba06480 - rustc_monomorphize[44a02060cf3ad5f6]::collector::collect_items_rec
  76:        0x10ba06480 - rustc_monomorphize[44a02060cf3ad5f6]::collector::collect_items_rec
  77:        0x10ba06480 - rustc_monomorphize[44a02060cf3ad5f6]::collector::collect_items_rec
  78:        0x10ba06480 - rustc_monomorphize[44a02060cf3ad5f6]::collector::collect_items_rec
  79:        0x10ba06480 - rustc_monomorphize[44a02060cf3ad5f6]::collector::collect_items_rec
  80:        0x10ba06480 - rustc_monomorphize[44a02060cf3ad5f6]::collector::collect_items_rec
  81:        0x10ba06480 - rustc_monomorphize[44a02060cf3ad5f6]::collector::collect_items_rec
  82:        0x10ba06480 - rustc_monomorphize[44a02060cf3ad5f6]::collector::collect_items_rec
  83:        0x10ba06480 - rustc_monomorphize[44a02060cf3ad5f6]::collector::collect_items_rec
  84:        0x10ba06480 - rustc_monomorphize[44a02060cf3ad5f6]::collector::collect_items_rec
  85:        0x10ba06480 - rustc_monomorphize[44a02060cf3ad5f6]::collector::collect_items_rec
  86:        0x10ba06480 - rustc_monomorphize[44a02060cf3ad5f6]::collector::collect_items_rec
  87:        0x10ba06480 - rustc_monomorphize[44a02060cf3ad5f6]::collector::collect_items_rec
  88:        0x10ba06480 - rustc_monomorphize[44a02060cf3ad5f6]::collector::collect_items_rec
  89:        0x10ba06480 - rustc_monomorphize[44a02060cf3ad5f6]::collector::collect_items_rec
  90:        0x10ba06480 - rustc_monomorphize[44a02060cf3ad5f6]::collector::collect_items_rec
  91:        0x10ba06480 - rustc_monomorphize[44a02060cf3ad5f6]::collector::collect_items_rec
  92:        0x10ba06480 - rustc_monomorphize[44a02060cf3ad5f6]::collector::collect_items_rec
  93:        0x10ba06480 - rustc_monomorphize[44a02060cf3ad5f6]::collector::collect_items_rec
  94:        0x10ba06480 - rustc_monomorphize[44a02060cf3ad5f6]::collector::collect_items_rec
  95:        0x10ba06480 - rustc_monomorphize[44a02060cf3ad5f6]::collector::collect_items_rec
  96:        0x10ba06480 - rustc_monomorphize[44a02060cf3ad5f6]::collector::collect_items_rec
  97:        0x10ba06480 - rustc_monomorphize[44a02060cf3ad5f6]::collector::collect_items_rec
  98:        0x10ba06480 - rustc_monomorphize[44a02060cf3ad5f6]::collector::collect_items_rec
  99:        0x10ba06480 - rustc_monomorphize[44a02060cf3ad5f6]::collector::collect_items_rec
 100:        0x10ba06480 - rustc_monomorphize[44a02060cf3ad5f6]::collector::collect_items_rec
 101:        0x10ba06480 - rustc_monomorphize[44a02060cf3ad5f6]::collector::collect_items_rec
 102:        0x10ba06480 - rustc_monomorphize[44a02060cf3ad5f6]::collector::collect_items_rec
 103:        0x10ba06480 - rustc_monomorphize[44a02060cf3ad5f6]::collector::collect_items_rec
 104:        0x10ba06480 - rustc_monomorphize[44a02060cf3ad5f6]::collector::collect_items_rec
 105:        0x10ba06480 - rustc_monomorphize[44a02060cf3ad5f6]::collector::collect_items_rec
 106:        0x10ba06480 - rustc_monomorphize[44a02060cf3ad5f6]::collector::collect_items_rec
 107:        0x10ba06480 - rustc_monomorphize[44a02060cf3ad5f6]::collector::collect_items_rec
 108:        0x10ba06480 - rustc_monomorphize[44a02060cf3ad5f6]::collector::collect_items_rec
 109:        0x10ba06480 - rustc_monomorphize[44a02060cf3ad5f6]::collector::collect_items_rec
 110:        0x10ba06480 - rustc_monomorphize[44a02060cf3ad5f6]::collector::collect_items_rec
 111:        0x10ba06480 - rustc_monomorphize[44a02060cf3ad5f6]::collector::collect_items_rec
 112:        0x10ba06480 - rustc_monomorphize[44a02060cf3ad5f6]::collector::collect_items_rec
 113:        0x10ba06480 - rustc_monomorphize[44a02060cf3ad5f6]::collector::collect_items_rec
 114:        0x10ba06480 - rustc_monomorphize[44a02060cf3ad5f6]::collector::collect_items_rec
 115:        0x10ba06480 - rustc_monomorphize[44a02060cf3ad5f6]::collector::collect_items_rec
 116:        0x10ba06480 - rustc_monomorphize[44a02060cf3ad5f6]::collector::collect_items_rec
 117:        0x10ba06480 - rustc_monomorphize[44a02060cf3ad5f6]::collector::collect_items_rec
 118:        0x10ba06480 - rustc_monomorphize[44a02060cf3ad5f6]::collector::collect_items_rec
 119:        0x10ba06480 - rustc_monomorphize[44a02060cf3ad5f6]::collector::collect_items_rec
 120:        0x10ba06480 - rustc_monomorphize[44a02060cf3ad5f6]::collector::collect_items_rec
 121:        0x10ba06480 - rustc_monomorphize[44a02060cf3ad5f6]::collector::collect_items_rec
 122:        0x10ba06480 - rustc_monomorphize[44a02060cf3ad5f6]::collector::collect_items_rec
 123:        0x10ba06480 - rustc_monomorphize[44a02060cf3ad5f6]::collector::collect_items_rec
 124:        0x10ba28fec - std[e77b8cc82bfbcdfd]::panicking::try::<(), core[3a363f1eef6f7cb2]::panic::unwind_safe::AssertUnwindSafe<rustc_data_structures[712596e8823b4fc6]::sync::parallel::enabled::par_for_each_in<rustc_middle[82fdd60edd27970
 125:        0x10ba2d78c - <rustc_data_structures[712596e8823b4fc6]::sync::parallel::ParallelGuard>::run::<(), rustc_data_structures[712596e8823b4fc6]::sync::parallel::enabled::par_for_each_in<rustc_middle[82fdd60edd279704]::mir::mono::MonoIt
 126:        0x10ba1a90c - rayon[c833ee01c0c95405]::iter::plumbing::bridge_producer_consumer::helper::<rayon[c833ee01c0c95405]::vec::DrainProducer<rustc_middle[82fdd60edd279704]::mir::mono::MonoItem>, rayon[c833ee01c0c95405]::iter::for_each::
 127:        0x10ba295d4 - rayon_core[cd5ddfc0c0f16cb0]::join::join_context::<rayon[c833ee01c0c95405]::iter::plumbing::bridge_producer_consumer::helper<rayon[c833ee01c0c95405]::vec::DrainProducer<rustc_middle[82fdd60edd279704]::mir::mono::Mon
 128:        0x10ba28cd8 - rayon_core[cd5ddfc0c0f16cb0]::registry::in_worker::<rayon_core[cd5ddfc0c0f16cb0]::join::join_context<rayon[c833ee01c0c95405]::iter::plumbing::bridge_producer_consumer::helper<rayon[c833ee01c0c95405]::vec::DrainProdu
 129:        0x10ba1a9a8 - rayon[c833ee01c0c95405]::iter::plumbing::bridge_producer_consumer::helper::<rayon[c833ee01c0c95405]::vec::DrainProducer<rustc_middle[82fdd60edd279704]::mir::mono::MonoItem>, rayon[c833ee01c0c95405]::iter::for_each::
 130:        0x10ba295d4 - rayon_core[cd5ddfc0c0f16cb0]::join::join_context::<rayon[c833ee01c0c95405]::iter::plumbing::bridge_producer_consumer::helper<rayon[c833ee01c0c95405]::vec::DrainProducer<rustc_middle[82fdd60edd279704]::mir::mono::Mon
 131:        0x10ba28cd8 - rayon_core[cd5ddfc0c0f16cb0]::registry::in_worker::<rayon_core[cd5ddfc0c0f16cb0]::join::join_context<rayon[c833ee01c0c95405]::iter::plumbing::bridge_producer_consumer::helper<rayon[c833ee01c0c95405]::vec::DrainProdu
 132:        0x10ba1a9a8 - rayon[c833ee01c0c95405]::iter::plumbing::bridge_producer_consumer::helper::<rayon[c833ee01c0c95405]::vec::DrainProducer<rustc_middle[82fdd60edd279704]::mir::mono::MonoItem>, rayon[c833ee01c0c95405]::iter::for_each::
 133:        0x10ba295d4 - rayon_core[cd5ddfc0c0f16cb0]::join::join_context::<rayon[c833ee01c0c95405]::iter::plumbing::bridge_producer_consumer::helper<rayon[c833ee01c0c95405]::vec::DrainProducer<rustc_middle[82fdd60edd279704]::mir::mono::Mon
 134:        0x10ba28cd8 - rayon_core[cd5ddfc0c0f16cb0]::registry::in_worker::<rayon_core[cd5ddfc0c0f16cb0]::join::join_context<rayon[c833ee01c0c95405]::iter::plumbing::bridge_producer_consumer::helper<rayon[c833ee01c0c95405]::vec::DrainProdu
 135:        0x10ba1aab4 - <rayon[c833ee01c0c95405]::iter::plumbing::bridge::Callback<rayon[c833ee01c0c95405]::iter::for_each::ForEachConsumer<rustc_data_structures[712596e8823b4fc6]::sync::parallel::enabled::par_for_each_in<rustc_middle[82fd
 136:        0x10ba228c8 - <rayon[c833ee01c0c95405]::vec::IntoIter<rustc_middle[82fdd60edd279704]::mir::mono::MonoItem> as rayon[c833ee01c0c95405]::iter::IndexedParallelIterator>::with_producer::<rayon[c833ee01c0c95405]::iter::plumbing::bridg
 137:        0x10ba20690 - <rustc_session[d615531edd37b175]::session::Session>::time::<(), rustc_monomorphize[44a02060cf3ad5f6]::collector::collect_crate_mono_items::{closure#1}>
 138:        0x10ba04498 - rustc_monomorphize[44a02060cf3ad5f6]::collector::collect_crate_mono_items
 139:        0x10ba123fc - rustc_monomorphize[44a02060cf3ad5f6]::partitioning::collect_and_partition_mono_items
 140:        0x10be061a4 - rustc_query_impl[d9b7452daba4f436]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[d9b7452daba4f436]::query_impl::collect_and_partition_mono_items::dynamic_query::{closure#2}::{closure#0}, rustc_middle[82fdd60edd279704]::query::erase::Erased<[u8; 24usize]>>
 141:        0x10bef3bf0 - <rustc_query_impl[d9b7452daba4f436]::query_impl::collect_and_partition_mono_items::dynamic_query::{closure#2} as core[3a363f1eef6f7cb2]::ops::function::FnOnce<(rustc_middle[82fdd60edd279704]::ty::context::TyCtxt, ())>>::call_once
 142:        0x10bd33710 - rustc_query_system[f11765a6e63743ab]::query::plumbing::try_execute_query::<rustc_query_impl[d9b7452daba4f436]::DynamicConfig<rustc_query_system[f11765a6e63743ab]::query::caches::SingleCache<rustc_middle[82fdd60edd279704]::query::erase::Erased<[u8; 24usize]>>, false, false, false>, rustc_query_impl[d9b7452daba4f436]::plumbing::QueryCtxt, true>
 143:        0x10be83620 - rustc_query_impl[d9b7452daba4f436]::query_impl::collect_and_partition_mono_items::get_query_incr::__rust_end_short_backtrace
 144:        0x10a919080 - rustc_codegen_ssa[da70ac4bdeef98b3]::base::codegen_crate::<rustc_codegen_llvm[a1e330c7f82aa828]::LlvmCodegenBackend>
 145:        0x10a95d4f4 - <rustc_codegen_llvm[a1e330c7f82aa828]::LlvmCodegenBackend as rustc_codegen_ssa[da70ac4bdeef98b3]::traits::backend::CodegenBackend>::codegen_crate
 146:        0x10b35fc80 - <rustc_session[d615531edd37b175]::session::Session>::time::<alloc[1c9bd4fa5433bea]::boxed::Box<dyn core[3a363f1eef6f7cb2]::any::Any>, rustc_interface[9b9c728c161af33d]::passes::start_codegen::{closure#0}>
 147:        0x10b35f5e4 - rustc_interface[9b9c728c161af33d]::passes::start_codegen
 148:        0x10b30ba80 - <rustc_middle[82fdd60edd279704]::ty::context::GlobalCtxt>::enter::<<rustc_interface[9b9c728c161af33d]::queries::Queries>::codegen_and_build_linker::{closure#0}, core[3a363f1eef6f7cb2]::result::Result<rustc_interface[9b9c728c161af33d]::queries::Linker, rustc_span[9910a9a9a2b8b1b0]::ErrorGuaranteed>>
 149:        0x10b32b4dc - <rustc_interface[9b9c728c161af33d]::queries::Queries>::codegen_and_build_linker
 150:        0x10ab9b42c - <rustc_interface[9b9c728c161af33d]::interface::Compiler>::enter::<rustc_driver_impl[219c9928d75f923b]::run_compiler::{closure#0}::{closure#0}, core[3a363f1eef6f7cb2]::result::Result<core[3a363f1eef6f7cb2]::option::Option<rustc_interface[9b9c728c161af33d]::queries::Linker>, rustc_span[9910a9a9a2b8b1b0]::ErrorGuaranteed>>
 151:        0x10abcec38 - rustc_span[9910a9a9a2b8b1b0]::set_source_map::<core[3a363f1eef6f7cb2]::result::Result<(), rustc_span[9910a9a9a2b8b1b0]::ErrorGuaranteed>, rustc_interface[9b9c728c161af33d]::interface::run_compiler<core[3a363f1eef6f7cb2]::result::Result<(), rustc_span[9910a9a9a2b8b1b0]::ErrorGuaranteed>, rustc_driver_impl[219c9928d75f923b]::run_compiler::{closure#0}>::{closure#0}::{closure#0}>
 152:        0x10abc6414 - <rayon_core[cd5ddfc0c0f16cb0]::thread_pool::ThreadPool>::install::<rustc_interface[9b9c728c161af33d]::interface::run_compiler<core[3a363f1eef6f7cb2]::result::Result<(), rustc_span[9910a9a9a2b8b1b0]::ErrorGuaranteed>, rustc_driver_impl[219c9928d75f923b]::run_compiler::{closure#0}>::{closure#0}, core[3a363f1eef6f7cb2]::result::Result<(), rustc_span[9910a9a9a2b8b1b0]::ErrorGuaranteed>>::{closure#0}
 153:        0x10abc4550 - std[e77b8cc82bfbcdfd]::panicking::try::<core[3a363f1eef6f7cb2]::result::Result<(), rustc_span[9910a9a9a2b8b1b0]::ErrorGuaranteed>, core[3a363f1eef6f7cb2]::panic::unwind_safe::AssertUnwindSafe<<rayon_core[cd5ddfc0c0f16cb0]::job::JobResult<core[3a363f1eef6f7cb2]::result::Result<(), rustc_span[9910a9a9a2b8b1b0]::ErrorGuaranteed>>>::call<<rayon_core[cd5ddfc0c0f16cb0]::registry::Registry>::in_worker_cold<<rayon_core[cd5ddfc0c0f16cb0]::thread_pool::ThreadPool>::install<rustc_interface[9b9c728c161af33d]::interface::run_compiler<core[3a363f1eef6f7cb2]::result::Result<(), rustc_span[9910a9a9a2b8b1b0]::ErrorGuaranteed>, rustc_driver_impl[219c9928d75f923b]::run_compiler::{closure#0}>::{closure#0}, core[3a363f1eef6f7cb2]::result::Result<(), rustc_span[9910a9a9a2b8b1b0]::ErrorGuaranteed>>::{closure#0}, core[3a363f1eef6f7cb2]::result::Result<(), rustc_span[9910a9a9a2b8b1b0]::ErrorGuaranteed>>::{closure#0}::{closure#0}>::{closure#0}>>
 154:        0x10ab959f0 - <rayon_core[cd5ddfc0c0f16cb0]::job::StackJob<rayon_core[cd5ddfc0c0f16cb0]::latch::LatchRef<rayon_core[cd5ddfc0c0f16cb0]::latch::LockLatch>, <rayon_core[cd5ddfc0c0f16cb0]::registry::Registry>::in_worker_cold<<rayon_core[cd5ddfc0c0f16cb0]::thread_pool::ThreadPool>::install<rustc_interface[9b9c728c161af33d]::interface::run_compiler<core[3a363f1eef6f7cb2]::result::Result<(), rustc_span[9910a9a9a2b8b1b0]::ErrorGuaranteed>, rustc_driver_impl[219c9928d75f923b]::run_compiler::{closure#0}>::{closure#0}, core[3a363f1eef6f7cb2]::result::Result<(), rustc_span[9910a9a9a2b8b1b0]::ErrorGuaranteed>>::{closure#0}, core[3a363f1eef6f7cb2]::result::Result<(), rustc_span[9910a9a9a2b8b1b0]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[3a363f1eef6f7cb2]::result::Result<(), rustc_span[9910a9a9a2b8b1b0]::ErrorGuaranteed>> as rayon_core[cd5ddfc0c0f16cb0]::job::Job>::execute
 155:        0x10e97d3c8 - <rayon_core[cd5ddfc0c0f16cb0]::registry::WorkerThread>::wait_until_cold
 156:        0x10a2c5314 - <rayon_core[cd5ddfc0c0f16cb0]::registry::ThreadBuilder>::run
 157:        0x10abcf098 - rustc_span[9910a9a9a2b8b1b0]::set_session_globals_then::<(), rustc_interface[9b9c728c161af33d]::util::run_in_thread_pool_with_globals<rustc_interface[9b9c728c161af33d]::interface::run_compiler<core[3a363f1eef6f7cb2]::result::Result<(), rustc_span[9910a9a9a2b8b1b0]::ErrorGuaranteed>, rustc_driver_impl[219c9928d75f923b]::run_compiler::{closure#0}>::{closure#0}, core[3a363f1eef6f7cb2]::result::Result<(), rustc_span[9910a9a9a2b8b1b0]::ErrorGuaranteed>>::{closure#3}::{closure#0}::{closure#0}::{closure#0}>
 158:        0x10abc7778 - <<crossbeam_utils[5ac6a3ae72aeef3d]::thread::ScopedThreadBuilder>::spawn<<rayon_core[cd5ddfc0c0f16cb0]::ThreadPoolBuilder>::build_scoped<rustc_interface[9b9c728c161af33d]::util::run_in_thread_pool_with_globals<rustc_interface[9b9c728c161af33d]::interface::run_compiler<core[3a363f1eef6f7cb2]::result::Result<(), rustc_span[9910a9a9a2b8b1b0]::ErrorGuaranteed>, rustc_driver_impl[219c9928d75f923b]::run_compiler::{closure#0}>::{closure#0}, core[3a363f1eef6f7cb2]::result::Result<(), rustc_span[9910a9a9a2b8b1b0]::ErrorGuaranteed>>::{closure#3}::{closure#0}::{closure#0}, rustc_interface[9b9c728c161af33d]::util::run_in_thread_pool_with_globals<rustc_interface[9b9c728c161af33d]::interface::run_compiler<core[3a363f1eef6f7cb2]::result::Result<(), rustc_span[9910a9a9a2b8b1b0]::ErrorGuaranteed>, rustc_driver_impl[219c9928d75f923b]::run_compiler::{closure#0}>::{closure#0}, core[3a363f1eef6f7cb2]::result::Result<(), rustc_span[9910a9a9a2b8b1b0]::ErrorGuaranteed>>::{closure#3}::{closure#0}::{closure#1}, core[3a363f1eef6f7cb2]::result::Result<(), rustc_span[9910a9a9a2b8b1b0]::ErrorGuaranteed>>::{closure#0}::{closure#0}::{closure#0}, ()>::{closure#0} as core[3a363f1eef6f7cb2]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
 159:        0x10abc4a2c - std[e77b8cc82bfbcdfd]::sys_common::backtrace::__rust_begin_short_backtrace::<alloc[1c9bd4fa5433bea]::boxed::Box<dyn core[3a363f1eef6f7cb2]::ops::function::FnOnce<(), Output = ()> + core[3a363f1eef6f7cb2]::marker::Send>, ()>
 160:        0x10ab94a54 - <<std[e77b8cc82bfbcdfd]::thread::Builder>::spawn_unchecked_<alloc[1c9bd4fa5433bea]::boxed::Box<dyn core[3a363f1eef6f7cb2]::ops::function::FnOnce<(), Output = ()> + core[3a363f1eef6f7cb2]::marker::Send>, ()>::{closure#1} as core[3a363f1eef6f7cb2]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
 161:        0x1015e8788 - std::sys::pal::unix::thread::Thread::new::thread_start::ha368f5c01e431785
 162:        0x18eecd034 - __pthread_joiner_wake

@humb1t humb1t added C-bug Category: This is a bug. I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Feb 13, 2024
@rustbot rustbot added the needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. label Feb 13, 2024
@humb1t
Copy link
Author

humb1t commented Feb 13, 2024

Extracting on_connection_init to a function helps to work around that issue.

@compiler-errors
Copy link
Member

This should be fixed by #120897.

@saethlin saethlin removed the needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. label Feb 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug. I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

4 participants