Skip to content

ICE: index out of bounds: the len is 53 but the index is 54 #99970

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
ElectrifyPro opened this issue Jul 30, 2022 · 1 comment · Fixed by #99928
Closed

ICE: index out of bounds: the len is 53 but the index is 54 #99970

ElectrifyPro opened this issue Jul 30, 2022 · 1 comment · Fixed by #99928
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

@ElectrifyPro
Copy link
Contributor

Code

I have this exact function in my code:

    pub fn get_room_users(&self, uuid: Uuid) -> Result<HashMap<Uuid, UserDisplay>, FetchRoomError> {

    }

When I run cargo check, it prints the correct mismatched types compiler error.

However, when I made the function async:

    pub async fn get_room_users(&self, uuid: Uuid) -> Result<HashMap<Uuid, UserDisplay>, FetchRoomError> {

    }

cargo check produces, apparently, two internal errors, shown below.

I can provide additional information if needed.

Meta

rustc --version --verbose:

rustc 1.64.0-nightly (3924dac7b 2022-07-29)
binary: rustc
commit-hash: 3924dac7bb29bc8eb348059c901e8f912399c857
commit-date: 2022-07-29
host: x86_64-unknown-linux-gnu
release: 1.64.0-nightly
LLVM version: 14.0.6

Error output

(error 1): thread 'rustc' panicked at 'index out of bounds: the len is 53 but the index is 54', /cargo/registry/src/github.com-1ecc6299db9ec823/ena-0.14.0/src/snapshot_vec.rs:199:10
(error 2): thread 'rustc' panicked at 'Box<dyn Any>', compiler/rustc_errors/src/lib.rs:1426:13
Backtrace

thread 'rustc' panicked at 'index out of bounds: the len is 53 but the index is 54', /cargo/registry/src/github.com-1ecc6299db9ec823/ena-0.14.0/src/snapshot_vec.rs:199:10
stack backtrace:
   0:     0x7feb2f732300 - std::backtrace_rs::backtrace::libunwind::trace::h6ddc9f9c210496ff
                               at /rustc/3924dac7bb29bc8eb348059c901e8f912399c857/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
   1:     0x7feb2f732300 - std::backtrace_rs::backtrace::trace_unsynchronized::h9e468e888e8d9720
                               at /rustc/3924dac7bb29bc8eb348059c901e8f912399c857/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
   2:     0x7feb2f732300 - std::sys_common::backtrace::_print_fmt::hd1881e9a19369fc2
                               at /rustc/3924dac7bb29bc8eb348059c901e8f912399c857/library/std/src/sys_common/backtrace.rs:66:5
   3:     0x7feb2f732300 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::hc760c80094d12d0b
                               at /rustc/3924dac7bb29bc8eb348059c901e8f912399c857/library/std/src/sys_common/backtrace.rs:45:22
   4:     0x7feb2f78d71c - core::fmt::write::h9fa2d54393b34210
                               at /rustc/3924dac7bb29bc8eb348059c901e8f912399c857/library/core/src/fmt/mod.rs:1198:17
   5:     0x7feb2f723325 - std::io::Write::write_fmt::h6cb3511bb78b07fc
                               at /rustc/3924dac7bb29bc8eb348059c901e8f912399c857/library/std/src/io/mod.rs:1672:15
   6:     0x7feb2f734fd1 - std::sys_common::backtrace::_print::h82007c152e8a20f6
                               at /rustc/3924dac7bb29bc8eb348059c901e8f912399c857/library/std/src/sys_common/backtrace.rs:48:5
   7:     0x7feb2f734fd1 - std::sys_common::backtrace::print::hfd39d026c8fd7dc2
                               at /rustc/3924dac7bb29bc8eb348059c901e8f912399c857/library/std/src/sys_common/backtrace.rs:35:9
   8:     0x7feb2f734fd1 - std::panicking::default_hook::{{closure}}::h1d5c56ed0d43c6d2
                               at /rustc/3924dac7bb29bc8eb348059c901e8f912399c857/library/std/src/panicking.rs:295:22
   9:     0x7feb2f734ca3 - std::panicking::default_hook::hbd4b8c74f6bf2a75
                               at /rustc/3924dac7bb29bc8eb348059c901e8f912399c857/library/std/src/panicking.rs:314:9
  10:     0x7feb31f0b474 - rustc_driver[2f40008e0c6ae48d]::DEFAULT_HOOK::{closure#0}::{closure#0}
  11:     0x7feb2f735806 - std::panicking::rust_panic_with_hook::h1677c7be7e0853f1
                               at /rustc/3924dac7bb29bc8eb348059c901e8f912399c857/library/std/src/panicking.rs:702:17
  12:     0x7feb2f735657 - std::panicking::begin_panic_handler::{{closure}}::h76fcac37b48c7869
                               at /rustc/3924dac7bb29bc8eb348059c901e8f912399c857/library/std/src/panicking.rs:588:13
  13:     0x7feb2f732824 - std::sys_common::backtrace::__rust_end_short_backtrace::h6a9e5a007b51de2f
                               at /rustc/3924dac7bb29bc8eb348059c901e8f912399c857/library/std/src/sys_common/backtrace.rs:138:18
  14:     0x7feb2f735382 - rust_begin_unwind
                               at /rustc/3924dac7bb29bc8eb348059c901e8f912399c857/library/std/src/panicking.rs:584:5
  15:     0x7feb2f78a1f3 - core::panicking::panic_fmt::h90badf56b3321f8c
                               at /rustc/3924dac7bb29bc8eb348059c901e8f912399c857/library/core/src/panicking.rs:142:14
  16:     0x7feb2f78a132 - core::panicking::panic_bounds_check::h6c0973ef11d25713
                               at /rustc/3924dac7bb29bc8eb348059c901e8f912399c857/library/core/src/panicking.rs:84:5
  17:     0x7feb30859618 - <rustc_infer[d65445394da8795b]::infer::ShallowResolver as rustc_middle[b0361dc3b46faa41]::ty::fold::TypeFolder>::fold_ty
  18:     0x7feb3085938e - <rustc_infer[d65445394da8795b]::infer::InferCtxt>::shallow_resolve::<rustc_middle[b0361dc3b46faa41]::ty::Ty>
  19:     0x7feb3085926b - <&rustc_middle[b0361dc3b46faa41]::ty::list::List<rustc_middle[b0361dc3b46faa41]::ty::subst::GenericArg> as rustc_middle[b0361dc3b46faa41]::ty::fold::TypeFoldable>::try_fold_with::<rustc_infer[d65445394da8795b]::infer::resolve::OpportunisticVarResolver>
  20:     0x7feb3085893d - <rustc_infer[d65445394da8795b]::infer::resolve::OpportunisticVarResolver as rustc_middle[b0361dc3b46faa41]::ty::fold::FallibleTypeFolder>::try_fold_ty
  21:     0x7feb32d5e096 - <(rustc_middle[b0361dc3b46faa41]::ty::Ty, rustc_middle[b0361dc3b46faa41]::ty::Ty) as rustc_middle[b0361dc3b46faa41]::ty::fold::TypeFoldable>::fold_with::<rustc_infer[d65445394da8795b]::infer::resolve::OpportunisticVarResolver>
  22:     0x7feb32d50a5f - <rustc_infer[d65445394da8795b]::infer::InferCtxt>::same_type_modulo_infer
  23:     0x7feb32d55fd2 - <rustc_infer[d65445394da8795b]::infer::InferCtxt>::note_type_err
  24:     0x7feb32d4c8e7 - <rustc_infer[d65445394da8795b]::infer::InferCtxt>::report_and_explain_type_error
  25:     0x7feb3225404d - <rustc_typeck[3a6a9adc157696d2]::check::fn_ctxt::FnCtxt>::report_arg_errors
  26:     0x7feb30a2ca85 - <rustc_typeck[3a6a9adc157696d2]::check::fn_ctxt::FnCtxt>::check_argument_types
  27:     0x7feb309e27e3 - <rustc_typeck[3a6a9adc157696d2]::check::fn_ctxt::FnCtxt>::check_call
  28:     0x7feb30a2f488 - <rustc_typeck[3a6a9adc157696d2]::check::fn_ctxt::FnCtxt>::check_expr_with_expectation_and_args
  29:     0x7feb30a415de - <rustc_typeck[3a6a9adc157696d2]::check::fn_ctxt::FnCtxt>::check_block_with_expected
  30:     0x7feb30a2f5f6 - <rustc_typeck[3a6a9adc157696d2]::check::fn_ctxt::FnCtxt>::check_expr_with_expectation_and_args
  31:     0x7feb30a31108 - <rustc_typeck[3a6a9adc157696d2]::check::fn_ctxt::FnCtxt>::check_expr_with_expectation_and_args
  32:     0x7feb30a415de - <rustc_typeck[3a6a9adc157696d2]::check::fn_ctxt::FnCtxt>::check_block_with_expected
  33:     0x7feb30a2f5f6 - <rustc_typeck[3a6a9adc157696d2]::check::fn_ctxt::FnCtxt>::check_expr_with_expectation_and_args
  34:     0x7feb3101ed5e - rustc_typeck[3a6a9adc157696d2]::check::check::check_fn
  35:     0x7feb30a9edce - <rustc_typeck[3a6a9adc157696d2]::check::fn_ctxt::FnCtxt>::check_expr_closure
  36:     0x7feb30a32103 - <rustc_typeck[3a6a9adc157696d2]::check::fn_ctxt::FnCtxt>::check_expr_with_expectation_and_args
  37:     0x7feb30a2968f - <rustc_typeck[3a6a9adc157696d2]::check::fn_ctxt::FnCtxt>::check_argument_types
  38:     0x7feb309e27e3 - <rustc_typeck[3a6a9adc157696d2]::check::fn_ctxt::FnCtxt>::check_call
  39:     0x7feb30a2f488 - <rustc_typeck[3a6a9adc157696d2]::check::fn_ctxt::FnCtxt>::check_expr_with_expectation_and_args
  40:     0x7feb3101ed5e - rustc_typeck[3a6a9adc157696d2]::check::check::check_fn
  41:     0x7feb3100dce8 - <rustc_infer[d65445394da8795b]::infer::InferCtxtBuilder>::enter::<&rustc_middle[b0361dc3b46faa41]::ty::context::TypeckResults, <rustc_typeck[3a6a9adc157696d2]::check::inherited::InheritedBuilder>::enter<rustc_typeck[3a6a9adc157696d2]::check::typeck_with_fallback<rustc_typeck[3a6a9adc157696d2]::check::typeck::{closure#0}>::{closure#1}, &rustc_middle[b0361dc3b46faa41]::ty::context::TypeckResults>::{closure#0}>
  42:     0x7feb319351b6 - rustc_typeck[3a6a9adc157696d2]::check::typeck
  43:     0x7feb3153f87f - <rustc_query_system[c5b4090de70f61eb]::dep_graph::graph::DepGraph<rustc_middle[b0361dc3b46faa41]::dep_graph::dep_node::DepKind>>::with_task::<rustc_middle[b0361dc3b46faa41]::ty::context::TyCtxt, rustc_span[b55e3ed1d80ca2e1]::def_id::LocalDefId, &rustc_middle[b0361dc3b46faa41]::ty::context::TypeckResults>
  44:     0x7feb31537c1a - rustc_query_system[c5b4090de70f61eb]::query::plumbing::try_execute_query::<rustc_query_impl[6ebad19704c173d0]::plumbing::QueryCtxt, rustc_query_system[c5b4090de70f61eb]::query::caches::DefaultCache<rustc_span[b55e3ed1d80ca2e1]::def_id::LocalDefId, &rustc_middle[b0361dc3b46faa41]::ty::context::TypeckResults>>
  45:     0x7feb31e19688 - <rustc_query_impl[6ebad19704c173d0]::Queries as rustc_middle[b0361dc3b46faa41]::ty::query::QueryEngine>::typeck
  46:     0x7feb314e45a5 - <rustc_middle[b0361dc3b46faa41]::ty::context::TyCtxt>::typeck_opt_const_arg
  47:     0x7feb314e3055 - rustc_mir_build[b92cc536c41b166e]::build::mir_built
  48:     0x7feb3138206c - <rustc_query_system[c5b4090de70f61eb]::dep_graph::graph::DepGraph<rustc_middle[b0361dc3b46faa41]::dep_graph::dep_node::DepKind>>::with_task::<rustc_middle[b0361dc3b46faa41]::ty::context::TyCtxt, rustc_middle[b0361dc3b46faa41]::ty::WithOptConstParam<rustc_span[b55e3ed1d80ca2e1]::def_id::LocalDefId>, &rustc_data_structures[319dc9d7210783ce]::steal::Steal<rustc_middle[b0361dc3b46faa41]::mir::Body>>
  49:     0x7feb31380f2e - rustc_query_system[c5b4090de70f61eb]::query::plumbing::try_execute_query::<rustc_query_impl[6ebad19704c173d0]::plumbing::QueryCtxt, rustc_query_system[c5b4090de70f61eb]::query::caches::DefaultCache<rustc_middle[b0361dc3b46faa41]::ty::WithOptConstParam<rustc_span[b55e3ed1d80ca2e1]::def_id::LocalDefId>, &rustc_data_structures[319dc9d7210783ce]::steal::Steal<rustc_middle[b0361dc3b46faa41]::mir::Body>>>
  50:     0x7feb31e18085 - <rustc_query_impl[6ebad19704c173d0]::Queries as rustc_middle[b0361dc3b46faa41]::ty::query::QueryEngine>::mir_built
  51:     0x7feb30f4f780 - rustc_mir_transform[acd891945b11d676]::check_unsafety::unsafety_check_result
  52:     0x7feb30f4f19e - <rustc_mir_transform[acd891945b11d676]::check_unsafety::provide::{closure#0} as core[2e75634dfdf5101e]::ops::function::FnOnce<(rustc_middle[b0361dc3b46faa41]::ty::context::TyCtxt, rustc_span[b55e3ed1d80ca2e1]::def_id::LocalDefId)>>::call_once
  53:     0x7feb3149b43f - <rustc_query_system[c5b4090de70f61eb]::dep_graph::graph::DepGraph<rustc_middle[b0361dc3b46faa41]::dep_graph::dep_node::DepKind>>::with_task::<rustc_middle[b0361dc3b46faa41]::ty::context::TyCtxt, rustc_span[b55e3ed1d80ca2e1]::def_id::LocalDefId, &rustc_middle[b0361dc3b46faa41]::mir::query::UnsafetyCheckResult>
  54:     0x7feb31499baa - rustc_query_system[c5b4090de70f61eb]::query::plumbing::try_execute_query::<rustc_query_impl[6ebad19704c173d0]::plumbing::QueryCtxt, rustc_query_system[c5b4090de70f61eb]::query::caches::DefaultCache<rustc_span[b55e3ed1d80ca2e1]::def_id::LocalDefId, &rustc_middle[b0361dc3b46faa41]::mir::query::UnsafetyCheckResult>>
  55:     0x7feb31e1928e - <rustc_query_impl[6ebad19704c173d0]::Queries as rustc_middle[b0361dc3b46faa41]::ty::query::QueryEngine>::unsafety_check_result
  56:     0x7feb308fd6f0 - rustc_mir_transform[acd891945b11d676]::mir_const
  57:     0x7feb3138206c - <rustc_query_system[c5b4090de70f61eb]::dep_graph::graph::DepGraph<rustc_middle[b0361dc3b46faa41]::dep_graph::dep_node::DepKind>>::with_task::<rustc_middle[b0361dc3b46faa41]::ty::context::TyCtxt, rustc_middle[b0361dc3b46faa41]::ty::WithOptConstParam<rustc_span[b55e3ed1d80ca2e1]::def_id::LocalDefId>, &rustc_data_structures[319dc9d7210783ce]::steal::Steal<rustc_middle[b0361dc3b46faa41]::mir::Body>>
  58:     0x7feb31380f2e - rustc_query_system[c5b4090de70f61eb]::query::plumbing::try_execute_query::<rustc_query_impl[6ebad19704c173d0]::plumbing::QueryCtxt, rustc_query_system[c5b4090de70f61eb]::query::caches::DefaultCache<rustc_middle[b0361dc3b46faa41]::ty::WithOptConstParam<rustc_span[b55e3ed1d80ca2e1]::def_id::LocalDefId>, &rustc_data_structures[319dc9d7210783ce]::steal::Steal<rustc_middle[b0361dc3b46faa41]::mir::Body>>>
  59:     0x7feb31e181bc - <rustc_query_impl[6ebad19704c173d0]::Queries as rustc_middle[b0361dc3b46faa41]::ty::query::QueryEngine>::mir_const
  60:     0x7feb30fa7d9a - rustc_mir_transform[acd891945b11d676]::mir_promoted
  61:     0x7feb318c751c - <rustc_query_system[c5b4090de70f61eb]::dep_graph::graph::DepGraph<rustc_middle[b0361dc3b46faa41]::dep_graph::dep_node::DepKind>>::with_task::<rustc_middle[b0361dc3b46faa41]::ty::context::TyCtxt, rustc_middle[b0361dc3b46faa41]::ty::WithOptConstParam<rustc_span[b55e3ed1d80ca2e1]::def_id::LocalDefId>, (&rustc_data_structures[319dc9d7210783ce]::steal::Steal<rustc_middle[b0361dc3b46faa41]::mir::Body>, &rustc_data_structures[319dc9d7210783ce]::steal::Steal<rustc_index[171b1bc434640498]::vec::IndexVec<rustc_middle[b0361dc3b46faa41]::mir::Promoted, rustc_middle[b0361dc3b46faa41]::mir::Body>>)>
  62:     0x7feb318c632d - rustc_query_system[c5b4090de70f61eb]::query::plumbing::get_query::<rustc_query_impl[6ebad19704c173d0]::queries::mir_promoted, rustc_query_impl[6ebad19704c173d0]::plumbing::QueryCtxt>
  63:     0x7feb318c5907 - <rustc_query_impl[6ebad19704c173d0]::Queries as rustc_middle[b0361dc3b46faa41]::ty::query::QueryEngine>::mir_promoted
  64:     0x7feb31879def - rustc_borrowck[115c609014f28a88]::mir_borrowck
  65:     0x7feb318798fe - <rustc_borrowck[115c609014f28a88]::provide::{closure#0} as core[2e75634dfdf5101e]::ops::function::FnOnce<(rustc_middle[b0361dc3b46faa41]::ty::context::TyCtxt, rustc_span[b55e3ed1d80ca2e1]::def_id::LocalDefId)>>::call_once
  66:     0x7feb31334d7f - <rustc_query_system[c5b4090de70f61eb]::dep_graph::graph::DepGraph<rustc_middle[b0361dc3b46faa41]::dep_graph::dep_node::DepKind>>::with_task::<rustc_middle[b0361dc3b46faa41]::ty::context::TyCtxt, rustc_span[b55e3ed1d80ca2e1]::def_id::LocalDefId, &rustc_middle[b0361dc3b46faa41]::mir::query::BorrowCheckResult>
  67:     0x7feb31334034 - rustc_query_system[c5b4090de70f61eb]::query::plumbing::try_execute_query::<rustc_query_impl[6ebad19704c173d0]::plumbing::QueryCtxt, rustc_query_system[c5b4090de70f61eb]::query::caches::DefaultCache<rustc_span[b55e3ed1d80ca2e1]::def_id::LocalDefId, &rustc_middle[b0361dc3b46faa41]::mir::query::BorrowCheckResult>>
  68:     0x7feb31e198fa - <rustc_query_impl[6ebad19704c173d0]::Queries as rustc_middle[b0361dc3b46faa41]::ty::query::QueryEngine>::mir_borrowck
  69:     0x7feb31cfc382 - rustc_typeck[3a6a9adc157696d2]::collect::type_of::type_of
  70:     0x7feb3138f593 - <rustc_query_system[c5b4090de70f61eb]::dep_graph::graph::DepGraph<rustc_middle[b0361dc3b46faa41]::dep_graph::dep_node::DepKind>>::with_task::<rustc_middle[b0361dc3b46faa41]::ty::context::TyCtxt, rustc_span[b55e3ed1d80ca2e1]::def_id::DefId, rustc_middle[b0361dc3b46faa41]::ty::Ty>
  71:     0x7feb3138d59b - rustc_query_system[c5b4090de70f61eb]::query::plumbing::get_query::<rustc_query_impl[6ebad19704c173d0]::queries::type_of, rustc_query_impl[6ebad19704c173d0]::plumbing::QueryCtxt>
  72:     0x7feb318dcdc8 - rustc_typeck[3a6a9adc157696d2]::check::check::check_item_type
  73:     0x7feb318d928e - rustc_typeck[3a6a9adc157696d2]::check::check::check_mod_item_types
  74:     0x7feb312041b2 - <rustc_query_system[c5b4090de70f61eb]::dep_graph::graph::DepGraph<rustc_middle[b0361dc3b46faa41]::dep_graph::dep_node::DepKind>>::with_task::<rustc_middle[b0361dc3b46faa41]::ty::context::TyCtxt, rustc_span[b55e3ed1d80ca2e1]::def_id::LocalDefId, ()>
  75:     0x7feb3120333e - rustc_query_system[c5b4090de70f61eb]::query::plumbing::try_execute_query::<rustc_query_impl[6ebad19704c173d0]::plumbing::QueryCtxt, rustc_query_system[c5b4090de70f61eb]::query::caches::DefaultCache<rustc_span[b55e3ed1d80ca2e1]::def_id::LocalDefId, ()>>
  76:     0x7feb31979253 - rustc_query_system[c5b4090de70f61eb]::query::plumbing::get_query::<rustc_query_impl[6ebad19704c173d0]::queries::check_mod_item_types, rustc_query_impl[6ebad19704c173d0]::plumbing::QueryCtxt>
  77:     0x7feb31c1581f - <rustc_middle[b0361dc3b46faa41]::hir::map::Map>::for_each_module::<rustc_typeck[3a6a9adc157696d2]::check_crate::{closure#6}::{closure#0}>
  78:     0x7feb318cc705 - rustc_typeck[3a6a9adc157696d2]::check_crate
  79:     0x7feb318cbcd7 - rustc_interface[3d0382fca78af13d]::passes::analysis
  80:     0x7feb31ccc6fc - <rustc_query_system[c5b4090de70f61eb]::dep_graph::graph::DepGraph<rustc_middle[b0361dc3b46faa41]::dep_graph::dep_node::DepKind>>::with_task::<rustc_middle[b0361dc3b46faa41]::ty::context::TyCtxt, (), core[2e75634dfdf5101e]::result::Result<(), rustc_errors[4734e126a08a56c6]::ErrorGuaranteed>>
  81:     0x7feb31ccbebb - rustc_query_system[c5b4090de70f61eb]::query::plumbing::try_execute_query::<rustc_query_impl[6ebad19704c173d0]::plumbing::QueryCtxt, rustc_query_system[c5b4090de70f61eb]::query::caches::DefaultCache<(), core[2e75634dfdf5101e]::result::Result<(), rustc_errors[4734e126a08a56c6]::ErrorGuaranteed>>>
  82:     0x7feb31ccba0e - rustc_query_system[c5b4090de70f61eb]::query::plumbing::get_query::<rustc_query_impl[6ebad19704c173d0]::queries::analysis, rustc_query_impl[6ebad19704c173d0]::plumbing::QueryCtxt>
  83:     0x7feb3169584e - <rustc_interface[3d0382fca78af13d]::passes::QueryContext>::enter::<rustc_driver[2f40008e0c6ae48d]::run_compiler::{closure#1}::{closure#2}::{closure#3}, core[2e75634dfdf5101e]::result::Result<(), rustc_errors[4734e126a08a56c6]::ErrorGuaranteed>>
  84:     0x7feb3168fc7e - <rustc_interface[3d0382fca78af13d]::interface::Compiler>::enter::<rustc_driver[2f40008e0c6ae48d]::run_compiler::{closure#1}::{closure#2}, core[2e75634dfdf5101e]::result::Result<core[2e75634dfdf5101e]::option::Option<rustc_interface[3d0382fca78af13d]::queries::Linker>, rustc_errors[4734e126a08a56c6]::ErrorGuaranteed>>
  85:     0x7feb3168b5ca - rustc_span[b55e3ed1d80ca2e1]::with_source_map::<core[2e75634dfdf5101e]::result::Result<(), rustc_errors[4734e126a08a56c6]::ErrorGuaranteed>, rustc_interface[3d0382fca78af13d]::interface::create_compiler_and_run<core[2e75634dfdf5101e]::result::Result<(), rustc_errors[4734e126a08a56c6]::ErrorGuaranteed>, rustc_driver[2f40008e0c6ae48d]::run_compiler::{closure#1}>::{closure#1}>
  86:     0x7feb3168b020 - rustc_interface[3d0382fca78af13d]::interface::create_compiler_and_run::<core[2e75634dfdf5101e]::result::Result<(), rustc_errors[4734e126a08a56c6]::ErrorGuaranteed>, rustc_driver[2f40008e0c6ae48d]::run_compiler::{closure#1}>
  87:     0x7feb316892d2 - <scoped_tls[c64be2cd70b559ef]::ScopedKey<rustc_span[b55e3ed1d80ca2e1]::SessionGlobals>>::set::<rustc_interface[3d0382fca78af13d]::interface::run_compiler<core[2e75634dfdf5101e]::result::Result<(), rustc_errors[4734e126a08a56c6]::ErrorGuaranteed>, rustc_driver[2f40008e0c6ae48d]::run_compiler::{closure#1}>::{closure#0}, core[2e75634dfdf5101e]::result::Result<(), rustc_errors[4734e126a08a56c6]::ErrorGuaranteed>>
  88:     0x7feb31688fbf - std[60ff705250c65a84]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[3d0382fca78af13d]::util::run_in_thread_pool_with_globals<rustc_interface[3d0382fca78af13d]::interface::run_compiler<core[2e75634dfdf5101e]::result::Result<(), rustc_errors[4734e126a08a56c6]::ErrorGuaranteed>, rustc_driver[2f40008e0c6ae48d]::run_compiler::{closure#1}>::{closure#0}, core[2e75634dfdf5101e]::result::Result<(), rustc_errors[4734e126a08a56c6]::ErrorGuaranteed>>::{closure#0}, core[2e75634dfdf5101e]::result::Result<(), rustc_errors[4734e126a08a56c6]::ErrorGuaranteed>>
  89:     0x7feb31d4f299 - <<std[60ff705250c65a84]::thread::Builder>::spawn_unchecked_<rustc_interface[3d0382fca78af13d]::util::run_in_thread_pool_with_globals<rustc_interface[3d0382fca78af13d]::interface::run_compiler<core[2e75634dfdf5101e]::result::Result<(), rustc_errors[4734e126a08a56c6]::ErrorGuaranteed>, rustc_driver[2f40008e0c6ae48d]::run_compiler::{closure#1}>::{closure#0}, core[2e75634dfdf5101e]::result::Result<(), rustc_errors[4734e126a08a56c6]::ErrorGuaranteed>>::{closure#0}, core[2e75634dfdf5101e]::result::Result<(), rustc_errors[4734e126a08a56c6]::ErrorGuaranteed>>::{closure#1} as core[2e75634dfdf5101e]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  90:     0x7feb2f73f2a3 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h91e73c9cb18fd002
                               at /rustc/3924dac7bb29bc8eb348059c901e8f912399c857/library/alloc/src/boxed.rs:1935:9
  91:     0x7feb2f73f2a3 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h3f4e95b624150e02
                               at /rustc/3924dac7bb29bc8eb348059c901e8f912399c857/library/alloc/src/boxed.rs:1935:9
  92:     0x7feb2f73f2a3 - std::sys::unix::thread::Thread::new::thread_start::h02aeb3ebecf360d5
                               at /rustc/3924dac7bb29bc8eb348059c901e8f912399c857/library/std/src/sys/unix/thread.rs:108:17
  93:     0x7feb2f607609 - start_thread
  94:     0x7feb2f52a163 - clone
  95:                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-nightly (3924dac7b 2022-07-29) running on x86_64-unknown-linux-gnu

note: compiler flags: --crate-type bin -C embed-bitcode=no -C debuginfo=2 -C incremental

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

query stack during panic:
#0 [typeck] type-checking `routes::<impl at src/routes.rs:310:1: 310:26>::register::room_users`
#1 [mir_built] building MIR for `routes::<impl at src/routes.rs:310:1: 310:26>::register::room_users`
#2 [unsafety_check_result] unsafety-checking `routes::<impl at src/routes.rs:310:1: 310:26>::register::room_users`
#3 [mir_const] processing MIR for `routes::<impl at src/routes.rs:310:1: 310:26>::register::room_users`
#4 [mir_promoted] processing `routes::<impl at src/routes.rs:310:1: 310:26>::register::room_users`
#5 [mir_borrowck] borrow-checking `routes::<impl at src/routes.rs:310:1: 310:26>::register::room_users`
#6 [type_of] computing type of `routes::<impl at src/routes.rs:310:1: 310:26>::register::room_users::{opaque#0}`
#7 [check_mod_item_types] checking item types in module `routes`
#8 [analysis] running analysis passes on this crate
end of query stack
error: internal compiler error: no errors encountered even though `delay_span_bug` issued

error: internal compiler error: VecMap([(OpaqueTypeKey { def_id: DefId(0:1504 ~ changed_the_crate_name[fdea]::routes::{impl#9}::register::room_users::{opaque#0}), substs: [] }, OpaqueTypeDecl { hidden_type: OpaqueHiddenType { span: src/routes.rs:311:60: 311:74 (#1871), ty: _ }, origin: AsyncFn(DefId(0:1503 ~ changed_the_crate_name[fdea]::routes::{impl#9}::register::room_users)) }), (OpaqueTypeKey { def_id: DefId(0:1505 ~ changed_the_crate_name[fdea]::routes::{impl#9}::register::room_users::{opaque#0}::{opaque#0}), substs: [] }, OpaqueTypeDecl { hidden_type: OpaqueHiddenType { span: src/routes.rs:311:75: 319:2 (#0), ty: _ }, origin: FnReturn(DefId(0:1503 ~ changed_the_crate_name[fdea]::routes::{impl#9}::register::room_users)) })])
  |
  = note: delayed at compiler/rustc_infer/src/infer/opaque_types/table.rs:50:26

thread 'rustc' panicked at 'Box<dyn Any>', compiler/rustc_errors/src/lib.rs:1426:13
stack backtrace:
   0:     0x7feb2f732300 - std::backtrace_rs::backtrace::libunwind::trace::h6ddc9f9c210496ff
                               at /rustc/3924dac7bb29bc8eb348059c901e8f912399c857/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
   1:     0x7feb2f732300 - std::backtrace_rs::backtrace::trace_unsynchronized::h9e468e888e8d9720
                               at /rustc/3924dac7bb29bc8eb348059c901e8f912399c857/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
   2:     0x7feb2f732300 - std::sys_common::backtrace::_print_fmt::hd1881e9a19369fc2
                               at /rustc/3924dac7bb29bc8eb348059c901e8f912399c857/library/std/src/sys_common/backtrace.rs:66:5
   3:     0x7feb2f732300 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::hc760c80094d12d0b
                               at /rustc/3924dac7bb29bc8eb348059c901e8f912399c857/library/std/src/sys_common/backtrace.rs:45:22
   4:     0x7feb2f78d71c - core::fmt::write::h9fa2d54393b34210
                               at /rustc/3924dac7bb29bc8eb348059c901e8f912399c857/library/core/src/fmt/mod.rs:1198:17
   5:     0x7feb2f723325 - std::io::Write::write_fmt::h6cb3511bb78b07fc
                               at /rustc/3924dac7bb29bc8eb348059c901e8f912399c857/library/std/src/io/mod.rs:1672:15
   6:     0x7feb2f734fd1 - std::sys_common::backtrace::_print::h82007c152e8a20f6
                               at /rustc/3924dac7bb29bc8eb348059c901e8f912399c857/library/std/src/sys_common/backtrace.rs:48:5
   7:     0x7feb2f734fd1 - std::sys_common::backtrace::print::hfd39d026c8fd7dc2
                               at /rustc/3924dac7bb29bc8eb348059c901e8f912399c857/library/std/src/sys_common/backtrace.rs:35:9
   8:     0x7feb2f734fd1 - std::panicking::default_hook::{{closure}}::h1d5c56ed0d43c6d2
                               at /rustc/3924dac7bb29bc8eb348059c901e8f912399c857/library/std/src/panicking.rs:295:22
   9:     0x7feb2f734ca3 - std::panicking::default_hook::hbd4b8c74f6bf2a75
                               at /rustc/3924dac7bb29bc8eb348059c901e8f912399c857/library/std/src/panicking.rs:314:9
  10:     0x7feb31f0b474 - rustc_driver[2f40008e0c6ae48d]::DEFAULT_HOOK::{closure#0}::{closure#0}
  11:     0x7feb2f735806 - std::panicking::rust_panic_with_hook::h1677c7be7e0853f1
                               at /rustc/3924dac7bb29bc8eb348059c901e8f912399c857/library/std/src/panicking.rs:702:17
  12:     0x7feb32f50ca1 - std[60ff705250c65a84]::panicking::begin_panic::<rustc_errors[4734e126a08a56c6]::ExplicitBug>::{closure#0}
  13:     0x7feb32f50a86 - std[60ff705250c65a84]::sys_common::backtrace::__rust_end_short_backtrace::<std[60ff705250c65a84]::panicking::begin_panic<rustc_errors[4734e126a08a56c6]::ExplicitBug>::{closure#0}, !>
  14:     0x7feb32f4b076 - std[60ff705250c65a84]::panicking::begin_panic::<rustc_errors[4734e126a08a56c6]::ExplicitBug>
  15:     0x7feb32f4d846 - std[60ff705250c65a84]::panic::panic_any::<rustc_errors[4734e126a08a56c6]::ExplicitBug>
  16:     0x7feb31a3e473 - <rustc_errors[4734e126a08a56c6]::HandlerInner as core[2e75634dfdf5101e]::ops::drop::Drop>::drop
  17:     0x7feb316a3b88 - core[2e75634dfdf5101e]::ptr::drop_in_place::<rustc_session[5f2f641abeccbe84]::parse::ParseSess>
  18:     0x7feb3168cda3 - <alloc[90525ec53b615182]::rc::Rc<rustc_session[5f2f641abeccbe84]::session::Session> as core[2e75634dfdf5101e]::ops::drop::Drop>::drop
  19:     0x7feb3168bd6d - core[2e75634dfdf5101e]::ptr::drop_in_place::<rustc_interface[3d0382fca78af13d]::interface::Compiler>
  20:     0x7feb3168b99b - rustc_span[b55e3ed1d80ca2e1]::with_source_map::<core[2e75634dfdf5101e]::result::Result<(), rustc_errors[4734e126a08a56c6]::ErrorGuaranteed>, rustc_interface[3d0382fca78af13d]::interface::create_compiler_and_run<core[2e75634dfdf5101e]::result::Result<(), rustc_errors[4734e126a08a56c6]::ErrorGuaranteed>, rustc_driver[2f40008e0c6ae48d]::run_compiler::{closure#1}>::{closure#1}>
  21:     0x7feb3168b020 - rustc_interface[3d0382fca78af13d]::interface::create_compiler_and_run::<core[2e75634dfdf5101e]::result::Result<(), rustc_errors[4734e126a08a56c6]::ErrorGuaranteed>, rustc_driver[2f40008e0c6ae48d]::run_compiler::{closure#1}>
  22:     0x7feb316892d2 - <scoped_tls[c64be2cd70b559ef]::ScopedKey<rustc_span[b55e3ed1d80ca2e1]::SessionGlobals>>::set::<rustc_interface[3d0382fca78af13d]::interface::run_compiler<core[2e75634dfdf5101e]::result::Result<(), rustc_errors[4734e126a08a56c6]::ErrorGuaranteed>, rustc_driver[2f40008e0c6ae48d]::run_compiler::{closure#1}>::{closure#0}, core[2e75634dfdf5101e]::result::Result<(), rustc_errors[4734e126a08a56c6]::ErrorGuaranteed>>
  23:     0x7feb31688fbf - std[60ff705250c65a84]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[3d0382fca78af13d]::util::run_in_thread_pool_with_globals<rustc_interface[3d0382fca78af13d]::interface::run_compiler<core[2e75634dfdf5101e]::result::Result<(), rustc_errors[4734e126a08a56c6]::ErrorGuaranteed>, rustc_driver[2f40008e0c6ae48d]::run_compiler::{closure#1}>::{closure#0}, core[2e75634dfdf5101e]::result::Result<(), rustc_errors[4734e126a08a56c6]::ErrorGuaranteed>>::{closure#0}, core[2e75634dfdf5101e]::result::Result<(), rustc_errors[4734e126a08a56c6]::ErrorGuaranteed>>
  24:     0x7feb31d4f299 - <<std[60ff705250c65a84]::thread::Builder>::spawn_unchecked_<rustc_interface[3d0382fca78af13d]::util::run_in_thread_pool_with_globals<rustc_interface[3d0382fca78af13d]::interface::run_compiler<core[2e75634dfdf5101e]::result::Result<(), rustc_errors[4734e126a08a56c6]::ErrorGuaranteed>, rustc_driver[2f40008e0c6ae48d]::run_compiler::{closure#1}>::{closure#0}, core[2e75634dfdf5101e]::result::Result<(), rustc_errors[4734e126a08a56c6]::ErrorGuaranteed>>::{closure#0}, core[2e75634dfdf5101e]::result::Result<(), rustc_errors[4734e126a08a56c6]::ErrorGuaranteed>>::{closure#1} as core[2e75634dfdf5101e]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  25:     0x7feb2f73f2a3 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h91e73c9cb18fd002
                               at /rustc/3924dac7bb29bc8eb348059c901e8f912399c857/library/alloc/src/boxed.rs:1935:9
  26:     0x7feb2f73f2a3 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h3f4e95b624150e02
                               at /rustc/3924dac7bb29bc8eb348059c901e8f912399c857/library/alloc/src/boxed.rs:1935:9
  27:     0x7feb2f73f2a3 - std::sys::unix::thread::Thread::new::thread_start::h02aeb3ebecf360d5
                               at /rustc/3924dac7bb29bc8eb348059c901e8f912399c857/library/std/src/sys/unix/thread.rs:108:17
  28:     0x7feb2f607609 - start_thread
  29:     0x7feb2f52a163 - clone
  30:                0x0 - <unknown>

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-nightly (3924dac7b 2022-07-29) running on x86_64-unknown-linux-gnu

note: compiler flags: --crate-type bin -C embed-bitcode=no -C debuginfo=2 -C incremental

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

query stack during panic:
end of query stack
thread panicked while panicking. aborting.
error: could not compile `changed_the_crate_name`

Caused by:
  process didn't exit successfully: `rustc --crate-name changed_the_crate_name --edition=2021 src/main.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type bin --emit=dep-info,metadata -C embed-bitcode=no -C debuginfo=2 -C metadata=7d2fd1988fdb872d -C extra-filename=-7d2fd1988fdb872d --out-dir /home/me/changed_the_crate_name/target/debug/deps -C incremental=/home/me/changed_the_crate_name/target/debug/incremental -L dependency=/home/me/changed_the_crate_name/target/debug/deps --extern actix=/home/me/changed_the_crate_name/target/debug/deps/libactix-8c8b18fce5898181.rmeta --extern actix_codec=/home/me/changed_the_crate_name/target/debug/deps/libactix_codec-9a150114e8ac250e.rmeta --extern actix_files=/home/me/changed_the_crate_name/target/debug/deps/libactix_files-12a85e24ddaae582.rmeta --extern actix_http=/home/me/changed_the_crate_name/target/debug/deps/libactix_http-42aea80dfee6f6ae.rmeta --extern actix_web=/home/me/changed_the_crate_name/target/debug/deps/libactix_web-02169da8fb674bf9.rmeta --extern actix_web_actors=/home/me/changed_the_crate_name/target/debug/deps/libactix_web_actors-6bcaac7ec65efb18.rmeta --extern actix_web_httpauth=/home/me/changed_the_crate_name/target/debug/deps/libactix_web_httpauth-132ae4b1d99d2f10.rmeta --extern bimap=/home/me/changed_the_crate_name/target/debug/deps/libbimap-f013d7026c9e0204.rmeta --extern bytes=/home/me/changed_the_crate_name/target/debug/deps/libbytes-0b6620405fcf1713.rmeta --extern futures=/home/me/changed_the_crate_name/target/debug/deps/libfutures-747dd63180d094e0.rmeta --extern getrandom=/home/me/changed_the_crate_name/target/debug/deps/libgetrandom-b65841092888d45d.rmeta --extern mysql_async=/home/me/changed_the_crate_name/target/debug/deps/libmysql_async-fa47d0d607c79c37.rmeta --extern serde=/home/me/changed_the_crate_name/target/debug/deps/libserde-c855e67a61636f71.rmeta --extern serde_json=/home/me/changed_the_crate_name/target/debug/deps/libserde_json-0a79a02467bd3bed.rmeta --extern sha2=/home/me/changed_the_crate_name/target/debug/deps/libsha2-531d12c35fc93842.rmeta --extern tokio=/home/me/changed_the_crate_name/target/debug/deps/libtokio-6cf92077d09ccfd1.rmeta --extern tokio_stream=/home/me/changed_the_crate_name/target/debug/deps/libtokio_stream-da8897be1157c0f5.rmeta --extern uuid=/home/me/changed_the_crate_name/target/debug/deps/libuuid-c8c54ae5510f2ebf.rmeta -L native=/home/me/changed_the_crate_name/target/debug/build/zstd-sys-2a23807d1fec7622/out` (signal: 6, SIGABRT: process abort signal)

@ElectrifyPro ElectrifyPro 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 Jul 30, 2022
@compiler-errors
Copy link
Member

This is fixed by #99928

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

Successfully merging a pull request may close this issue.

2 participants