Skip to content
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

ICE Failed to extract DefId: local_def_id_to_hir_id 999c8437c28acff7-7888abc43219a632 #104682

Open
weiznich opened this issue Nov 21, 2022 · 6 comments
Labels
C-bug Category: This is a bug. I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ S-needs-repro Status: This issue has no reproduction and needs a reproduction to make progress. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Comments

@weiznich
Copy link
Contributor

Code

Cannot provide that, as it's not a public code base

Meta

rustc --version --verbose:

rustc 1.64.0 (a55dd71d5 2022-09-19)
binary: rustc
commit-hash: a55dd71d5fb0ec5a6a3a9e8c27b2127ba491ce52
commit-date: 2022-09-19
host: x86_64-unknown-linux-gnu
release: 1.64.0
LLVM version: 14.0.6

(Cannot test that on 1.65 due to #104322)

Error output

thread 'rustc' panicked at 'Failed to extract DefId: local_def_id_to_hir_id 999c8437c28acff7-7888abc43219a632', compiler/rustc_middle/src/dep_graph/dep_node.rs:276:17
stack backtrace:
   0:     0x7f8cdcbae19d - std::backtrace_rs::backtrace::libunwind::trace::h9135f25bc195152c
                               at /rustc/a55dd71d5fb0ec5a6a3a9e8c27b2127ba491ce52/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5
   1:     0x7f8cdcbae19d - std::backtrace_rs::backtrace::trace_unsynchronized::h015ee85be510df51
                               at /rustc/a55dd71d5fb0ec5a6a3a9e8c27b2127ba491ce52/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
   2:     0x7f8cdcbae19d - std::sys_common::backtrace::_print_fmt::h5fad03caa9652a2c
                               at /rustc/a55dd71d5fb0ec5a6a3a9e8c27b2127ba491ce52/library/std/src/sys_common/backtrace.rs:66:5
   3:     0x7f8cdcbae19d - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h2b42ca28d244e5c7
                               at /rustc/a55dd71d5fb0ec5a6a3a9e8c27b2127ba491ce52/library/std/src/sys_common/backtrace.rs:45:22
   4:     0x7f8cdcc096ac - core::fmt::write::h401e827d053130ed
                               at /rustc/a55dd71d5fb0ec5a6a3a9e8c27b2127ba491ce52/library/core/src/fmt/mod.rs:1198:17
   5:     0x7f8cdcb9f4e1 - std::io::Write::write_fmt::hffec93268f5cde32
                               at /rustc/a55dd71d5fb0ec5a6a3a9e8c27b2127ba491ce52/library/std/src/io/mod.rs:1672:15
   6:     0x7f8cdcbb0eb5 - std::sys_common::backtrace::_print::h180c4c706ee1d3fb
                               at /rustc/a55dd71d5fb0ec5a6a3a9e8c27b2127ba491ce52/library/std/src/sys_common/backtrace.rs:48:5
   7:     0x7f8cdcbb0eb5 - std::sys_common::backtrace::print::hd0c35d18765761c9
                               at /rustc/a55dd71d5fb0ec5a6a3a9e8c27b2127ba491ce52/library/std/src/sys_common/backtrace.rs:35:9
   8:     0x7f8cdcbb0eb5 - std::panicking::default_hook::{{closure}}::h1f023310983bc730
                               at /rustc/a55dd71d5fb0ec5a6a3a9e8c27b2127ba491ce52/library/std/src/panicking.rs:295:22
   9:     0x7f8cdcbb0bd1 - std::panicking::default_hook::h188fec3334afd5be
                               at /rustc/a55dd71d5fb0ec5a6a3a9e8c27b2127ba491ce52/library/std/src/panicking.rs:314:9
  10:     0x7f8cdf486484 - rustc_driver[4568cc0a685fd94d]::DEFAULT_HOOK::{closure#0}::{closure#0}
  11:     0x7f8cdcbb15ea - std::panicking::rust_panic_with_hook::hf26e9d4f97b40096
                               at /rustc/a55dd71d5fb0ec5a6a3a9e8c27b2127ba491ce52/library/std/src/panicking.rs:702:17
  12:     0x7f8cdcbb1427 - std::panicking::begin_panic_handler::{{closure}}::hfab912107608087a
                               at /rustc/a55dd71d5fb0ec5a6a3a9e8c27b2127ba491ce52/library/std/src/panicking.rs:588:13
  13:     0x7f8cdcbae694 - std::sys_common::backtrace::__rust_end_short_backtrace::h434b685ce8d9965b
                               at /rustc/a55dd71d5fb0ec5a6a3a9e8c27b2127ba491ce52/library/std/src/sys_common/backtrace.rs:138:18
  14:     0x7f8cdcbb1159 - rust_begin_unwind
                               at /rustc/a55dd71d5fb0ec5a6a3a9e8c27b2127ba491ce52/library/std/src/panicking.rs:584:5
  15:     0x7f8cdcc061c3 - core::panicking::panic_fmt::ha6dc7f2ab2479463
                               at /rustc/a55dd71d5fb0ec5a6a3a9e8c27b2127ba491ce52/library/core/src/panicking.rs:142:14
  16:     0x7f8ce04176c1 - <rustc_query_system[8caf4755e287670e]::dep_graph::dep_node::DepNode<rustc_middle[b6cf56a787d1e2a1]::dep_graph::dep_node::DepKind> as rustc_middle[b6cf56a787d1e2a1]::dep_graph::dep_node::DepNodeExt>::extract_def_id::{closure#0}
  17:     0x7f8cddcfce4e - <rustc_query_system[8caf4755e287670e]::dep_graph::dep_node::DepNode<rustc_middle[b6cf56a787d1e2a1]::dep_graph::dep_node::DepKind> as rustc_middle[b6cf56a787d1e2a1]::dep_graph::dep_node::DepNodeExt>::extract_def_id
  18:     0x7f8cded894dc - rustc_query_impl[232efbc2900411f9]::query_callbacks::local_def_id_to_hir_id::force_from_dep_node
  19:     0x7f8cdde22531 - <rustc_middle[b6cf56a787d1e2a1]::ty::context::TyCtxt as rustc_query_system[8caf4755e287670e]::dep_graph::DepContext>::try_force_from_dep_node
  20:     0x7f8cdde21969 - <rustc_query_system[8caf4755e287670e]::dep_graph::graph::DepGraph<rustc_middle[b6cf56a787d1e2a1]::dep_graph::dep_node::DepKind>>::try_mark_previous_green::<rustc_query_impl[232efbc2900411f9]::plumbing::QueryCtxt>
  21:     0x7f8cdde21256 - <rustc_query_system[8caf4755e287670e]::dep_graph::graph::DepGraph<rustc_middle[b6cf56a787d1e2a1]::dep_graph::dep_node::DepKind>>::try_mark_previous_green::<rustc_query_impl[232efbc2900411f9]::plumbing::QueryCtxt>
  22:     0x7f8cdde21256 - <rustc_query_system[8caf4755e287670e]::dep_graph::graph::DepGraph<rustc_middle[b6cf56a787d1e2a1]::dep_graph::dep_node::DepKind>>::try_mark_previous_green::<rustc_query_impl[232efbc2900411f9]::plumbing::QueryCtxt>
  23:     0x7f8cdde21256 - <rustc_query_system[8caf4755e287670e]::dep_graph::graph::DepGraph<rustc_middle[b6cf56a787d1e2a1]::dep_graph::dep_node::DepKind>>::try_mark_previous_green::<rustc_query_impl[232efbc2900411f9]::plumbing::QueryCtxt>
  24:     0x7f8cdde21256 - <rustc_query_system[8caf4755e287670e]::dep_graph::graph::DepGraph<rustc_middle[b6cf56a787d1e2a1]::dep_graph::dep_node::DepKind>>::try_mark_previous_green::<rustc_query_impl[232efbc2900411f9]::plumbing::QueryCtxt>
  25:     0x7f8cdde21256 - <rustc_query_system[8caf4755e287670e]::dep_graph::graph::DepGraph<rustc_middle[b6cf56a787d1e2a1]::dep_graph::dep_node::DepKind>>::try_mark_previous_green::<rustc_query_impl[232efbc2900411f9]::plumbing::QueryCtxt>
  26:     0x7f8cdde21256 - <rustc_query_system[8caf4755e287670e]::dep_graph::graph::DepGraph<rustc_middle[b6cf56a787d1e2a1]::dep_graph::dep_node::DepKind>>::try_mark_previous_green::<rustc_query_impl[232efbc2900411f9]::plumbing::QueryCtxt>
  27:     0x7f8cdde21256 - <rustc_query_system[8caf4755e287670e]::dep_graph::graph::DepGraph<rustc_middle[b6cf56a787d1e2a1]::dep_graph::dep_node::DepKind>>::try_mark_previous_green::<rustc_query_impl[232efbc2900411f9]::plumbing::QueryCtxt>
  28:     0x7f8cde67123d - rustc_query_system[8caf4755e287670e]::query::plumbing::get_query::<rustc_query_impl[232efbc2900411f9]::queries::evaluate_obligation, rustc_query_impl[232efbc2900411f9]::plumbing::QueryCtxt>
  29:     0x7f8cde670545 - <rustc_query_impl[232efbc2900411f9]::Queries as rustc_middle[b6cf56a787d1e2a1]::ty::query::QueryEngine>::evaluate_obligation
  30:     0x7f8cddeae4c8 - <rustc_trait_selection[a68aa601d6a3b6cd]::traits::fulfill::FulfillProcessor as rustc_data_structures[49e7163a34b889d1]::obligation_forest::ObligationProcessor>::process_obligation
  31:     0x7f8cddeaa17f - <rustc_data_structures[49e7163a34b889d1]::obligation_forest::ObligationForest<rustc_trait_selection[a68aa601d6a3b6cd]::traits::fulfill::PendingPredicateObligation>>::process_obligations::<rustc_trait_selection[a68aa601d6a3b6cd]::traits::fulfill::FulfillProcessor, rustc_data_structures[49e7163a34b889d1]::obligation_forest::Outcome<rustc_trait_selection[a68aa601d6a3b6cd]::traits::fulfill::PendingPredicateObligation, rustc_infer[b9251f21a0aa6bc7]::traits::FulfillmentErrorCode>>
  32:     0x7f8cddea9b9c - <rustc_trait_selection[a68aa601d6a3b6cd]::traits::fulfill::FulfillmentContext as rustc_infer[b9251f21a0aa6bc7]::traits::engine::TraitEngine>::select_where_possible
  33:     0x7f8cdde6099a - <rustc_typeck[8db86e16038c4234]::check::fn_ctxt::FnCtxt>::check_expr_kind
  34:     0x7f8cdde69f30 - <rustc_typeck[8db86e16038c4234]::check::fn_ctxt::FnCtxt>::check_expr_with_expectation
  35:     0x7f8cdde5e61f - <rustc_typeck[8db86e16038c4234]::check::fn_ctxt::FnCtxt>::check_expr_kind
  36:     0x7f8cdde69f30 - <rustc_typeck[8db86e16038c4234]::check::fn_ctxt::FnCtxt>::check_expr_with_expectation
  37:     0x7f8cdde5e61f - <rustc_typeck[8db86e16038c4234]::check::fn_ctxt::FnCtxt>::check_expr_kind
  38:     0x7f8cdde69f30 - <rustc_typeck[8db86e16038c4234]::check::fn_ctxt::FnCtxt>::check_expr_with_expectation
  39:     0x7f8cdde5e61f - <rustc_typeck[8db86e16038c4234]::check::fn_ctxt::FnCtxt>::check_expr_kind
  40:     0x7f8cdde69f30 - <rustc_typeck[8db86e16038c4234]::check::fn_ctxt::FnCtxt>::check_expr_with_expectation
  41:     0x7f8cdde5e61f - <rustc_typeck[8db86e16038c4234]::check::fn_ctxt::FnCtxt>::check_expr_kind
  42:     0x7f8cdde69f30 - <rustc_typeck[8db86e16038c4234]::check::fn_ctxt::FnCtxt>::check_expr_with_expectation
  43:     0x7f8cdde5e61f - <rustc_typeck[8db86e16038c4234]::check::fn_ctxt::FnCtxt>::check_expr_kind
  44:     0x7f8cdde69f30 - <rustc_typeck[8db86e16038c4234]::check::fn_ctxt::FnCtxt>::check_expr_with_expectation
  45:     0x7f8cdde5e61f - <rustc_typeck[8db86e16038c4234]::check::fn_ctxt::FnCtxt>::check_expr_kind
  46:     0x7f8cdde69f30 - <rustc_typeck[8db86e16038c4234]::check::fn_ctxt::FnCtxt>::check_expr_with_expectation
  47:     0x7f8cdde5e61f - <rustc_typeck[8db86e16038c4234]::check::fn_ctxt::FnCtxt>::check_expr_kind
  48:     0x7f8cdde69f30 - <rustc_typeck[8db86e16038c4234]::check::fn_ctxt::FnCtxt>::check_expr_with_expectation
  49:     0x7f8cdde94701 - <rustc_typeck[8db86e16038c4234]::check::fn_ctxt::FnCtxt>::check_decl
  50:     0x7f8cdde8395d - <rustc_typeck[8db86e16038c4234]::check::fn_ctxt::FnCtxt>::check_block_with_expected
  51:     0x7f8cdde5e5c9 - <rustc_typeck[8db86e16038c4234]::check::fn_ctxt::FnCtxt>::check_expr_kind
  52:     0x7f8cdde69f30 - <rustc_typeck[8db86e16038c4234]::check::fn_ctxt::FnCtxt>::check_expr_with_expectation
  53:     0x7f8cde58f1da - rustc_typeck[8db86e16038c4234]::check::check::check_fn
  54:     0x7f8cddf269a7 - <rustc_typeck[8db86e16038c4234]::check::fn_ctxt::FnCtxt>::check_expr_closure
  55:     0x7f8cdde60d3b - <rustc_typeck[8db86e16038c4234]::check::fn_ctxt::FnCtxt>::check_expr_kind
  56:     0x7f8cddeeac5a - <rustc_typeck[8db86e16038c4234]::check::fn_ctxt::FnCtxt>::check_argument_types
  57:     0x7f8cdde5ef83 - <rustc_typeck[8db86e16038c4234]::check::fn_ctxt::FnCtxt>::check_expr_kind
  58:     0x7f8cdde69f30 - <rustc_typeck[8db86e16038c4234]::check::fn_ctxt::FnCtxt>::check_expr_with_expectation
  59:     0x7f8cdde83a79 - <rustc_typeck[8db86e16038c4234]::check::fn_ctxt::FnCtxt>::check_block_with_expected
  60:     0x7f8cdde5e5c9 - <rustc_typeck[8db86e16038c4234]::check::fn_ctxt::FnCtxt>::check_expr_kind
  61:     0x7f8cdde69f30 - <rustc_typeck[8db86e16038c4234]::check::fn_ctxt::FnCtxt>::check_expr_with_expectation
  62:     0x7f8cde58f1da - rustc_typeck[8db86e16038c4234]::check::check::check_fn
  63:     0x7f8cddf269a7 - <rustc_typeck[8db86e16038c4234]::check::fn_ctxt::FnCtxt>::check_expr_closure
  64:     0x7f8cdde60d3b - <rustc_typeck[8db86e16038c4234]::check::fn_ctxt::FnCtxt>::check_expr_kind
  65:     0x7f8cddee82ad - <rustc_typeck[8db86e16038c4234]::check::fn_ctxt::FnCtxt>::check_expr_with_expectation_and_args
  66:     0x7f8cdde9f37c - <rustc_typeck[8db86e16038c4234]::check::fn_ctxt::FnCtxt>::check_call
  67:     0x7f8cdde5e594 - <rustc_typeck[8db86e16038c4234]::check::fn_ctxt::FnCtxt>::check_expr_kind
  68:     0x7f8cdde69f30 - <rustc_typeck[8db86e16038c4234]::check::fn_ctxt::FnCtxt>::check_expr_with_expectation
  69:     0x7f8cddef8106 - <rustc_typeck[8db86e16038c4234]::check::fn_ctxt::FnCtxt>::check_match
  70:     0x7f8cdde5f0f6 - <rustc_typeck[8db86e16038c4234]::check::fn_ctxt::FnCtxt>::check_expr_kind
  71:     0x7f8cdde69f30 - <rustc_typeck[8db86e16038c4234]::check::fn_ctxt::FnCtxt>::check_expr_with_expectation
  72:     0x7f8cdde83a79 - <rustc_typeck[8db86e16038c4234]::check::fn_ctxt::FnCtxt>::check_block_with_expected
  73:     0x7f8cdde5e5c9 - <rustc_typeck[8db86e16038c4234]::check::fn_ctxt::FnCtxt>::check_expr_kind
  74:     0x7f8cdde69f30 - <rustc_typeck[8db86e16038c4234]::check::fn_ctxt::FnCtxt>::check_expr_with_expectation
  75:     0x7f8cde58f1da - rustc_typeck[8db86e16038c4234]::check::check::check_fn
  76:     0x7f8cde57ffab - <rustc_infer[b9251f21a0aa6bc7]::infer::InferCtxtBuilder>::enter::<&rustc_middle[b6cf56a787d1e2a1]::ty::context::TypeckResults, <rustc_typeck[8db86e16038c4234]::check::inherited::InheritedBuilder>::enter<rustc_typeck[8db86e16038c4234]::check::typeck_with_fallback<rustc_typeck[8db86e16038c4234]::check::typeck::{closure#0}>::{closure#1}, &rustc_middle[b6cf56a787d1e2a1]::ty::context::TypeckResults>::{closure#0}>
  77:     0x7f8cdee7db1d - rustc_typeck[8db86e16038c4234]::check::typeck
  78:     0x7f8cddf894cf - <rustc_query_system[8caf4755e287670e]::dep_graph::graph::DepGraph<rustc_middle[b6cf56a787d1e2a1]::dep_graph::dep_node::DepKind>>::with_task::<rustc_middle[b6cf56a787d1e2a1]::ty::context::TyCtxt, rustc_span[721a57c036170ce]::def_id::LocalDefId, &rustc_middle[b6cf56a787d1e2a1]::ty::context::TypeckResults>
  79:     0x7f8cddf7efb3 - rustc_query_system[8caf4755e287670e]::query::plumbing::try_execute_query::<rustc_query_impl[232efbc2900411f9]::plumbing::QueryCtxt, rustc_query_system[8caf4755e287670e]::query::caches::DefaultCache<rustc_span[721a57c036170ce]::def_id::LocalDefId, &rustc_middle[b6cf56a787d1e2a1]::ty::context::TypeckResults>>
  80:     0x7f8cdf3842f8 - <rustc_query_impl[232efbc2900411f9]::Queries as rustc_middle[b6cf56a787d1e2a1]::ty::query::QueryEngine>::typeck
  81:     0x7f8cdf17ce96 - rustc_data_structures[49e7163a34b889d1]::sync::par_for_each_in::<&[rustc_span[721a57c036170ce]::def_id::LocalDefId], <rustc_middle[b6cf56a787d1e2a1]::hir::map::Map>::par_body_owners<rustc_typeck[8db86e16038c4234]::check::typeck_item_bodies::{closure#0}>::{closure#0}>
  82:     0x7f8cdf17cc4b - <rustc_middle[b6cf56a787d1e2a1]::hir::map::Map>::par_body_owners::<rustc_typeck[8db86e16038c4234]::check::typeck_item_bodies::{closure#0}>
  83:     0x7f8cdf17cb9c - rustc_typeck[8db86e16038c4234]::check::typeck_item_bodies
  84:     0x7f8cdf16d049 - <rustc_query_system[8caf4755e287670e]::dep_graph::graph::DepGraph<rustc_middle[b6cf56a787d1e2a1]::dep_graph::dep_node::DepKind>>::with_task::<rustc_middle[b6cf56a787d1e2a1]::ty::context::TyCtxt, (), ()>
  85:     0x7f8cdf16bfa5 - rustc_query_system[8caf4755e287670e]::query::plumbing::try_execute_query::<rustc_query_impl[232efbc2900411f9]::plumbing::QueryCtxt, rustc_query_system[8caf4755e287670e]::query::caches::DefaultCache<(), ()>>
  86:     0x7f8cdf16ba21 - rustc_query_system[8caf4755e287670e]::query::plumbing::get_query::<rustc_query_impl[232efbc2900411f9]::queries::typeck_item_bodies, rustc_query_impl[232efbc2900411f9]::plumbing::QueryCtxt>
  87:     0x7f8cdee774bf - <rustc_session[98f7faf1d37bb5fb]::session::Session>::time::<(), rustc_typeck[8db86e16038c4234]::check_crate::{closure#7}>
  88:     0x7f8cdee74d43 - rustc_typeck[8db86e16038c4234]::check_crate
  89:     0x7f8cdee70917 - rustc_interface[f934826ba4c12dd9]::passes::analysis
  90:     0x7f8cdf22b2bc - <rustc_query_system[8caf4755e287670e]::dep_graph::graph::DepGraph<rustc_middle[b6cf56a787d1e2a1]::dep_graph::dep_node::DepKind>>::with_task::<rustc_middle[b6cf56a787d1e2a1]::ty::context::TyCtxt, (), core[6fcc70bcc91a5bf5]::result::Result<(), rustc_errors[5fcb1a1f56a762e6]::ErrorGuaranteed>>
  91:     0x7f8cdf22aaab - rustc_query_system[8caf4755e287670e]::query::plumbing::try_execute_query::<rustc_query_impl[232efbc2900411f9]::plumbing::QueryCtxt, rustc_query_system[8caf4755e287670e]::query::caches::DefaultCache<(), core[6fcc70bcc91a5bf5]::result::Result<(), rustc_errors[5fcb1a1f56a762e6]::ErrorGuaranteed>>>
  92:     0x7f8cdf22a5fe - rustc_query_system[8caf4755e287670e]::query::plumbing::get_query::<rustc_query_impl[232efbc2900411f9]::queries::analysis, rustc_query_impl[232efbc2900411f9]::plumbing::QueryCtxt>
  93:     0x7f8cdec04d87 - <rustc_interface[f934826ba4c12dd9]::passes::QueryContext>::enter::<rustc_driver[4568cc0a685fd94d]::run_compiler::{closure#1}::{closure#2}::{closure#3}, core[6fcc70bcc91a5bf5]::result::Result<(), rustc_errors[5fcb1a1f56a762e6]::ErrorGuaranteed>>
  94:     0x7f8cdebfd97f - <rustc_interface[f934826ba4c12dd9]::interface::Compiler>::enter::<rustc_driver[4568cc0a685fd94d]::run_compiler::{closure#1}::{closure#2}, core[6fcc70bcc91a5bf5]::result::Result<core[6fcc70bcc91a5bf5]::option::Option<rustc_interface[f934826ba4c12dd9]::queries::Linker>, rustc_errors[5fcb1a1f56a762e6]::ErrorGuaranteed>>
  95:     0x7f8cdebf286a - rustc_span[721a57c036170ce]::with_source_map::<core[6fcc70bcc91a5bf5]::result::Result<(), rustc_errors[5fcb1a1f56a762e6]::ErrorGuaranteed>, rustc_interface[f934826ba4c12dd9]::interface::create_compiler_and_run<core[6fcc70bcc91a5bf5]::result::Result<(), rustc_errors[5fcb1a1f56a762e6]::ErrorGuaranteed>, rustc_driver[4568cc0a685fd94d]::run_compiler::{closure#1}>::{closure#1}>
  96:     0x7f8cdebf21a2 - <scoped_tls[80743de900a7f844]::ScopedKey<rustc_span[721a57c036170ce]::SessionGlobals>>::set::<rustc_interface[f934826ba4c12dd9]::interface::run_compiler<core[6fcc70bcc91a5bf5]::result::Result<(), rustc_errors[5fcb1a1f56a762e6]::ErrorGuaranteed>, rustc_driver[4568cc0a685fd94d]::run_compiler::{closure#1}>::{closure#0}, core[6fcc70bcc91a5bf5]::result::Result<(), rustc_errors[5fcb1a1f56a762e6]::ErrorGuaranteed>>
  97:     0x7f8cdebf05cf - std[306a94a967d8f5ee]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[f934826ba4c12dd9]::util::run_in_thread_pool_with_globals<rustc_interface[f934826ba4c12dd9]::interface::run_compiler<core[6fcc70bcc91a5bf5]::result::Result<(), rustc_errors[5fcb1a1f56a762e6]::ErrorGuaranteed>, rustc_driver[4568cc0a685fd94d]::run_compiler::{closure#1}>::{closure#0}, core[6fcc70bcc91a5bf5]::result::Result<(), rustc_errors[5fcb1a1f56a762e6]::ErrorGuaranteed>>::{closure#0}, core[6fcc70bcc91a5bf5]::result::Result<(), rustc_errors[5fcb1a1f56a762e6]::ErrorGuaranteed>>
  98:     0x7f8cdf2aa0b9 - <<std[306a94a967d8f5ee]::thread::Builder>::spawn_unchecked_<rustc_interface[f934826ba4c12dd9]::util::run_in_thread_pool_with_globals<rustc_interface[f934826ba4c12dd9]::interface::run_compiler<core[6fcc70bcc91a5bf5]::result::Result<(), rustc_errors[5fcb1a1f56a762e6]::ErrorGuaranteed>, rustc_driver[4568cc0a685fd94d]::run_compiler::{closure#1}>::{closure#0}, core[6fcc70bcc91a5bf5]::result::Result<(), rustc_errors[5fcb1a1f56a762e6]::ErrorGuaranteed>>::{closure#0}, core[6fcc70bcc91a5bf5]::result::Result<(), rustc_errors[5fcb1a1f56a762e6]::ErrorGuaranteed>>::{closure#1} as core[6fcc70bcc91a5bf5]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  99:     0x7f8cdcbbb723 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h56d5fc072706762b
                               at /rustc/a55dd71d5fb0ec5a6a3a9e8c27b2127ba491ce52/library/alloc/src/boxed.rs:1935:9
 100:     0x7f8cdcbbb723 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h41deef8e33b824bb
                               at /rustc/a55dd71d5fb0ec5a6a3a9e8c27b2127ba491ce52/library/alloc/src/boxed.rs:1935:9
 101:     0x7f8cdcbbb723 - std::sys::unix::thread::Thread::new::thread_start::ha6436304a1170bba
                               at /rustc/a55dd71d5fb0ec5a6a3a9e8c27b2127ba491ce52/library/std/src/sys/unix/thread.rs:108:17
 102:     0x7f8cdc8ebb43 - start_thread
                               at ./nptl/./nptl/pthread_create.c:442:8
 103:     0x7f8cdc97da00 - clone3
                               at ./misc/../sysdeps/unix/sysv/linux/x86_64/clone3.S:81
 104:                0x0 - <unknown>

error: internal compiler error: unexpected panic

note: the compiler unexpectedly panicked. this is a bug.

note: we would appreciate a bug report: https://github.com/rust-lang/rust/issues/new?labels=C-bug%2C+I-ICE%2C+T-compiler&template=ice.md

note: rustc 1.64.0 (a55dd71d5 2022-09-19) running on x86_64-unknown-linux-gnu

note: compiler flags: --crate-type lib -C embed-bitcode=no -C debuginfo=2 -C incremental -C link-args=-fuse-ld=lld

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

query stack during panic:
#0 [evaluate_obligation] evaluating trait selection obligation `diesel::query_source::joins::Join<schema::operation_states::table, schema::hyperedges::table, diesel::query_source::joins::Inner>: diesel::query_source::QuerySource`
#1 [typeck] type-checking `get_next_operation::get_next_operation`
#2 [typeck_item_bodies] type-checking all item bodies
#3 [analysis] running analysis passes on this crate
@weiznich weiznich 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 Nov 21, 2022
@weiznich
Copy link
Contributor Author

Seems to be related to incremental compilation as this ICE disappears after a clean build

@Chris-Petty
Copy link

Think this issue is the same as the one I encountered - stack during panic starting very similarly at diesel::query_source::joins. Cargo clean fixed the issue for me.

Code

Can't replicate anymore after a cargo clean. Didn't narrow it down before hand. Codebase isn't public yet.

Dependencies if it helps. Common theme with original report is crate diesel:

[package]
name = "repository"
version = "0.1.0"
edition = "2018"

[lib]
path = "src/lib.rs"
doctest = false

[dependencies]
chrono = { version = "0.4", features = ["serde"] }
diesel = { version = "1.4.7", default-features = false, features = ["r2d2", "numeric", "chrono", "32-column-tables"] }
diesel-derive-enum = { version = "1.1.1", default-features = false }
diesel_migrations = "1.4.0"
futures-util = "0.3.15"
libsqlite3-sys = { version = "0.22.2", features = ["bundled"], optional = true }
serde = {version = "1.0.126", features = ["derive"]}
thiserror = "1"
log = "0.4.14"

[dev-dependencies]
actix-rt = "2.6.0"

[features]
default = ["sqlite"]
sqlite = ["diesel/sqlite", "libsqlite3-sys", "diesel-derive-enum/sqlite"]
memory = ["diesel/sqlite", "libsqlite3-sys", "diesel-derive-enum/sqlite"]
postgres = ["diesel/postgres" , "diesel-derive-enum/postgres"]

Meta

rustc --version --verbose:

rustc 1.65.0 (897e37553 2022-11-02)
binary: rustc
commit-hash: 897e37553bba8b42751c67658967889d11ecd120
commit-date: 2022-11-02
host: aarch64-apple-darwin
release: 1.65.0
LLVM version: 15.0.0

Error output

Compiling repository v0.1.0 (/Users/chrispetty/Documents/GitHub/health-supply-hub/backend/repository)
thread 'rustc' panicked at 'Failed to extract DefId: local_def_id_to_hir_id f08fd5b66f0ce632-9733e5687ce0cd4e', compiler/rustc_middle/src/dep_graph/dep_node.rs:267:17
Backtrace

I didn't get a chance to use RUST_BACKTRACE=1, this below is what the cli spat out the first time and is hopefully close enough:

chrispetty@Chriss-MacBook-Pro backend % cargo run
   Compiling repository v0.1.0 (/Users/chrispetty/Documents/GitHub/health-supply-hub/backend/repository)
thread 'rustc' panicked at 'Failed to extract DefId: local_def_id_to_hir_id f08fd5b66f0ce632-9733e5687ce0cd4e', compiler/rustc_middle/src/dep_graph/dep_node.rs:267:17
stack backtrace:
   0:        0x102a7f670 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h2990a6f24ccff6db
   1:        0x102ac9c34 - core::fmt::write::h91497fd291c8b104
   2:        0x102a72604 - std::io::Write::write_fmt::h23fa41342cffacf4
   3:        0x102a81eec - std::panicking::default_hook::{{closure}}::hb41cdb784f4c17ac
   4:        0x102a81c10 - std::panicking::default_hook::hdfe992d5fb29a991
   5:        0x10a7e6718 - rustc_driver[250dcea03822790c]::DEFAULT_HOOK::{closure#0}::{closure#0}
   6:        0x102a825b0 - std::panicking::rust_panic_with_hook::h2eb0e4b718773521
   7:        0x102a8245c - std::panicking::begin_panic_handler::{{closure}}::h06a693206403b4d5
   8:        0x102a7fad8 - std::sys_common::backtrace::__rust_end_short_backtrace::h8998defd518dbcad
   9:        0x102a821b0 - _rust_begin_unwind
  10:        0x102af36a4 - core::panicking::panic_fmt::ha46aa9af97eb193d
  11:        0x10e4bbf94 - <rustc_query_system[376554ccb6bbe62f]::dep_graph::dep_node::DepNode<rustc_middle[a5107c7538e61c53]::dep_graph::dep_node::DepKind> as rustc_middle[a5107c7538e61c53]::dep_graph::dep_node::DepNodeExt>::extract_def_id::{closure#0}
  12:        0x10e49395c - <rustc_middle[a5107c7538e61c53]::ty::context::TyCtxt>::def_path_hash_to_def_id
  13:        0x10e4bbf14 - <rustc_query_system[376554ccb6bbe62f]::dep_graph::dep_node::DepNode<rustc_middle[a5107c7538e61c53]::dep_graph::dep_node::DepKind> as rustc_middle[a5107c7538e61c53]::dep_graph::dep_node::DepNodeExt>::extract_def_id
  14:        0x10da24450 - rustc_query_impl[ebd438b5e01d582b]::plumbing::force_from_dep_node::<rustc_query_impl[ebd438b5e01d582b]::queries::local_def_id_to_hir_id>
  15:        0x10e47f518 - <rustc_middle[a5107c7538e61c53]::ty::context::TyCtxt as rustc_query_system[376554ccb6bbe62f]::dep_graph::DepContext>::try_force_from_dep_node
  16:        0x10d97c610 - <rustc_query_system[376554ccb6bbe62f]::dep_graph::graph::DepGraph<rustc_middle[a5107c7538e61c53]::dep_graph::dep_node::DepKind>>::try_mark_previous_green::<rustc_query_impl[ebd438b5e01d582b]::plumbing::QueryCtxt>
  17:        0x10d97c5e0 - <rustc_query_system[376554ccb6bbe62f]::dep_graph::graph::DepGraph<rustc_middle[a5107c7538e61c53]::dep_graph::dep_node::DepKind>>::try_mark_previous_green::<rustc_query_impl[ebd438b5e01d582b]::plumbing::QueryCtxt>
  18:        0x10d97c5e0 - <rustc_query_system[376554ccb6bbe62f]::dep_graph::graph::DepGraph<rustc_middle[a5107c7538e61c53]::dep_graph::dep_node::DepKind>>::try_mark_previous_green::<rustc_query_impl[ebd438b5e01d582b]::plumbing::QueryCtxt>
  19:        0x10d97c5e0 - <rustc_query_system[376554ccb6bbe62f]::dep_graph::graph::DepGraph<rustc_middle[a5107c7538e61c53]::dep_graph::dep_node::DepKind>>::try_mark_previous_green::<rustc_query_impl[ebd438b5e01d582b]::plumbing::QueryCtxt>
  20:        0x10d97c5e0 - <rustc_query_system[376554ccb6bbe62f]::dep_graph::graph::DepGraph<rustc_middle[a5107c7538e61c53]::dep_graph::dep_node::DepKind>>::try_mark_previous_green::<rustc_query_impl[ebd438b5e01d582b]::plumbing::QueryCtxt>
  21:        0x10d97c5e0 - <rustc_query_system[376554ccb6bbe62f]::dep_graph::graph::DepGraph<rustc_middle[a5107c7538e61c53]::dep_graph::dep_node::DepKind>>::try_mark_previous_green::<rustc_query_impl[ebd438b5e01d582b]::plumbing::QueryCtxt>
  22:        0x10d97c5e0 - <rustc_query_system[376554ccb6bbe62f]::dep_graph::graph::DepGraph<rustc_middle[a5107c7538e61c53]::dep_graph::dep_node::DepKind>>::try_mark_previous_green::<rustc_query_impl[ebd438b5e01d582b]::plumbing::QueryCtxt>
  23:        0x10d97c5e0 - <rustc_query_system[376554ccb6bbe62f]::dep_graph::graph::DepGraph<rustc_middle[a5107c7538e61c53]::dep_graph::dep_node::DepKind>>::try_mark_previous_green::<rustc_query_impl[ebd438b5e01d582b]::plumbing::QueryCtxt>
  24:        0x10d94cdb0 - <rustc_query_system[376554ccb6bbe62f]::dep_graph::graph::DepGraph<rustc_middle[a5107c7538e61c53]::dep_graph::dep_node::DepKind>>::try_mark_green::<rustc_query_impl[ebd438b5e01d582b]::plumbing::QueryCtxt>
  25:        0x10d7e763c - rustc_query_system[376554ccb6bbe62f]::query::plumbing::try_load_from_disk_and_cache_in_memory::<rustc_query_impl[ebd438b5e01d582b]::plumbing::QueryCtxt, rustc_middle[a5107c7538e61c53]::infer::canonical::Canonical<rustc_middle[a5107c7538e61c53]::ty::ParamEnvAnd<rustc_middle[a5107c7538e61c53]::ty::Predicate>>, core[75a5a00debbb3d3d]::result::Result<rustc_middle[a5107c7538e61c53]::traits::select::EvaluationResult, rustc_middle[a5107c7538e61c53]::traits::select::OverflowError>>
  26:        0x10d74fd68 - rustc_query_system[376554ccb6bbe62f]::query::plumbing::try_execute_query::<rustc_query_impl[ebd438b5e01d582b]::plumbing::QueryCtxt, rustc_query_system[376554ccb6bbe62f]::query::caches::DefaultCache<rustc_middle[a5107c7538e61c53]::infer::canonical::Canonical<rustc_middle[a5107c7538e61c53]::ty::ParamEnvAnd<rustc_middle[a5107c7538e61c53]::ty::Predicate>>, core[75a5a00debbb3d3d]::result::Result<rustc_middle[a5107c7538e61c53]::traits::select::EvaluationResult, rustc_middle[a5107c7538e61c53]::traits::select::OverflowError>>>
  27:        0x10d816a64 - rustc_query_system[376554ccb6bbe62f]::query::plumbing::get_query::<rustc_query_impl[ebd438b5e01d582b]::queries::evaluate_obligation, rustc_query_impl[ebd438b5e01d582b]::plumbing::QueryCtxt>
  28:        0x10da6304c - <rustc_query_impl[ebd438b5e01d582b]::Queries as rustc_middle[a5107c7538e61c53]::ty::query::QueryEngine>::evaluate_obligation
  29:        0x10e19a2b8 - <rustc_infer[95a93ab5ef712278]::infer::InferCtxt as rustc_trait_selection[20aa6160a2d29e77]::traits::query::evaluate_obligation::InferCtxtExt>::evaluate_obligation
  30:        0x10e19a3a0 - <rustc_infer[95a93ab5ef712278]::infer::InferCtxt as rustc_trait_selection[20aa6160a2d29e77]::traits::query::evaluate_obligation::InferCtxtExt>::evaluate_obligation_no_overflow
  31:        0x10e25ab00 - <rustc_trait_selection[20aa6160a2d29e77]::traits::fulfill::FulfillProcessor>::process_trait_obligation
  32:        0x10e25a5dc - <rustc_trait_selection[20aa6160a2d29e77]::traits::fulfill::FulfillProcessor as rustc_data_structures[25d5b65341446d42]::obligation_forest::ObligationProcessor>::process_obligation
  33:        0x10e21ba84 - <rustc_data_structures[25d5b65341446d42]::obligation_forest::ObligationForest<rustc_trait_selection[20aa6160a2d29e77]::traits::fulfill::PendingPredicateObligation>>::process_obligations::<rustc_trait_selection[20aa6160a2d29e77]::traits::fulfill::FulfillProcessor, rustc_data_structures[25d5b65341446d42]::obligation_forest::Outcome<rustc_trait_selection[20aa6160a2d29e77]::traits::fulfill::PendingPredicateObligation, rustc_infer[95a93ab5ef712278]::traits::FulfillmentErrorCode>>
  34:        0x10e254ebc - <rustc_trait_selection[20aa6160a2d29e77]::traits::fulfill::FulfillmentContext as rustc_infer[95a93ab5ef712278]::traits::engine::TraitEngine>::select_where_possible
  35:        0x10e254ddc - <rustc_trait_selection[20aa6160a2d29e77]::traits::fulfill::FulfillmentContext as rustc_infer[95a93ab5ef712278]::traits::engine::TraitEngine>::select_all_or_error
  36:        0x10e2545c8 - <rustc_trait_selection[20aa6160a2d29e77]::traits::engine::ObligationCtxt>::select_all_or_error
  37:        0x10cf2d3c8 - <rustc_infer[95a93ab5ef712278]::infer::InferCtxtBuilder>::enter::<(), rustc_typeck[4423ce6fa4a8f5dd]::check::wfcheck::enter_wf_checking_ctxt<rustc_typeck[4423ce6fa4a8f5dd]::check::wfcheck::check_item_fn::{closure#0}>::{closure#0}>
  38:        0x10cfa9bdc - rustc_typeck[4423ce6fa4a8f5dd]::check::wfcheck::check_item_fn
  39:        0x10cfa4ba4 - rustc_typeck[4423ce6fa4a8f5dd]::check::wfcheck::check_well_formed
  40:        0x10d98fc98 - <rustc_query_system[376554ccb6bbe62f]::dep_graph::graph::DepGraph<rustc_middle[a5107c7538e61c53]::dep_graph::dep_node::DepKind>>::with_task::<rustc_middle[a5107c7538e61c53]::ty::context::TyCtxt, rustc_span[b9fdb1d50c47c7fe]::def_id::LocalDefId, ()>
  41:        0x10d76a7b8 - rustc_query_system[376554ccb6bbe62f]::query::plumbing::try_execute_query::<rustc_query_impl[ebd438b5e01d582b]::plumbing::QueryCtxt, rustc_query_system[376554ccb6bbe62f]::query::caches::DefaultCache<rustc_span[b9fdb1d50c47c7fe]::def_id::LocalDefId, ()>>
  42:        0x10d6f2114 - rustc_query_system[376554ccb6bbe62f]::query::plumbing::force_query::<rustc_query_impl[ebd438b5e01d582b]::queries::check_well_formed, rustc_query_impl[ebd438b5e01d582b]::plumbing::QueryCtxt>
  43:        0x10da214f0 - rustc_query_impl[ebd438b5e01d582b]::plumbing::force_from_dep_node::<rustc_query_impl[ebd438b5e01d582b]::queries::check_well_formed>
  44:        0x10e47f518 - <rustc_middle[a5107c7538e61c53]::ty::context::TyCtxt as rustc_query_system[376554ccb6bbe62f]::dep_graph::DepContext>::try_force_from_dep_node
  45:        0x10d97c610 - <rustc_query_system[376554ccb6bbe62f]::dep_graph::graph::DepGraph<rustc_middle[a5107c7538e61c53]::dep_graph::dep_node::DepKind>>::try_mark_previous_green::<rustc_query_impl[ebd438b5e01d582b]::plumbing::QueryCtxt>
  46:        0x10d94cdb0 - <rustc_query_system[376554ccb6bbe62f]::dep_graph::graph::DepGraph<rustc_middle[a5107c7538e61c53]::dep_graph::dep_node::DepKind>>::try_mark_green::<rustc_query_impl[ebd438b5e01d582b]::plumbing::QueryCtxt>
  47:        0x10d707cc4 - rustc_query_system[376554ccb6bbe62f]::query::plumbing::ensure_must_run::<rustc_query_impl[ebd438b5e01d582b]::plumbing::QueryCtxt, rustc_span[b9fdb1d50c47c7fe]::def_id::LocalDefId, rustc_span[b9fdb1d50c47c7fe]::def_id::LocalDefId>
  48:        0x10d8140e0 - rustc_query_system[376554ccb6bbe62f]::query::plumbing::get_query::<rustc_query_impl[ebd438b5e01d582b]::queries::check_mod_type_wf, rustc_query_impl[ebd438b5e01d582b]::plumbing::QueryCtxt>
  49:        0x10ce1e1a4 - rustc_data_structures[25d5b65341446d42]::sync::par_for_each_in::<&[rustc_span[b9fdb1d50c47c7fe]::def_id::LocalDefId], <rustc_middle[a5107c7538e61c53]::hir::map::Map>::par_for_each_module<rustc_typeck[4423ce6fa4a8f5dd]::check_crate::{closure#5}::{closure#0}::{closure#0}>::{closure#0}>
  50:        0x10cebf46c - <rustc_session[d9f8ead3a6f8da8f]::session::Session>::track_errors::<rustc_typeck[4423ce6fa4a8f5dd]::check_crate::{closure#5}, ()>
  51:        0x10cfb0478 - rustc_typeck[4423ce6fa4a8f5dd]::check_crate
  52:        0x10a8f50f0 - rustc_interface[64ac8d545596c047]::passes::analysis
  53:        0x10d9b20ec - <rustc_query_system[376554ccb6bbe62f]::dep_graph::graph::DepGraph<rustc_middle[a5107c7538e61c53]::dep_graph::dep_node::DepKind>>::with_task::<rustc_middle[a5107c7538e61c53]::ty::context::TyCtxt, (), core[75a5a00debbb3d3d]::result::Result<(), rustc_errors[c8454b970e154417]::ErrorGuaranteed>>
  54:        0x10d7c0000 - rustc_query_system[376554ccb6bbe62f]::query::plumbing::try_execute_query::<rustc_query_impl[ebd438b5e01d582b]::plumbing::QueryCtxt, rustc_query_system[376554ccb6bbe62f]::query::caches::DefaultCache<(), core[75a5a00debbb3d3d]::result::Result<(), rustc_errors[c8454b970e154417]::ErrorGuaranteed>>>
  55:        0x10d82702c - rustc_query_system[376554ccb6bbe62f]::query::plumbing::get_query::<rustc_query_impl[ebd438b5e01d582b]::queries::analysis, rustc_query_impl[ebd438b5e01d582b]::plumbing::QueryCtxt>
  56:        0x10a817054 - <rustc_interface[64ac8d545596c047]::passes::QueryContext>::enter::<rustc_driver[250dcea03822790c]::run_compiler::{closure#1}::{closure#2}::{closure#3}, core[75a5a00debbb3d3d]::result::Result<(), rustc_errors[c8454b970e154417]::ErrorGuaranteed>>
  57:        0x10a7ec1b4 - rustc_interface[64ac8d545596c047]::interface::create_compiler_and_run::<core[75a5a00debbb3d3d]::result::Result<(), rustc_errors[c8454b970e154417]::ErrorGuaranteed>, rustc_driver[250dcea03822790c]::run_compiler::{closure#1}>
  58:        0x10a84f5e0 - <scoped_tls[1c31aea71029b747]::ScopedKey<rustc_span[b9fdb1d50c47c7fe]::SessionGlobals>>::set::<rustc_interface[64ac8d545596c047]::interface::run_compiler<core[75a5a00debbb3d3d]::result::Result<(), rustc_errors[c8454b970e154417]::ErrorGuaranteed>, rustc_driver[250dcea03822790c]::run_compiler::{closure#1}>::{closure#0}, core[75a5a00debbb3d3d]::result::Result<(), rustc_errors[c8454b970e154417]::ErrorGuaranteed>>
  59:        0x10a81adc8 - std[a5ccfe66677bd8c7]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[64ac8d545596c047]::util::run_in_thread_pool_with_globals<rustc_interface[64ac8d545596c047]::interface::run_compiler<core[75a5a00debbb3d3d]::result::Result<(), rustc_errors[c8454b970e154417]::ErrorGuaranteed>, rustc_driver[250dcea03822790c]::run_compiler::{closure#1}>::{closure#0}, core[75a5a00debbb3d3d]::result::Result<(), rustc_errors[c8454b970e154417]::ErrorGuaranteed>>::{closure#0}, core[75a5a00debbb3d3d]::result::Result<(), rustc_errors[c8454b970e154417]::ErrorGuaranteed>>
  60:        0x10a81dc4c - <<std[a5ccfe66677bd8c7]::thread::Builder>::spawn_unchecked_<rustc_interface[64ac8d545596c047]::util::run_in_thread_pool_with_globals<rustc_interface[64ac8d545596c047]::interface::run_compiler<core[75a5a00debbb3d3d]::result::Result<(), rustc_errors[c8454b970e154417]::ErrorGuaranteed>, rustc_driver[250dcea03822790c]::run_compiler::{closure#1}>::{closure#0}, core[75a5a00debbb3d3d]::result::Result<(), rustc_errors[c8454b970e154417]::ErrorGuaranteed>>::{closure#0}, core[75a5a00debbb3d3d]::result::Result<(), rustc_errors[c8454b970e154417]::ErrorGuaranteed>>::{closure#1} as core[75a5a00debbb3d3d]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  61:        0x102a8a428 - std::sys::unix::thread::Thread::new::thread_start::hf682c03d0f237892
  62:        0x192b5e06c - __pthread_deallocate

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.65.0 (897e37553 2022-11-02) running on aarch64-apple-darwin

note: compiler flags: --crate-type lib -C embed-bitcode=no -C split-debuginfo=unpacked -C debuginfo=2 -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 `diesel::query_source::joins::Join<db_diesel::quote_row::quote::table, db_diesel::tender_request_row::tender_request::table, diesel::query_source::joins::Inner>: diesel::query_source::QuerySource`
#1 [check_well_formed] checking that `db_diesel::quote::create_filtered_query` is well-formed
#2 [analysis] running analysis passes on this crate
end of query stack
error: could not compile `repository`

@JohnTitor JohnTitor added the E-needs-mcve Call for participation: This issue has a repro, but needs a Minimal Complete and Verifiable Example label Dec 22, 2022
@weiznich
Copy link
Contributor Author

weiznich commented Jan 4, 2023

I hit that bug again with rustc 1.67.0-nightly (215e3cd21 2022-11-03) on a other private project.

@jorendorff
Copy link
Contributor

I hit this bug with rustc 1.68.0 (2c8cc3432 2023-03-06) running on x86_64-unknown-linux-gnu, on yet another private project. Oddly, the same code builds fine on my Mac.

@jorendorff
Copy link
Contributor

Turning off my build cache (the CI equivalent of cargo clean) made it go away.

We recently changed this build from opt-level = 0 to opt-level = 1.

The main difference between the cached code and the new build is that I moved some features from one crate to another within the same workspace.

@kpreid
Copy link
Contributor

kpreid commented Dec 25, 2023

Triage: Relabeling issues which don't have a runnable reproduction (as opposed to having a non-minimized one) to the new label S-needs-repro.
@rustbot label +S-needs-repro -E-needs-mcve

@rustbot rustbot added S-needs-repro Status: This issue has no reproduction and needs a reproduction to make progress. and removed E-needs-mcve Call for participation: This issue has a repro, but needs a Minimal Complete and Verifiable Example labels Dec 25, 2023
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) ❄️ S-needs-repro Status: This issue has no reproduction and needs a reproduction to make progress. 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

6 participants