Skip to content

rustc 1.67.0-nightly build core dump #104238

Closed
@luyikk

Description

@luyikk

Code

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.67.0-nightly (e75aab0 2022-11-09) running on x86_64-pc-windows-msvc

note: compiler flags: --crate-type bin -C embed-bitcode=no -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 for<'a, 'b, 'c, 'd, 'e, 'f, 'g, 'h, 'i, 'j, 'k> {core::future::ResumeTy, &'a actor_service::money_service::MoneyService, i32, &'b str, f64, &'c aqueue::actor::Actor<d b::Databases>, static_def::DATABASE, &'d str, core::pin::Pin<alloc::boxed::Box<(dyn core::future::future::Future<Output = core::result::Result<core::option::Option<db::tables::table_account_money::account_money>, anyhow::Error>> + core::marker::Send + 'e)>>, core::pin::Pin<alloc::boxed::Box<(dyn core::future::future::Future<Output = core::result::Result<core::option::Option<db::tables::table_account_money::account_money>, anyhow::Error>> + core::marker::Se nd + 'f)>>, (), core::result::Result<core::option::Option<db::tables::table_account_money::account_money>, anyhow::Error>, core::ops::control_flow::ControlFlow<core::result::Result<core::convert::Infallible, anyhow::Error>, core:: option::Option<db::tables::table_account_money::account_money>>, core::option::Option<db::tables::table_account_money::account_money>, db::tables::table_account_money::account_money, bool, &'g str, db::StoreMoney, core::pin::Pin<a lloc::boxed::Box<(dyn core::future::future::Future<Output = core::result::Result<bool, anyhow::Error>> + core::marker::Send + 'h)>>, core::pin::Pin<alloc::boxed::Box<(dyn core::future::future::Future<Output = core::result::Result<bool, anyhow::Error>> + core::marker::Send + 'i)>>, &'j str, core::pin::Pin<alloc::boxed::Box<(dyn core::future::future::Future<Output = core::result::Result<bool, anyhow::Error>> + core::marker::Send + 'k)>>}: core::marker::Send
#1 [typeck] type-checking actor_service::money_service::<impl at src\actor_service\money_service.rs:698:1: 698:43>::change_money_gift_safe
#2 [typeck_item_bodies] type-checking all item bodies
#3 [analysis] running analysis passes on this crate
end of query stack
thread 'rustc' panicked at 'forcing query with already existing DepNode

  • query-key: Canonical { max_universe: U0, variables: [CanonicalVarInfo { kind: Region(U0) }, CanonicalVarInfo { kind: Region(U0) }, CanonicalVarInfo { kind: Region(U0) }], value: ParamEnvAnd { param_env: ParamEnv { caller_bounds:
    [Binder(OutlivesPredicate(ReLateBound(DebruijnIndex(1), BoundRegion { var: 0, kind: BrAnon(0, None) }), ReLateBound(DebruijnIndex(1), BoundRegion { var: 1, kind: BrAnon(1, None) })), []), Binder(OutlivesPredicate(ReLateBound(Debr
    uijnIndex(1), BoundRegion { var: 2, kind: BrAnon(2, None) }), ReLateBound(DebruijnIndex(1), BoundRegion { var: 1, kind: BrAnon(1, None) })), []), Binder(OutlivesPredicate(aqueue::Actor<actor_service::money_service::MoneyService>,
    ReLateBound(DebruijnIndex(1), BoundRegion { var: 1, kind: BrAnon(1, None) })), [])], reveal: UserFacing, constness: NotConst }, value: Binder(TraitPredicate(<for<'a, 'b, 'c, 'd, 'e, 'f, 'g, 'h, 'i> {std::future::ResumeTy, &'a acto
    r_service::money_service::MoneyService, i32, &'b str, &'c aqueue::Actordb::Databases, static_def::DATABASE, &'d str, std::pin::Pin<std::boxed::Box<(dyn std::future::Future<Output = std::result::Result<std::option::Option, a
    nyhow::Error>> + std::marker::Send + 'e)>>, std::pin::Pin<std::boxed::Box<(dyn std::future::Future<Output = std::result::Result<std::option::Option, anyhow::Error>> + std::marker::Send + 'f)>>, (), bool, &'g str, std::pin::Pi
    n<std::boxed::Box<(dyn std::future::Future<Output = std::result::Result<bool, anyhow::Error>> + std::marker::Send + 'h)>>, std::pin::Pin<std::boxed::Box<(dyn std::future::Future<Output = std::result::Result<bool, anyhow::Error>> + std::marker::Send + 'i)>>} as std::marker::Send>, polarity:Positive), []) } }
  • dep-node: evaluate_obligation(1abef27f9e526b90-dc8b076abe19faf0)', /rustc/e75aab045fc476f176a58c408f6b06f0e275c6e1\compiler\rustc_query_system\src\dep_graph\graph.rs:316:9
    stack backtrace:
    0: 0x7ff9e5619a42 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h492e180cd0edfa21
    1: 0x7ff9e565556b - core::fmt::write::h73bbbc93f82a9a90
    2: 0x7ff9e560c03a - <std::io::IoSlice as core::fmt::Debug>::fmt::hf363c3d500eef44b
    3: 0x7ff9e561978b - std::sys::common::alloc::realloc_fallback::ha931d80a9f1e2aeb
    4: 0x7ff9e561d0b9 - std::panicking::default_hook::h1885eb7e3c663856
    5: 0x7ff9e561cd3a - std::panicking::default_hook::h1885eb7e3c663856
    6: 0x7ff9e841a93b - rustc_driver[643a83b6c7033cdb]::describe_lints
    7: 0x7ff9e561da10 - std::panicking::rust_panic_with_hook::hfc62700855c05cab
    8: 0x7ff9e561d76d - <std::panicking::begin_panic_handler::StrPanicPayload as core::panic::BoxMeUp>::get::h55caf3990a134d8d
    9: 0x7ff9e561a74f - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h492e180cd0edfa21
    10: 0x7ff9e561d430 - rust_begin_unwind
    11: 0x7ff9e568b4a5 - core::panicking::panic_fmt::h50242fef82f42242
    12: 0x7ff9e7d89e43 - <rustc_span[e822629c24459846]::def_id::DefId as rustc_serialize[26fb87643a653617]::serialize::Encodable<rustc_query_impl[4bd925c7e6f8a6b5]::on_disk_cache::CacheEncoder>>::encode
    13: 0x7ff9e7e36611 - <rustc_span[e822629c24459846]::def_id::DefId as rustc_serialize[26fb87643a653617]::serialize::Encodable<rustc_query_impl[4bd925c7e6f8a6b5]::on_disk_cache::CacheEncoder>>::encode
    14: 0x7ff9e7cf6d26 - <rustc_query_impl[4bd925c7e6f8a6b5]::Queries as rustc_middle[70ebb0efaeb7f97d]::ty::query::QueryEngine>::as_any
    15: 0x7ff9e81779c5 - <rustc_trait_selection[4232c4007f6de79e]::traits::fulfill::FulfillProcessor as rustc_data_structures[7e679284a49a1e9c]::obligation_forest::ObligationProcessor>::process_obligation
    16: 0x7ff9e81a4a3c - rustc_trait_selection[4232c4007f6de79e]::traits::project::normalize_projection_type
    17: 0x7ff9e8173ab2 - <rustc_trait_selection[4232c4007f6de79e]::traits::fulfill::FulfillmentContext as rustc_infer[4837189ade221608]::traits::engine::TraitEngine>::select_all_or_error
    18: 0x7ff9e75f5aa9 - <rustc_hir_typeck[aaefa5d142e23f85]::inherited::Inherited>::build
    19: 0x7ff9e7537c4d - <rustc_hir_typeck[aaefa5d142e23f85]::UnsafetyState>::recurse
    20: 0x7ff9e6613c58 - <rustc_const_eval[fa571badc7d0578d]::transform::check_consts::resolver::State as core[77a3798dca5521b2]::clone::Clone>::clone_from
    21: 0x7ff9e6695c45 - <&rustc_index[481d406d17e9d4f4]::vec::IndexVec<rustc_middle[70ebb0efaeb7f97d]::mir::Promoted, rustc_middle[70ebb0efaeb7f97d]::mir::Body> as rustc_serialize[26fb87643a653617]::serialize::Decodable<rustc_query_impl[4bd925c7e6f8a6b5]::on_disk_cache::CacheDecoder>>::decode
    22: 0x7ff9e7dd3be9 - <rustc_span[e822629c24459846]::def_id::DefId as rustc_serialize[26fb87643a653617]::serialize::Encodable<rustc_query_impl[4bd925c7e6f8a6b5]::on_disk_cache::CacheEncoder>>::encode
    23: 0x7ff9e7cf1ff8 - <rustc_query_impl[4bd925c7e6f8a6b5]::Queries as rustc_middle[70ebb0efaeb7f97d]::ty::query::QueryEngine>::as_any
    24: 0x7ff9e753a345 - <rustc_hir_typeck[aaefa5d142e23f85]::UnsafetyState>::recurse
    25: 0x7ff9e6314491 - <rustc_hir_typeck[aaefa5d142e23f85]::cast::CastCheck>::do_check
    26: 0x7ff9e6615a1e - <rustc_const_eval[fa571badc7d0578d]::transform::check_consts::resolver::State as core[77a3798dca5521b2]::clone::Clone>::clone_from
    27: 0x7ff9e66b975f - <&rustc_index[481d406d17e9d4f4]::vec::IndexVec<rustc_middle[70ebb0efaeb7f97d]::mir::Promoted, rustc_middle[70ebb0efaeb7f97d]::mir::Body> as rustc_serialize[26fb87643a653617]::serialize::Decodable<rustc_query_impl[4bd925c7e6f8a6b5]::on_disk_cache::CacheDecoder>>::decode
    28: 0x7ff9e679c689 - <&rustc_index[481d406d17e9d4f4]::vec::IndexVec<rustc_middle[70ebb0efaeb7f97d]::mir::Promoted, rustc_middle[70ebb0efaeb7f97d]::mir::Body> as rustc_serialize[26fb87643a653617]::serialize::Decodable<rustc_query_impl[4bd925c7e6f8a6b5]::on_disk_cache::CacheDecoder>>::decode
    29: 0x7ff9e67d3242 - <&rustc_index[481d406d17e9d4f4]::vec::IndexVec<rustc_middle[70ebb0efaeb7f97d]::mir::Promoted, rustc_middle[70ebb0efaeb7f97d]::mir::Body> as rustc_serialize[26fb87643a653617]::serialize::Decodable<rustc_query_impl[4bd925c7e6f8a6b5]::on_disk_cache::CacheDecoder>>::decode
    30: 0x7ff9e63c330a - <rustc_hir_analysis[6a1081370415fbfc]::constrained_generic_params::ParameterCollector as rustc_middle[70ebb0efaeb7f97d]::ty::visit::TypeVisitor>::visit_const
    31: 0x7ff9e636a0b3 - rustc_hir_analysis[6a1081370415fbfc]::check_crate
    32: 0x7ff9e5c52425 - rustc_interface[3a664b69b8d11fd6]::passes::analysis
    33: 0x7ff9e661550e - <rustc_const_eval[fa571badc7d0578d]::transform::check_consts::resolver::State as core[77a3798dca5521b2]::clone::Clone>::clone_from
    34: 0x7ff9e66b4009 - <&rustc_index[481d406d17e9d4f4]::vec::IndexVec<rustc_middle[70ebb0efaeb7f97d]::mir::Promoted, rustc_middle[70ebb0efaeb7f97d]::mir::Body> as rustc_serialize[26fb87643a653617]::serialize::Decodable<rustc_query_impl[4bd925c7e6f8a6b5]::on_disk_cache::CacheDecoder>>::decode
    35: 0x7ff9e678b62e - <&rustc_index[481d406d17e9d4f4]::vec::IndexVec<rustc_middle[70ebb0efaeb7f97d]::mir::Promoted, rustc_middle[70ebb0efaeb7f97d]::mir::Body> as rustc_serialize[26fb87643a653617]::serialize::Decodable<rustc_query_impl[4bd925c7e6f8a6b5]::on_disk_cache::CacheDecoder>>::decode
    36: 0x7ff9e67daf96 - <&rustc_index[481d406d17e9d4f4]::vec::IndexVec<rustc_middle[70ebb0efaeb7f97d]::mir::Promoted, rustc_middle[70ebb0efaeb7f97d]::mir::Body> as rustc_serialize[26fb87643a653617]::serialize::Decodable<rustc_query_impl[4bd925c7e6f8a6b5]::on_disk_cache::CacheDecoder>>::decode
    37: 0x7ff9e5bfbd54 -
    38: 0x7ff9e5c0c288 - rustc_driver[643a83b6c7033cdb]::args::arg_expand_all
    39: 0x7ff9e5c280fa - <rustc_middle[70ebb0efaeb7f97d]::ty::SymbolName as core[77a3798dca5521b2]::fmt::Debug>::fmt
    40: 0x7ff9e5c0b6bd - rustc_driver[643a83b6c7033cdb]::args::arg_expand_all
    41: 0x7ff9e5bfc819 -
    42: 0x7ff9e5bf39b0 -
    43: 0x7ff9e562f60c - std::sys::windows::thread::Thread::new::h0c3062413e94d0e9
    44: 0x7ffad97e244d - BaseThreadInitThunk
    45: 0x7ffadaaadfb8 - RtlUserThreadStart

error: internal compiler error: unexpected panic

Meta

rustc --version --verbose:

<version>

Error output

<output>
Backtrace

<backtrace>

Metadata

Metadata

Labels

C-bugCategory: This is a bug.I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️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