Skip to content

Instantly share code, notes, and snippets.

@Genysys
Created August 29, 2022 07:26
Show Gist options
  • Save Genysys/099254736f6649bae14c99245cdddf6d to your computer and use it in GitHub Desktop.
Save Genysys/099254736f6649bae14c99245cdddf6d to your computer and use it in GitHub Desktop.
rustc error
thread 'rustc' panicked at 'index out of bounds: the len is 69 but the index is 70', /Users/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/ena-0.14.0/src/snapshot_vec.rs:199:10
stack backtrace:
0: 0x10dbc0bf5 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h845e2516a8268840
1: 0x10dc17fda - core::fmt::write::h2af047ddbf03b6f3
2: 0x10dbb2efc - std::io::Write::write_fmt::h11c7ec25ade65885
3: 0x10dbc3c3b - std::panicking::default_hook::{{closure}}::h954849597ff6e027
4: 0x10dbc3947 - std::panicking::default_hook::he544962a4ecf6825
5: 0x1166171ca - rustc_driver[7f9484eaa0472288]::DEFAULT_HOOK::{closure#0}::{closure#0}
6: 0x10dbc436e - std::panicking::rust_panic_with_hook::h20ce40c0ef43a05d
7: 0x10dbc4213 - std::panicking::begin_panic_handler::{{closure}}::h26d76aec31ea2608
8: 0x10dbc10b8 - std::sys_common::backtrace::__rust_end_short_backtrace::h37460359de28cd8d
9: 0x10dbc3edd - _rust_begin_unwind
10: 0x10dc427a3 - core::panicking::panic_fmt::h51a61cc36b7de10a
11: 0x10dc426f6 - core::panicking::panic_bounds_check::hb5b9904b5099a9b9
12: 0x11ab08a89 - <rustc_infer[7cb4aaa3fa247037]::infer::ShallowResolver as rustc_middle[f195258c035b30b2]::ty::fold::TypeFolder>::fold_ty
13: 0x11ab825a2 - <rustc_middle[f195258c035b30b2]::ty::subst::GenericArg as rustc_middle[f195258c035b30b2]::ty::fold::TypeFoldable>::try_fold_with::<rustc_infer[7cb4aaa3fa247037]::infer::resolve::OpportunisticVarResolver>
14: 0x11ab1ac6e - <&rustc_middle[f195258c035b30b2]::ty::list::List<rustc_middle[f195258c035b30b2]::ty::subst::GenericArg> as rustc_middle[f195258c035b30b2]::ty::fold::TypeFoldable>::try_fold_with::<rustc_infer[7cb4aaa3fa247037]::infer::resolve::OpportunisticVarResolver>
15: 0x11ab55f9a - <rustc_middle[f195258c035b30b2]::ty::Ty as rustc_middle[f195258c035b30b2]::ty::fold::TypeSuperFoldable>::super_fold_with::<rustc_infer[7cb4aaa3fa247037]::infer::resolve::OpportunisticVarResolver>
16: 0x11ab825ad - <rustc_middle[f195258c035b30b2]::ty::subst::GenericArg as rustc_middle[f195258c035b30b2]::ty::fold::TypeFoldable>::try_fold_with::<rustc_infer[7cb4aaa3fa247037]::infer::resolve::OpportunisticVarResolver>
17: 0x11ab1ac6e - <&rustc_middle[f195258c035b30b2]::ty::list::List<rustc_middle[f195258c035b30b2]::ty::subst::GenericArg> as rustc_middle[f195258c035b30b2]::ty::fold::TypeFoldable>::try_fold_with::<rustc_infer[7cb4aaa3fa247037]::infer::resolve::OpportunisticVarResolver>
18: 0x11ab55f9a - <rustc_middle[f195258c035b30b2]::ty::Ty as rustc_middle[f195258c035b30b2]::ty::fold::TypeSuperFoldable>::super_fold_with::<rustc_infer[7cb4aaa3fa247037]::infer::resolve::OpportunisticVarResolver>
19: 0x11ab01469 - <rustc_infer[7cb4aaa3fa247037]::infer::InferCtxt>::same_type_modulo_infer
20: 0x11abe888a - <core[4000d9a4acabdbdf]::iter::adapters::map::Map<core[4000d9a4acabdbdf]::iter::adapters::filter::Filter<core[4000d9a4acabdbdf]::slice::iter::Iter<rustc_middle[f195258c035b30b2]::ty::FieldDef>, <rustc_infer[7cb4aaa3fa247037]::infer::InferCtxt>::suggest_accessing_field_where_appropriate::{closure#0}>, <rustc_infer[7cb4aaa3fa247037]::infer::InferCtxt>::suggest_accessing_field_where_appropriate::{closure#1}> as core[4000d9a4acabdbdf]::iter::traits::iterator::Iterator>::try_fold::<(), core[4000d9a4acabdbdf]::iter::traits::iterator::Iterator::find::check<(rustc_span[6963cbe0b92c9653]::symbol::Symbol, rustc_middle[f195258c035b30b2]::ty::Ty), <rustc_infer[7cb4aaa3fa247037]::infer::InferCtxt>::suggest_accessing_field_where_appropriate::{closure#2}>::{closure#0}, core[4000d9a4acabdbdf]::ops::control_flow::ControlFlow<(rustc_span[6963cbe0b92c9653]::symbol::Symbol, rustc_middle[f195258c035b30b2]::ty::Ty)>>
21: 0x11ab0af07 - <rustc_infer[7cb4aaa3fa247037]::infer::InferCtxt>::note_type_err
22: 0x11aafd8d3 - <rustc_infer[7cb4aaa3fa247037]::infer::InferCtxt>::report_and_explain_type_error
23: 0x1191b0dff - <rustc_typeck[a5902e2515c308df]::check::fn_ctxt::FnCtxt>::report_arg_errors
24: 0x1191ad139 - <rustc_typeck[a5902e2515c308df]::check::fn_ctxt::FnCtxt>::check_argument_types
25: 0x119190562 - <rustc_typeck[a5902e2515c308df]::check::fn_ctxt::FnCtxt>::confirm_builtin_call
26: 0x11918d9dc - <rustc_typeck[a5902e2515c308df]::check::fn_ctxt::FnCtxt>::check_call
27: 0x1191eb3ef - <rustc_typeck[a5902e2515c308df]::check::fn_ctxt::FnCtxt>::check_expr_kind
28: 0x11919feb5 - <rustc_typeck[a5902e2515c308df]::check::fn_ctxt::FnCtxt>::check_expr_with_expectation_and_args
29: 0x1191b277d - <rustc_typeck[a5902e2515c308df]::check::fn_ctxt::FnCtxt>::check_decl
30: 0x1191b2bfe - <rustc_typeck[a5902e2515c308df]::check::fn_ctxt::FnCtxt>::check_stmt
31: 0x1191b35af - <rustc_typeck[a5902e2515c308df]::check::fn_ctxt::FnCtxt>::check_block_with_expected
32: 0x1191eb7a6 - <rustc_typeck[a5902e2515c308df]::check::fn_ctxt::FnCtxt>::check_expr_kind
33: 0x11919feb5 - <rustc_typeck[a5902e2515c308df]::check::fn_ctxt::FnCtxt>::check_expr_with_expectation_and_args
34: 0x1191a10f0 - <rustc_typeck[a5902e2515c308df]::check::fn_ctxt::FnCtxt>::check_return_expr
35: 0x11936e4a0 - rustc_typeck[a5902e2515c308df]::check::check::check_fn
36: 0x1191e81a7 - <rustc_typeck[a5902e2515c308df]::check::fn_ctxt::FnCtxt>::check_expr_closure
37: 0x1191ead55 - <rustc_typeck[a5902e2515c308df]::check::fn_ctxt::FnCtxt>::check_expr_kind
38: 0x11919feb5 - <rustc_typeck[a5902e2515c308df]::check::fn_ctxt::FnCtxt>::check_expr_with_expectation_and_args
39: 0x1191ac431 - <rustc_typeck[a5902e2515c308df]::check::fn_ctxt::FnCtxt>::check_argument_types
40: 0x119190562 - <rustc_typeck[a5902e2515c308df]::check::fn_ctxt::FnCtxt>::confirm_builtin_call
41: 0x11918d9dc - <rustc_typeck[a5902e2515c308df]::check::fn_ctxt::FnCtxt>::check_call
42: 0x1191eb3ef - <rustc_typeck[a5902e2515c308df]::check::fn_ctxt::FnCtxt>::check_expr_kind
43: 0x11919feb5 - <rustc_typeck[a5902e2515c308df]::check::fn_ctxt::FnCtxt>::check_expr_with_expectation_and_args
44: 0x1191b277d - <rustc_typeck[a5902e2515c308df]::check::fn_ctxt::FnCtxt>::check_decl
45: 0x1191b2bfe - <rustc_typeck[a5902e2515c308df]::check::fn_ctxt::FnCtxt>::check_stmt
46: 0x1191b35af - <rustc_typeck[a5902e2515c308df]::check::fn_ctxt::FnCtxt>::check_block_with_expected
47: 0x1191eb7a6 - <rustc_typeck[a5902e2515c308df]::check::fn_ctxt::FnCtxt>::check_expr_kind
48: 0x11919feb5 - <rustc_typeck[a5902e2515c308df]::check::fn_ctxt::FnCtxt>::check_expr_with_expectation_and_args
49: 0x1191a10f0 - <rustc_typeck[a5902e2515c308df]::check::fn_ctxt::FnCtxt>::check_return_expr
50: 0x11936e4a0 - rustc_typeck[a5902e2515c308df]::check::check::check_fn
51: 0x1193bf9c6 - <rustc_infer[7cb4aaa3fa247037]::infer::InferCtxtBuilder>::enter::<&rustc_middle[f195258c035b30b2]::ty::context::TypeckResults, <rustc_typeck[a5902e2515c308df]::check::inherited::InheritedBuilder>::enter<rustc_typeck[a5902e2515c308df]::check::typeck_with_fallback<rustc_typeck[a5902e2515c308df]::check::typeck::{closure#0}>::{closure#1}, &rustc_middle[f195258c035b30b2]::ty::context::TypeckResults>::{closure#0}>
52: 0x11928cafd - rustc_typeck[a5902e2515c308df]::check::typeck
53: 0x11a027c39 - <rustc_query_system[2af95fab1bdb25b3]::dep_graph::graph::DepGraph<rustc_middle[f195258c035b30b2]::dep_graph::dep_node::DepKind>>::with_task::<rustc_middle[f195258c035b30b2]::ty::context::TyCtxt, rustc_span[6963cbe0b92c9653]::def_id::LocalDefId, &rustc_middle[f195258c035b30b2]::ty::context::TypeckResults>
54: 0x119d7d772 - rustc_query_system[2af95fab1bdb25b3]::query::plumbing::try_execute_query::<rustc_query_impl[8126254f3efa3751]::plumbing::QueryCtxt, rustc_query_system[2af95fab1bdb25b3]::query::caches::DefaultCache<rustc_span[6963cbe0b92c9653]::def_id::LocalDefId, &rustc_middle[f195258c035b30b2]::ty::context::TypeckResults>>
55: 0x119e89ade - rustc_query_system[2af95fab1bdb25b3]::query::plumbing::get_query::<rustc_query_impl[8126254f3efa3751]::queries::typeck, rustc_query_impl[8126254f3efa3751]::plumbing::QueryCtxt>
56: 0x119401a9b - rustc_data_structures[802af70712c1d804]::sync::par_for_each_in::<&[rustc_span[6963cbe0b92c9653]::def_id::LocalDefId], <rustc_middle[f195258c035b30b2]::hir::map::Map>::par_body_owners<rustc_typeck[a5902e2515c308df]::check::typeck_item_bodies::{closure#0}>::{closure#0}>
57: 0x11937165c - <rustc_middle[f195258c035b30b2]::hir::map::Map>::par_body_owners::<rustc_typeck[a5902e2515c308df]::check::typeck_item_bodies::{closure#0}>
58: 0x119292435 - rustc_typeck[a5902e2515c308df]::check::typeck_item_bodies
59: 0x11a063bf8 - <rustc_query_system[2af95fab1bdb25b3]::dep_graph::graph::DepGraph<rustc_middle[f195258c035b30b2]::dep_graph::dep_node::DepKind>>::with_task::<rustc_middle[f195258c035b30b2]::ty::context::TyCtxt, (), ()>
60: 0x119dd66aa - rustc_query_system[2af95fab1bdb25b3]::query::plumbing::try_execute_query::<rustc_query_impl[8126254f3efa3751]::plumbing::QueryCtxt, rustc_query_system[2af95fab1bdb25b3]::query::caches::DefaultCache<(), ()>>
61: 0x119e4a9b2 - rustc_query_system[2af95fab1bdb25b3]::query::plumbing::get_query::<rustc_query_impl[8126254f3efa3751]::queries::typeck_item_bodies, rustc_query_impl[8126254f3efa3751]::plumbing::QueryCtxt>
62: 0x1192c0479 - <rustc_session[a5feb8632341a368]::session::Session>::time::<(), rustc_typeck[a5902e2515c308df]::check_crate::{closure#7}>
63: 0x11941957a - rustc_typeck[a5902e2515c308df]::check_crate
64: 0x1166b9e3a - rustc_interface[af2d618945b33636]::passes::analysis
65: 0x11a056ec5 - <rustc_query_system[2af95fab1bdb25b3]::dep_graph::graph::DepGraph<rustc_middle[f195258c035b30b2]::dep_graph::dep_node::DepKind>>::with_task::<rustc_middle[f195258c035b30b2]::ty::context::TyCtxt, (), core[4000d9a4acabdbdf]::result::Result<(), rustc_errors[bc08ee6f7a54ba9e]::ErrorGuaranteed>>
66: 0x119dca572 - rustc_query_system[2af95fab1bdb25b3]::query::plumbing::try_execute_query::<rustc_query_impl[8126254f3efa3751]::plumbing::QueryCtxt, rustc_query_system[2af95fab1bdb25b3]::query::caches::DefaultCache<(), core[4000d9a4acabdbdf]::result::Result<(), rustc_errors[bc08ee6f7a54ba9e]::ErrorGuaranteed>>>
67: 0x119e89ebf - rustc_query_system[2af95fab1bdb25b3]::query::plumbing::get_query::<rustc_query_impl[8126254f3efa3751]::queries::analysis, rustc_query_impl[8126254f3efa3751]::plumbing::QueryCtxt>
68: 0x1165c66f5 - <rustc_interface[af2d618945b33636]::passes::QueryContext>::enter::<rustc_driver[7f9484eaa0472288]::run_compiler::{closure#1}::{closure#2}::{closure#3}, core[4000d9a4acabdbdf]::result::Result<(), rustc_errors[bc08ee6f7a54ba9e]::ErrorGuaranteed>>
69: 0x1165923b7 - <rustc_interface[af2d618945b33636]::interface::Compiler>::enter::<rustc_driver[7f9484eaa0472288]::run_compiler::{closure#1}::{closure#2}, core[4000d9a4acabdbdf]::result::Result<core[4000d9a4acabdbdf]::option::Option<rustc_interface[af2d618945b33636]::queries::Linker>, rustc_errors[bc08ee6f7a54ba9e]::ErrorGuaranteed>>
70: 0x1165891e8 - rustc_span[6963cbe0b92c9653]::with_source_map::<core[4000d9a4acabdbdf]::result::Result<(), rustc_errors[bc08ee6f7a54ba9e]::ErrorGuaranteed>, rustc_interface[af2d618945b33636]::interface::create_compiler_and_run<core[4000d9a4acabdbdf]::result::Result<(), rustc_errors[bc08ee6f7a54ba9e]::ErrorGuaranteed>, rustc_driver[7f9484eaa0472288]::run_compiler::{closure#1}>::{closure#1}>
71: 0x1165b18b7 - rustc_interface[af2d618945b33636]::interface::create_compiler_and_run::<core[4000d9a4acabdbdf]::result::Result<(), rustc_errors[bc08ee6f7a54ba9e]::ErrorGuaranteed>, rustc_driver[7f9484eaa0472288]::run_compiler::{closure#1}>
72: 0x116605135 - <scoped_tls[8db20e2bdf017c12]::ScopedKey<rustc_span[6963cbe0b92c9653]::SessionGlobals>>::set::<rustc_interface[af2d618945b33636]::interface::run_compiler<core[4000d9a4acabdbdf]::result::Result<(), rustc_errors[bc08ee6f7a54ba9e]::ErrorGuaranteed>, rustc_driver[7f9484eaa0472288]::run_compiler::{closure#1}>::{closure#0}, core[4000d9a4acabdbdf]::result::Result<(), rustc_errors[bc08ee6f7a54ba9e]::ErrorGuaranteed>>
73: 0x11658ffba - std[86f24572c239979f]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[af2d618945b33636]::util::run_in_thread_pool_with_globals<rustc_interface[af2d618945b33636]::interface::run_compiler<core[4000d9a4acabdbdf]::result::Result<(), rustc_errors[bc08ee6f7a54ba9e]::ErrorGuaranteed>, rustc_driver[7f9484eaa0472288]::run_compiler::{closure#1}>::{closure#0}, core[4000d9a4acabdbdf]::result::Result<(), rustc_errors[bc08ee6f7a54ba9e]::ErrorGuaranteed>>::{closure#0}, core[4000d9a4acabdbdf]::result::Result<(), rustc_errors[bc08ee6f7a54ba9e]::ErrorGuaranteed>>
74: 0x1165cc256 - <<std[86f24572c239979f]::thread::Builder>::spawn_unchecked_<rustc_interface[af2d618945b33636]::util::run_in_thread_pool_with_globals<rustc_interface[af2d618945b33636]::interface::run_compiler<core[4000d9a4acabdbdf]::result::Result<(), rustc_errors[bc08ee6f7a54ba9e]::ErrorGuaranteed>, rustc_driver[7f9484eaa0472288]::run_compiler::{closure#1}>::{closure#0}, core[4000d9a4acabdbdf]::result::Result<(), rustc_errors[bc08ee6f7a54ba9e]::ErrorGuaranteed>>::{closure#0}, core[4000d9a4acabdbdf]::result::Result<(), rustc_errors[bc08ee6f7a54ba9e]::ErrorGuaranteed>>::{closure#1} as core[4000d9a4acabdbdf]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
75: 0x10dbcd097 - std::sys::unix::thread::Thread::new::thread_start::h7452b676646a911d
76: 0x7ff80e41d4e1 - __pthread_start
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-nightly (c0941dfb5 2022-08-21) running on x86_64-apple-darwin
note: compiler flags: -C embed-bitcode=no -C split-debuginfo=unpacked -C debuginfo=2 -C incremental -C link-arg=-undefined -C link-arg=dynamic_lookup
note: some of the compiler flags provided by cargo are hidden
query stack during panic:
#0 [typeck] type-checking `mint_works`
#1 [typeck_item_bodies] type-checking all item bodies
#2 [analysis] running analysis passes on this crate
end of query stack
error: internal compiler error: no warnings or errors encountered even though `delayed_good_path_bugs` issued
error: internal compiler error: trimmed_def_paths constructed
|
= note: delayed at 0: std::backtrace::Backtrace::create
1: std::backtrace::Backtrace::force_capture
2: <rustc_errors::Handler>::delay_good_path_bug::<&str>
3: rustc_middle::ty::print::pretty::trimmed_def_paths
4: <rustc_query_system::dep_graph::graph::DepGraph<rustc_middle::dep_graph::dep_node::DepKind>>::with_task::<rustc_middle::ty::context::TyCtxt, (), std::collections::hash::map::HashMap<rustc_span::def_id::DefId, rustc_span::symbol::Symbol, core::hash::BuildHasherDefault<rustc_hash::FxHasher>>>
5: rustc_query_system::query::plumbing::try_execute_query::<rustc_query_impl::plumbing::QueryCtxt, rustc_query_system::query::caches::ArenaCache<(), std::collections::hash::map::HashMap<rustc_span::def_id::DefId, rustc_span::symbol::Symbol, core::hash::BuildHasherDefault<rustc_hash::FxHasher>>>>
6: rustc_query_system::query::plumbing::get_query::<rustc_query_impl::queries::trimmed_def_paths, rustc_query_impl::plumbing::QueryCtxt>
7: <rustc_middle::ty::print::pretty::FmtPrinter as rustc_middle::ty::print::Printer>::print_def_path
8: <rustc_middle::ty::print::pretty::FmtPrinter as rustc_middle::ty::print::Printer>::path_generic_args::<<rustc_middle::ty::print::pretty::FmtPrinter as rustc_middle::ty::print::Printer>::default_print_def_path::{closure#2}>
9: <rustc_middle::ty::print::pretty::FmtPrinter as rustc_middle::ty::print::Printer>::print_def_path
10: <rustc_middle::ty::print::pretty::FmtPrinter as rustc_middle::ty::print::pretty::PrettyPrinter>::pretty_print_type
11: <rustc_middle::ty::Ty as core::fmt::Display>::fmt
12: <rustc_infer::infer::InferCtxt>::cmp
13: <rustc_infer::infer::InferCtxt>::values_str
14: <rustc_infer::infer::InferCtxt>::note_type_err
15: <rustc_infer::infer::InferCtxt>::report_and_explain_type_error
16: <rustc_typeck::check::fn_ctxt::FnCtxt>::report_arg_errors
17: <rustc_typeck::check::fn_ctxt::FnCtxt>::check_argument_types
18: <rustc_typeck::check::fn_ctxt::FnCtxt>::confirm_builtin_call
19: <rustc_typeck::check::fn_ctxt::FnCtxt>::check_call
20: <rustc_typeck::check::fn_ctxt::FnCtxt>::check_expr_kind
21: <rustc_typeck::check::fn_ctxt::FnCtxt>::check_expr_with_expectation_and_args
22: <rustc_typeck::check::fn_ctxt::FnCtxt>::check_decl
23: <rustc_typeck::check::fn_ctxt::FnCtxt>::check_stmt
24: <rustc_typeck::check::fn_ctxt::FnCtxt>::check_block_with_expected
25: <rustc_typeck::check::fn_ctxt::FnCtxt>::check_expr_kind
26: <rustc_typeck::check::fn_ctxt::FnCtxt>::check_expr_with_expectation_and_args
27: <rustc_typeck::check::fn_ctxt::FnCtxt>::check_return_expr
28: rustc_typeck::check::check::check_fn
29: <rustc_typeck::check::fn_ctxt::FnCtxt>::check_expr_closure
30: <rustc_typeck::check::fn_ctxt::FnCtxt>::check_expr_kind
31: <rustc_typeck::check::fn_ctxt::FnCtxt>::check_expr_with_expectation_and_args
32: <rustc_typeck::check::fn_ctxt::FnCtxt>::check_argument_types
33: <rustc_typeck::check::fn_ctxt::FnCtxt>::confirm_builtin_call
34: <rustc_typeck::check::fn_ctxt::FnCtxt>::check_call
35: <rustc_typeck::check::fn_ctxt::FnCtxt>::check_expr_kind
36: <rustc_typeck::check::fn_ctxt::FnCtxt>::check_expr_with_expectation_and_args
37: <rustc_typeck::check::fn_ctxt::FnCtxt>::check_decl
38: <rustc_typeck::check::fn_ctxt::FnCtxt>::check_stmt
39: <rustc_typeck::check::fn_ctxt::FnCtxt>::check_block_with_expected
40: <rustc_typeck::check::fn_ctxt::FnCtxt>::check_expr_kind
41: <rustc_typeck::check::fn_ctxt::FnCtxt>::check_expr_with_expectation_and_args
42: <rustc_typeck::check::fn_ctxt::FnCtxt>::check_return_expr
43: rustc_typeck::check::check::check_fn
44: <rustc_infer::infer::InferCtxtBuilder>::enter::<&rustc_middle::ty::context::TypeckResults, <rustc_typeck::check::inherited::InheritedBuilder>::enter<rustc_typeck::check::typeck_with_fallback<rustc_typeck::check::typeck::{closure#0}>::{closure#1}, &rustc_middle::ty::context::TypeckResults>::{closure#0}>
45: rustc_typeck::check::typeck
46: <rustc_query_system::dep_graph::graph::DepGraph<rustc_middle::dep_graph::dep_node::DepKind>>::with_task::<rustc_middle::ty::context::TyCtxt, rustc_span::def_id::LocalDefId, &rustc_middle::ty::context::TypeckResults>
47: rustc_query_system::query::plumbing::try_execute_query::<rustc_query_impl::plumbing::QueryCtxt, rustc_query_system::query::caches::DefaultCache<rustc_span::def_id::LocalDefId, &rustc_middle::ty::context::TypeckResults>>
48: rustc_query_system::query::plumbing::get_query::<rustc_query_impl::queries::typeck, rustc_query_impl::plumbing::QueryCtxt>
49: rustc_data_structures::sync::par_for_each_in::<&[rustc_span::def_id::LocalDefId], <rustc_middle::hir::map::Map>::par_body_owners<rustc_typeck::check::typeck_item_bodies::{closure#0}>::{closure#0}>
50: <rustc_middle::hir::map::Map>::par_body_owners::<rustc_typeck::check::typeck_item_bodies::{closure#0}>
51: rustc_typeck::check::typeck_item_bodies
52: <rustc_query_system::dep_graph::graph::DepGraph<rustc_middle::dep_graph::dep_node::DepKind>>::with_task::<rustc_middle::ty::context::TyCtxt, (), ()>
53: rustc_query_system::query::plumbing::try_execute_query::<rustc_query_impl::plumbing::QueryCtxt, rustc_query_system::query::caches::DefaultCache<(), ()>>
54: rustc_query_system::query::plumbing::get_query::<rustc_query_impl::queries::typeck_item_bodies, rustc_query_impl::plumbing::QueryCtxt>
55: <rustc_session::session::Session>::time::<(), rustc_typeck::check_crate::{closure#7}>
56: rustc_typeck::check_crate
57: rustc_interface::passes::analysis
58: <rustc_query_system::dep_graph::graph::DepGraph<rustc_middle::dep_graph::dep_node::DepKind>>::with_task::<rustc_middle::ty::context::TyCtxt, (), core::result::Result<(), rustc_errors::ErrorGuaranteed>>
59: rustc_query_system::query::plumbing::try_execute_query::<rustc_query_impl::plumbing::QueryCtxt, rustc_query_system::query::caches::DefaultCache<(), core::result::Result<(), rustc_errors::ErrorGuaranteed>>>
60: rustc_query_system::query::plumbing::get_query::<rustc_query_impl::queries::analysis, rustc_query_impl::plumbing::QueryCtxt>
61: <rustc_interface::passes::QueryContext>::enter::<rustc_driver::run_compiler::{closure#1}::{closure#2}::{closure#3}, core::result::Result<(), rustc_errors::ErrorGuaranteed>>
62: <rustc_interface::interface::Compiler>::enter::<rustc_driver::run_compiler::{closure#1}::{closure#2}, core::result::Result<core::option::Option<rustc_interface::queries::Linker>, rustc_errors::ErrorGuaranteed>>
63: rustc_span::with_source_map::<core::result::Result<(), rustc_errors::ErrorGuaranteed>, rustc_interface::interface::create_compiler_and_run<core::result::Result<(), rustc_errors::ErrorGuaranteed>, rustc_driver::run_compiler::{closure#1}>::{closure#1}>
64: rustc_interface::interface::create_compiler_and_run::<core::result::Result<(), rustc_errors::ErrorGuaranteed>, rustc_driver::run_compiler::{closure#1}>
65: <scoped_tls::ScopedKey<rustc_span::SessionGlobals>>::set::<rustc_interface::interface::run_compiler<core::result::Result<(), rustc_errors::ErrorGuaranteed>, rustc_driver::run_compiler::{closure#1}>::{closure#0}, core::result::Result<(), rustc_errors::ErrorGuaranteed>>
66: std::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface::util::run_in_thread_pool_with_globals<rustc_interface::interface::run_compiler<core::result::Result<(), rustc_errors::ErrorGuaranteed>, rustc_driver::run_compiler::{closure#1}>::{closure#0}, core::result::Result<(), rustc_errors::ErrorGuaranteed>>::{closure#0}, core::result::Result<(), rustc_errors::ErrorGuaranteed>>
67: <<std::thread::Builder>::spawn_unchecked_<rustc_interface::util::run_in_thread_pool_with_globals<rustc_interface::interface::run_compiler<core::result::Result<(), rustc_errors::ErrorGuaranteed>, rustc_driver::run_compiler::{closure#1}>::{closure#0}, core::result::Result<(), rustc_errors::ErrorGuaranteed>>::{closure#0}, core::result::Result<(), rustc_errors::ErrorGuaranteed>>::{closure#1} as core::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
68: std::sys::unix::thread::Thread::new::thread_start
69: __pthread_start
thread 'rustc' panicked at 'Box<dyn Any>', compiler/rustc_errors/src/lib.rs:1487:13
stack backtrace:
0: 0x10dbc0bf5 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h845e2516a8268840
1: 0x10dc17fda - core::fmt::write::h2af047ddbf03b6f3
2: 0x10dbb2efc - std::io::Write::write_fmt::h11c7ec25ade65885
3: 0x10dbc3c3b - std::panicking::default_hook::{{closure}}::h954849597ff6e027
4: 0x10dbc3947 - std::panicking::default_hook::he544962a4ecf6825
5: 0x1166171ca - rustc_driver[7f9484eaa0472288]::DEFAULT_HOOK::{closure#0}::{closure#0}
6: 0x10dbc436e - std::panicking::rust_panic_with_hook::h20ce40c0ef43a05d
7: 0x11af565a7 - std[86f24572c239979f]::panicking::begin_panic::<rustc_errors[bc08ee6f7a54ba9e]::ExplicitBug>::{closure#0}
8: 0x11af557e9 - std[86f24572c239979f]::sys_common::backtrace::__rust_end_short_backtrace::<std[86f24572c239979f]::panicking::begin_panic<rustc_errors[bc08ee6f7a54ba9e]::ExplicitBug>::{closure#0}, !>
9: 0x11b2c41b9 - std[86f24572c239979f]::panicking::begin_panic::<rustc_errors[bc08ee6f7a54ba9e]::ExplicitBug>
10: 0x11af4b889 - std[86f24572c239979f]::panic::panic_any::<rustc_errors[bc08ee6f7a54ba9e]::ExplicitBug>
11: 0x11af4f16a - <rustc_errors[bc08ee6f7a54ba9e]::HandlerInner as core[4000d9a4acabdbdf]::ops::drop::Drop>::drop
12: 0x1165c101a - core[4000d9a4acabdbdf]::ptr::drop_in_place::<rustc_session[a5feb8632341a368]::parse::ParseSess>
13: 0x1165c439a - <alloc[d577250112b10084]::rc::Rc<rustc_session[a5feb8632341a368]::session::Session> as core[4000d9a4acabdbdf]::ops::drop::Drop>::drop
14: 0x11658f792 - core[4000d9a4acabdbdf]::ptr::drop_in_place::<rustc_interface[af2d618945b33636]::interface::Compiler>
15: 0x116589822 - rustc_span[6963cbe0b92c9653]::with_source_map::<core[4000d9a4acabdbdf]::result::Result<(), rustc_errors[bc08ee6f7a54ba9e]::ErrorGuaranteed>, rustc_interface[af2d618945b33636]::interface::create_compiler_and_run<core[4000d9a4acabdbdf]::result::Result<(), rustc_errors[bc08ee6f7a54ba9e]::ErrorGuaranteed>, rustc_driver[7f9484eaa0472288]::run_compiler::{closure#1}>::{closure#1}>
16: 0x1165b18b7 - rustc_interface[af2d618945b33636]::interface::create_compiler_and_run::<core[4000d9a4acabdbdf]::result::Result<(), rustc_errors[bc08ee6f7a54ba9e]::ErrorGuaranteed>, rustc_driver[7f9484eaa0472288]::run_compiler::{closure#1}>
17: 0x116605135 - <scoped_tls[8db20e2bdf017c12]::ScopedKey<rustc_span[6963cbe0b92c9653]::SessionGlobals>>::set::<rustc_interface[af2d618945b33636]::interface::run_compiler<core[4000d9a4acabdbdf]::result::Result<(), rustc_errors[bc08ee6f7a54ba9e]::ErrorGuaranteed>, rustc_driver[7f9484eaa0472288]::run_compiler::{closure#1}>::{closure#0}, core[4000d9a4acabdbdf]::result::Result<(), rustc_errors[bc08ee6f7a54ba9e]::ErrorGuaranteed>>
18: 0x11658ffba - std[86f24572c239979f]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[af2d618945b33636]::util::run_in_thread_pool_with_globals<rustc_interface[af2d618945b33636]::interface::run_compiler<core[4000d9a4acabdbdf]::result::Result<(), rustc_errors[bc08ee6f7a54ba9e]::ErrorGuaranteed>, rustc_driver[7f9484eaa0472288]::run_compiler::{closure#1}>::{closure#0}, core[4000d9a4acabdbdf]::result::Result<(), rustc_errors[bc08ee6f7a54ba9e]::ErrorGuaranteed>>::{closure#0}, core[4000d9a4acabdbdf]::result::Result<(), rustc_errors[bc08ee6f7a54ba9e]::ErrorGuaranteed>>
19: 0x1165cc256 - <<std[86f24572c239979f]::thread::Builder>::spawn_unchecked_<rustc_interface[af2d618945b33636]::util::run_in_thread_pool_with_globals<rustc_interface[af2d618945b33636]::interface::run_compiler<core[4000d9a4acabdbdf]::result::Result<(), rustc_errors[bc08ee6f7a54ba9e]::ErrorGuaranteed>, rustc_driver[7f9484eaa0472288]::run_compiler::{closure#1}>::{closure#0}, core[4000d9a4acabdbdf]::result::Result<(), rustc_errors[bc08ee6f7a54ba9e]::ErrorGuaranteed>>::{closure#0}, core[4000d9a4acabdbdf]::result::Result<(), rustc_errors[bc08ee6f7a54ba9e]::ErrorGuaranteed>>::{closure#1} as core[4000d9a4acabdbdf]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
20: 0x10dbcd097 - std::sys::unix::thread::Thread::new::thread_start::h7452b676646a911d
21: 0x7ff80e41d4e1 - __pthread_start
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-nightly (c0941dfb5 2022-08-21) running on x86_64-apple-darwin
note: compiler flags: -C embed-bitcode=no -C split-debuginfo=unpacked -C debuginfo=2 -C incremental -C link-arg=-undefined -C link-arg=dynamic_lookup
note: some of the compiler flags provided by cargo are hidden
query stack during panic:
end of query stack
thread panicked while panicking. aborting.
sccache: Compile terminated by signal 6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment