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

Internal Compiler Error - Cannot Relate Bound Region #110309

Closed
azulflame opened this issue Apr 14, 2023 · 1 comment
Closed

Internal Compiler Error - Cannot Relate Bound Region #110309

azulflame opened this issue Apr 14, 2023 · 1 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.

Comments

@azulflame
Copy link

azulflame commented Apr 14, 2023

Code

The breaking code can be found at https://github.com/azulflame/TrainmarchTicketBot/tree/compiler-error
I don't understand the issue well enough to make a MRE by myself.

Meta

rustc --version --verbose:

rustc 1.68.2 (9eb3afe9e 2023-03-27)
binary: rustc
commit-hash: 9eb3afe9ebe9c7d2b84b71002d44f4a0edac95e0
commit-date: 2023-03-27
host: x86_64-pc-windows-msvc
release: 1.68.2
LLVM version: 15.0.6

Error output

> cargo build
   Compiling ticket-bot v0.1.0 (C:\Users\todd\Documents\rust\ticket-bot)
error: internal compiler error: compiler\rustc_infer\src\infer\region_constraints\mod.rs:568:17: cannot relate bound region: ReLateBound(DebruijnIndex(0), BoundRegion { var: 0, kind: BrNamed(DefId(0:425 ~ ticket_bot[203d]::commands::open::open_modal::'_), '_) }) <= '_#3r

thread 'rustc' panicked at 'Box<dyn Any>', /rustc/9eb3afe9ebe9c7d2b84b71002d44f4a0edac95e0\compiler\rustc_errors\src\lib.rs:987:33
stack backtrace:
   0:     0x7fff3bab9d02 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::hbb6eec21cb8e3d1b
   1:     0x7fff3baf570b - core::fmt::write::h3f34d6e08b5a11e8
   2:     0x7fff3baacdfa - <std::io::IoSlice as core::fmt::Debug>::fmt::h1d8b4e60e4c9e548
   3:     0x7fff3bab9a4b - std::sys::common::alloc::realloc_fallback::h258dcd65da5985d2
   4:     0x7fff3babd3f9 - std::panicking::default_hook::h90b70b966050cb60
   5:     0x7fff3babd07b - std::panicking::default_hook::h90b70b966050cb60
   6:     0x7fff3e909425 - rustc_driver[fbeb20e0897b27eb]::describe_lints
   7:     0x7fff3babdd5f - std::panicking::rust_panic_with_hook::h1d50ae3462f62f01
   8:     0x7fff40bca703 - <<rustc_infer[e1f2f17455595243]::infer::error_reporting::TypeErrCtxt>::construct_generic_bound_failure::SubOrigin as core[15ae0b8045847941]::fmt::Debug>::fmt
   9:     0x7fff40bc8c19 - <<rustc_infer[e1f2f17455595243]::infer::error_reporting::TypeErrCtxt>::construct_generic_bound_failure::SubOrigin as core[15ae0b8045847941]::fmt::Debug>::fmt
  10:     0x7fff40bc8bb9 - <<rustc_infer[e1f2f17455595243]::infer::error_reporting::TypeErrCtxt>::construct_generic_bound_failure::SubOrigin as core[15ae0b8045847941]::fmt::Debug>::fmt
  11:     0x7fff40bc8ba9 - <<rustc_infer[e1f2f17455595243]::infer::error_reporting::TypeErrCtxt>::construct_generic_bound_failure::SubOrigin as core[15ae0b8045847941]::fmt::Debug>::fmt
  12:     0x7fff40bc8220 - <<rustc_infer[e1f2f17455595243]::infer::error_reporting::TypeErrCtxt>::construct_generic_bound_failure::SubOrigin as core[15ae0b8045847941]::fmt::Debug>::fmt
  13:     0x7fff40bc8079 - <<rustc_infer[e1f2f17455595243]::infer::error_reporting::TypeErrCtxt>::construct_generic_bound_failure::SubOrigin as core[15ae0b8045847941]::fmt::Debug>::fmt
  14:     0x7fff40bd04c9 - <rustc_infer[e1f2f17455595243]::infer::opaque_types::table::OpaqueTypeStorage as core[15ae0b8045847941]::fmt::Debug>::fmt
  15:     0x7fff40bd052d - <rustc_infer[e1f2f17455595243]::infer::opaque_types::table::OpaqueTypeStorage as core[15ae0b8045847941]::fmt::Debug>::fmt
  16:     0x7fff40bcf73a - <rustc_infer[e1f2f17455595243]::infer::opaque_types::table::OpaqueTypeStorage as core[15ae0b8045847941]::fmt::Debug>::fmt
  17:     0x7fff40bcf678 - <rustc_infer[e1f2f17455595243]::infer::opaque_types::table::OpaqueTypeStorage as core[15ae0b8045847941]::fmt::Debug>::fmt
  18:     0x7fff40bcf636 - <rustc_infer[e1f2f17455595243]::infer::opaque_types::table::OpaqueTypeStorage as core[15ae0b8045847941]::fmt::Debug>::fmt
  19:     0x7fff3e73776a - <rustc_infer[e1f2f17455595243]::infer::combine::ConstInferUnifier as rustc_middle[1d4803ea9c08b419]::ty::relate::TypeRelation>::consts
  20:     0x7fff3e74650f - <rustc_middle[1d4803ea9c08b419]::ty::sty::AliasTy as rustc_infer[e1f2f17455595243]::infer::at::ToTrace>::to_trace
  21:     0x7fff3e701909 - <rustc_infer[e1f2f17455595243]::infer::equate::Equate as rustc_middle[1d4803ea9c08b419]::ty::relate::TypeRelation>::tys
  22:     0x7fff3cecd78a - <rustc_middle[1d4803ea9c08b419]::traits::specialization_graph::Children as rustc_trait_selection[5f0f54a03cd0c301]::traits::specialize::specialization_graph::ChildrenExt>::insert_blindly
  23:     0x7fff3cebb10b - <rustc_trait_selection[5f0f54a03cd0c301]::traits::project::AssocTypeNormalizer as rustc_middle[1d4803ea9c08b419]::ty::fold::TypeFolder>::fold_const
  24:     0x7fff40b19218 - <rustc_trait_selection[5f0f54a03cd0c301]::solve::search_graph::StackDepth as core[15ae0b8045847941]::fmt::Debug>::fmt
  25:     0x7fff40ab7a09 - <rustc_trait_selection[5f0f54a03cd0c301]::traits::error_reporting::method_chain::CollectAllMismatches as rustc_middle[1d4803ea9c08b419]::ty::relate::TypeRelation>::consts
  26:     0x7fff40b316c3 - <rustc_infer[e1f2f17455595243]::infer::error_reporting::TypeErrCtxt as rustc_trait_selection[5f0f54a03cd0c301]::traits::error_reporting::suggestions::TypeErrCtxtExt>::report_closure_arg_mismatch
  27:     0x7fff40b44bdb - <rustc_infer[e1f2f17455595243]::infer::error_reporting::TypeErrCtxt as rustc_trait_selection[5f0f54a03cd0c301]::traits::error_reporting::TypeErrCtxtExt>::report_selection_error
  28:     0x7fff40b51805 - <rustc_infer[e1f2f17455595243]::infer::error_reporting::TypeErrCtxt as rustc_trait_selection[5f0f54a03cd0c301]::traits::error_reporting::InferCtxtPrivExt>::report_fulfillment_error
  29:     0x7fff40b41569 - <rustc_infer[e1f2f17455595243]::infer::error_reporting::TypeErrCtxt as rustc_trait_selection[5f0f54a03cd0c301]::traits::error_reporting::TypeErrCtxtExt>::report_fulfillment_errors
  30:     0x7fff3da8e51c - <rustc_hir_typeck[527c1058ba999897]::fn_ctxt::FnCtxt>::probe_instantiate_query_response
  31:     0x7fff3da2bf03 - <rustc_hir_typeck[527c1058ba999897]::fn_ctxt::FnCtxt>::check_call
  32:     0x7fff3da57e20 - <rustc_hir_typeck[527c1058ba999897]::fn_ctxt::FnCtxt>::demand_coerce
  33:     0x7fff3daad60f - <rustc_hir_typeck[527c1058ba999897]::fn_ctxt::FnCtxt>::resolve_type_vars_in_body
  34:     0x7fff3da5959d - <rustc_hir_typeck[527c1058ba999897]::fn_ctxt::FnCtxt>::demand_coerce
  35:     0x7fff3da5801a - <rustc_hir_typeck[527c1058ba999897]::fn_ctxt::FnCtxt>::demand_coerce
  36:     0x7fff3da9a622 - <rustc_hir_typeck[527c1058ba999897]::fn_ctxt::FnCtxt>::check_struct_path
  37:     0x7fff3da57fbf - <rustc_hir_typeck[527c1058ba999897]::fn_ctxt::FnCtxt>::demand_coerce
  38:     0x7fff3da59907 - <rustc_hir_typeck[527c1058ba999897]::fn_ctxt::FnCtxt>::demand_coerce
  39:     0x7fff3da9a622 - <rustc_hir_typeck[527c1058ba999897]::fn_ctxt::FnCtxt>::check_struct_path
  40:     0x7fff3da57fbf - <rustc_hir_typeck[527c1058ba999897]::fn_ctxt::FnCtxt>::demand_coerce
  41:     0x7fff3da6d7c0 - <rustc_hir_typeck[527c1058ba999897]::fn_ctxt::FnCtxt>::demand_coerce
  42:     0x7fff3db0c29d - <rustc_hir_typeck[527c1058ba999897]::writeback::WritebackCx as rustc_hir[38532e4666ac8dc2]::intravisit::Visitor>::visit_ty
  43:     0x7fff3c7ae478 - <rustc_hir_typeck[527c1058ba999897]::fn_ctxt::FnCtxt>::check_expr_closure
  44:     0x7fff3da5abb6 - <rustc_hir_typeck[527c1058ba999897]::fn_ctxt::FnCtxt>::demand_coerce
  45:     0x7fff3da8bf90 - <rustc_hir_typeck[527c1058ba999897]::fn_ctxt::FnCtxt>::probe_instantiate_query_response
  46:     0x7fff3da2bf03 - <rustc_hir_typeck[527c1058ba999897]::fn_ctxt::FnCtxt>::check_call
  47:     0x7fff3da57e20 - <rustc_hir_typeck[527c1058ba999897]::fn_ctxt::FnCtxt>::demand_coerce
  48:     0x7fff3da6d7c0 - <rustc_hir_typeck[527c1058ba999897]::fn_ctxt::FnCtxt>::demand_coerce
  49:     0x7fff3db0c29d - <rustc_hir_typeck[527c1058ba999897]::writeback::WritebackCx as rustc_hir[38532e4666ac8dc2]::intravisit::Visitor>::visit_ty
  50:     0x7fff3da1efcc - <rustc_hir_typeck[527c1058ba999897]::inherited::Inherited as core[15ae0b8045847941]::ops::deref::Deref>::deref
  51:     0x7fff3caee669 - <rustc_query_impl[22fc8f5fe5921e7d]::on_disk_cache::CacheEncoder as rustc_type_ir[76501457ae8f3cde]::codec::TyEncoder>::encode_alloc_id
  52:     0x7fff3cb547c5 - <&[(rustc_middle[1d4803ea9c08b419]::ty::Predicate, rustc_span[31f727a51b7d57bd]::span_encoding::Span)] as rustc_serialize[637af69557f69e4e]::serialize::Decodable<rustc_query_impl[22fc8f5fe5921e7d]::on_disk_cache::CacheDecoder>>::decode
  53:     0x7fff3e2e08ad - <&[(rustc_middle[1d4803ea9c08b419]::ty::Clause, rustc_span[31f727a51b7d57bd]::span_encoding::Span)] as rustc_serialize[637af69557f69e4e]::serialize::Decodable<rustc_query_impl[22fc8f5fe5921e7d]::on_disk_cache::CacheDecoder>>::decode
  54:     0x7fff3e1b7093 - <rustc_query_impl[22fc8f5fe5921e7d]::Queries as rustc_middle[1d4803ea9c08b419]::ty::query::QueryEngine>::as_any
  55:     0x7fff3e80d3f5 - <rustc_middle[1d4803ea9c08b419]::ty::context::TyCtxt>::typeck_opt_const_arg
  56:     0x7fff3de90cc9 - <rustc_passes[bd5f324aecd13b61]::liveness::Liveness as rustc_hir[38532e4666ac8dc2]::intravisit::Visitor>::visit_arm
  57:     0x7fff3caece23 - <rustc_query_impl[22fc8f5fe5921e7d]::on_disk_cache::CacheEncoder as rustc_type_ir[76501457ae8f3cde]::codec::TyEncoder>::encode_alloc_id
  58:     0x7fff3cb4987d - <&[(rustc_middle[1d4803ea9c08b419]::ty::Predicate, rustc_span[31f727a51b7d57bd]::span_encoding::Span)] as rustc_serialize[637af69557f69e4e]::serialize::Decodable<rustc_query_impl[22fc8f5fe5921e7d]::on_disk_cache::CacheDecoder>>::decode
  59:     0x7fff3e2e8fb0 - <&[(rustc_middle[1d4803ea9c08b419]::ty::Clause, rustc_span[31f727a51b7d57bd]::span_encoding::Span)] as rustc_serialize[637af69557f69e4e]::serialize::Decodable<rustc_query_impl[22fc8f5fe5921e7d]::on_disk_cache::CacheDecoder>>::decode
  60:     0x7fff3e1b35aa - <rustc_query_impl[22fc8f5fe5921e7d]::Queries as rustc_middle[1d4803ea9c08b419]::ty::query::QueryEngine>::as_any
  61:     0x7fff3dec103e - <rustc_mir_build[edc916ca84483e0b]::thir::pattern::check_match::MatchVisitor as rustc_hir[38532e4666ac8dc2]::intravisit::Visitor>::visit_param
  62:     0x7fff3caecf93 - <rustc_query_impl[22fc8f5fe5921e7d]::on_disk_cache::CacheEncoder as rustc_type_ir[76501457ae8f3cde]::codec::TyEncoder>::encode_alloc_id
  63:     0x7fff3cb49ed0 - <&[(rustc_middle[1d4803ea9c08b419]::ty::Predicate, rustc_span[31f727a51b7d57bd]::span_encoding::Span)] as rustc_serialize[637af69557f69e4e]::serialize::Decodable<rustc_query_impl[22fc8f5fe5921e7d]::on_disk_cache::CacheDecoder>>::decode
  64:     0x7fff3e2e56b2 - <&[(rustc_middle[1d4803ea9c08b419]::ty::Clause, rustc_span[31f727a51b7d57bd]::span_encoding::Span)] as rustc_serialize[637af69557f69e4e]::serialize::Decodable<rustc_query_impl[22fc8f5fe5921e7d]::on_disk_cache::CacheDecoder>>::decode
  65:     0x7fff3e1b37f8 - <rustc_query_impl[22fc8f5fe5921e7d]::Queries as rustc_middle[1d4803ea9c08b419]::ty::query::QueryEngine>::as_any
  66:     0x7fff3dc7c9f3 - <rustc_mir_transform[146ad2592ddb67a2]::check_unsafety::UnsafetyChecker as rustc_middle[1d4803ea9c08b419]::mir::visit::Visitor>::visit_place
  67:     0x7fff3dc70578 - <rustc_mir_transform[146ad2592ddb67a2]::deduce_param_attrs::DeduceReadOnly as rustc_middle[1d4803ea9c08b419]::mir::visit::Visitor>::visit_terminator
  68:     0x7fff3caee669 - <rustc_query_impl[22fc8f5fe5921e7d]::on_disk_cache::CacheEncoder as rustc_type_ir[76501457ae8f3cde]::codec::TyEncoder>::encode_alloc_id
  69:     0x7fff3cb547c5 - <&[(rustc_middle[1d4803ea9c08b419]::ty::Predicate, rustc_span[31f727a51b7d57bd]::span_encoding::Span)] as rustc_serialize[637af69557f69e4e]::serialize::Decodable<rustc_query_impl[22fc8f5fe5921e7d]::on_disk_cache::CacheDecoder>>::decode
  70:     0x7fff3e2bbafd - <&[(rustc_middle[1d4803ea9c08b419]::ty::Clause, rustc_span[31f727a51b7d57bd]::span_encoding::Span)] as rustc_serialize[637af69557f69e4e]::serialize::Decodable<rustc_query_impl[22fc8f5fe5921e7d]::on_disk_cache::CacheDecoder>>::decode
  71:     0x7fff3e1b6ae3 - <rustc_query_impl[22fc8f5fe5921e7d]::Queries as rustc_middle[1d4803ea9c08b419]::ty::query::QueryEngine>::as_any
  72:     0x7fff3dc4110a - <rustc_mir_transform[146ad2592ddb67a2]::unreachable_prop::UnreachablePropagation as rustc_middle[1d4803ea9c08b419]::mir::MirPass>::run_pass
  73:     0x7fff3caecf93 - <rustc_query_impl[22fc8f5fe5921e7d]::on_disk_cache::CacheEncoder as rustc_type_ir[76501457ae8f3cde]::codec::TyEncoder>::encode_alloc_id
  74:     0x7fff3cb49ed0 - <&[(rustc_middle[1d4803ea9c08b419]::ty::Predicate, rustc_span[31f727a51b7d57bd]::span_encoding::Span)] as rustc_serialize[637af69557f69e4e]::serialize::Decodable<rustc_query_impl[22fc8f5fe5921e7d]::on_disk_cache::CacheDecoder>>::decode
  75:     0x7fff3e2e733f - <&[(rustc_middle[1d4803ea9c08b419]::ty::Clause, rustc_span[31f727a51b7d57bd]::span_encoding::Span)] as rustc_serialize[637af69557f69e4e]::serialize::Decodable<rustc_query_impl[22fc8f5fe5921e7d]::on_disk_cache::CacheDecoder>>::decode
  76:     0x7fff3e1b3908 - <rustc_query_impl[22fc8f5fe5921e7d]::Queries as rustc_middle[1d4803ea9c08b419]::ty::query::QueryEngine>::as_any
  77:     0x7fff3dc4385a - <rustc_mir_transform[146ad2592ddb67a2]::unreachable_prop::UnreachablePropagation as rustc_middle[1d4803ea9c08b419]::mir::MirPass>::run_pass
  78:     0x7fff3caed103 - <rustc_query_impl[22fc8f5fe5921e7d]::on_disk_cache::CacheEncoder as rustc_type_ir[76501457ae8f3cde]::codec::TyEncoder>::encode_alloc_id
  79:     0x7fff3cb4a57d - <&[(rustc_middle[1d4803ea9c08b419]::ty::Predicate, rustc_span[31f727a51b7d57bd]::span_encoding::Span)] as rustc_serialize[637af69557f69e4e]::serialize::Decodable<rustc_query_impl[22fc8f5fe5921e7d]::on_disk_cache::CacheDecoder>>::decode
  80:     0x7fff3e2867b4 - <&[(rustc_middle[1d4803ea9c08b419]::ty::Clause, rustc_span[31f727a51b7d57bd]::span_encoding::Span)] as rustc_serialize[637af69557f69e4e]::serialize::Decodable<rustc_query_impl[22fc8f5fe5921e7d]::on_disk_cache::CacheDecoder>>::decode
  81:     0x7fff3e1b3d7a - <rustc_query_impl[22fc8f5fe5921e7d]::Queries as rustc_middle[1d4803ea9c08b419]::ty::query::QueryEngine>::as_any
  82:     0x7fff3df0f0c3 - <rustc_mir_build[edc916ca84483e0b]::thir::pattern::check_match::MatchVisitor as rustc_hir[38532e4666ac8dc2]::intravisit::Visitor>::visit_param
  83:     0x7fff3df0ead8 - <rustc_mir_build[edc916ca84483e0b]::thir::pattern::check_match::MatchVisitor as rustc_hir[38532e4666ac8dc2]::intravisit::Visitor>::visit_param
  84:     0x7fff3caee669 - <rustc_query_impl[22fc8f5fe5921e7d]::on_disk_cache::CacheEncoder as rustc_type_ir[76501457ae8f3cde]::codec::TyEncoder>::encode_alloc_id
  85:     0x7fff3cb547c5 - <&[(rustc_middle[1d4803ea9c08b419]::ty::Predicate, rustc_span[31f727a51b7d57bd]::span_encoding::Span)] as rustc_serialize[637af69557f69e4e]::serialize::Decodable<rustc_query_impl[22fc8f5fe5921e7d]::on_disk_cache::CacheDecoder>>::decode
  86:     0x7fff3e283435 - <&[(rustc_middle[1d4803ea9c08b419]::ty::Clause, rustc_span[31f727a51b7d57bd]::span_encoding::Span)] as rustc_serialize[637af69557f69e4e]::serialize::Decodable<rustc_query_impl[22fc8f5fe5921e7d]::on_disk_cache::CacheDecoder>>::decode
  87:     0x7fff3e1b726f - <rustc_query_impl[22fc8f5fe5921e7d]::Queries as rustc_middle[1d4803ea9c08b419]::ty::query::QueryEngine>::as_any
  88:     0x7fff3dbfa720 - <rustc_hir_analysis[9d3badbe7d08bcd8]::collect::lifetimes::LifetimeContext as rustc_hir[38532e4666ac8dc2]::intravisit::Visitor>::visit_lifetime
  89:     0x7fff3e260297 - <&[(rustc_middle[1d4803ea9c08b419]::ty::Clause, rustc_span[31f727a51b7d57bd]::span_encoding::Span)] as rustc_serialize[637af69557f69e4e]::serialize::Decodable<rustc_query_impl[22fc8f5fe5921e7d]::on_disk_cache::CacheDecoder>>::decode
  90:     0x7fff3e326f10 - <&[(rustc_middle[1d4803ea9c08b419]::ty::Clause, rustc_span[31f727a51b7d57bd]::span_encoding::Span)] as rustc_serialize[637af69557f69e4e]::serialize::Decodable<rustc_query_impl[22fc8f5fe5921e7d]::on_disk_cache::CacheDecoder>>::decode
  91:     0x7fff3c81cff8 - rustc_hir_analysis[9d3badbe7d08bcd8]::hir_wf_check::provide
  92:     0x7fff3dbaa2ea - rustc_hir_analysis[9d3badbe7d08bcd8]::check::check::check_abi
  93:     0x7fff3caed3d9 - <rustc_query_impl[22fc8f5fe5921e7d]::on_disk_cache::CacheEncoder as rustc_type_ir[76501457ae8f3cde]::codec::TyEncoder>::encode_alloc_id
  94:     0x7fff3cb569d5 - <&[(rustc_middle[1d4803ea9c08b419]::ty::Predicate, rustc_span[31f727a51b7d57bd]::span_encoding::Span)] as rustc_serialize[637af69557f69e4e]::serialize::Decodable<rustc_query_impl[22fc8f5fe5921e7d]::on_disk_cache::CacheDecoder>>::decode
  95:     0x7fff3cbf15a1 - <&[(rustc_middle[1d4803ea9c08b419]::ty::Predicate, rustc_span[31f727a51b7d57bd]::span_encoding::Span)] as rustc_serialize[637af69557f69e4e]::serialize::Decodable<rustc_query_impl[22fc8f5fe5921e7d]::on_disk_cache::CacheDecoder>>::decode
  96:     0x7fff3cac2b0f - <rustc_query_impl[22fc8f5fe5921e7d]::Queries as rustc_middle[1d4803ea9c08b419]::ty::query::QueryEngine>::try_mark_green
  97:     0x7fff3c7f9e30 - <<dyn rustc_hir_analysis[9d3badbe7d08bcd8]::astconv::AstConv>::create_substs_for_ast_path::{closure#0}::SubstsForAstPathCtxt as rustc_hir_analysis[9d3badbe7d08bcd8]::astconv::CreateSubstsForGenericArgsCtxt>::inferred_kind
  98:     0x7fff3c7f1e89 - rustc_hir_analysis[9d3badbe7d08bcd8]::check_crate
  99:     0x7fff3c0d2295 - rustc_interface[5b253cef4d5aad89]::passes::analysis
 100:     0x7fff3caeff1f - <rustc_query_impl[22fc8f5fe5921e7d]::on_disk_cache::CacheEncoder as rustc_type_ir[76501457ae8f3cde]::codec::TyEncoder>::encode_alloc_id
 101:     0x7fff3cb6ed19 - <&[(rustc_middle[1d4803ea9c08b419]::ty::Predicate, rustc_span[31f727a51b7d57bd]::span_encoding::Span)] as rustc_serialize[637af69557f69e4e]::serialize::Decodable<rustc_query_impl[22fc8f5fe5921e7d]::on_disk_cache::CacheDecoder>>::decode
 102:     0x7fff3cc5b611 - <&[(rustc_middle[1d4803ea9c08b419]::ty::Predicate, rustc_span[31f727a51b7d57bd]::span_encoding::Span)] as rustc_serialize[637af69557f69e4e]::serialize::Decodable<rustc_query_impl[22fc8f5fe5921e7d]::on_disk_cache::CacheDecoder>>::decode
 103:     0x7fff3cac094f - <rustc_query_impl[22fc8f5fe5921e7d]::Queries as rustc_middle[1d4803ea9c08b419]::ty::query::QueryEngine>::try_mark_green
 104:     0x7fff3c07d1a9 - <rustc_middle[1d4803ea9c08b419]::ty::SymbolName as core[15ae0b8045847941]::fmt::Debug>::fmt
 105:     0x7fff3c08e7fa - rustc_driver[fbeb20e0897b27eb]::args::arg_expand_all
 106:     0x7fff3c072ac1 - <unknown>
 107:     0x7fff3c07cacb - <rustc_middle[1d4803ea9c08b419]::ty::SymbolName as core[15ae0b8045847941]::fmt::Debug>::fmt
 108:     0x7fff3c07c319 - <rustc_middle[1d4803ea9c08b419]::ty::SymbolName as core[15ae0b8045847941]::fmt::Debug>::fmt
 109:     0x7fff3c07404d - <rustc_middle[1d4803ea9c08b419]::ty::SymbolName as core[15ae0b8045847941]::fmt::Debug>::fmt
 110:     0x7fff3bad021c - std::sys::windows::thread::Thread::new::hf7aab9c244c58572
 111:     0x7ff833877604 - BaseThreadInitThunk
 112:     0x7ff834be26a1 - RtlUserThreadStart

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.68.2 (9eb3afe9e 2023-03-27) 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 [typeck] type-checking `commands::open::open_modal`
#1 [thir_body] building THIR for `commands::open::open_modal`
#2 [mir_built] building MIR for `commands::open::open_modal`
#3 [unsafety_check_result] unsafety-checking `commands::open::open_modal`
#4 [mir_const] preparing `commands::open::open_modal` for borrow checking
#5 [mir_promoted] processing MIR for `commands::open::open_modal`
#6 [mir_borrowck] borrow-checking `commands::open::open_modal`
#7 [type_of] computing type of `commands::open::open_modal::{opaque#0}`
#8 [check_mod_item_types] checking item types in module `commands::open`
#9 [analysis] running analysis passes on this crate
end of query stack
error: could not compile `ticket-bot`
Backtrace

>cargo build
   Compiling ticket-bot v0.1.0 (C:\Users\todd\Documents\rust\ticket-bot)
error: internal compiler error: compiler\rustc_infer\src\infer\region_constraints\mod.rs:568:17: cannot relate bound region: ReLateBound(DebruijnIndex(0), BoundRegion { var: 0, kind: BrNamed(DefId(0:425 ~ ticket_bot[203d]::commands::open::open_modal::'_), '_) }) <= '_#3r

thread 'rustc' panicked at 'Box<dyn Any>', /rustc/9eb3afe9ebe9c7d2b84b71002d44f4a0edac95e0\compiler\rustc_errors\src\lib.rs:987:33
stack backtrace:
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

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.68.2 (9eb3afe9e 2023-03-27) 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 [typeck] type-checking `commands::open::open_modal`
#1 [thir_body] building THIR for `commands::open::open_modal`
#2 [mir_built] building MIR for `commands::open::open_modal`
#3 [unsafety_check_result] unsafety-checking `commands::open::open_modal`
#4 [mir_const] preparing `commands::open::open_modal` for borrow checking
#5 [mir_promoted] processing MIR for `commands::open::open_modal`
#6 [mir_borrowck] borrow-checking `commands::open::open_modal`
#7 [type_of] computing type of `commands::open::open_modal::{opaque#0}`
#8 [check_mod_item_types] checking item types in module `commands::open`
#9 [analysis] running analysis passes on this crate
end of query stack
error: could not compile `ticket-bot````

I think that's everything the formatting asked for. If there's anything more I can provide, please let me know

@azulflame azulflame 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 Apr 14, 2023
@jyn514
Copy link
Member

jyn514 commented Apr 14, 2023

Duplicate of #109361

@jyn514 jyn514 marked this as a duplicate of #109361 Apr 14, 2023
@jyn514 jyn514 closed this as not planned Won't fix, can't repro, duplicate, stale Apr 14, 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) ❄️ 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

2 participants