Repository: rust
Issue: Illegal read in graph.rs and failure to convert 'DefPathHash DefPathHash Fingerprint'
Labels: I-ICE,T-compiler,A-incr-comp,C-bug

While developing and modifying a proc-mcaro I came across this enormous compiler stack trace.
```
thread 'rustc' panicked at 'Failed to convert DefPathHash DefPathHash(Fingerprint(17603796589657431127, 7634269665649624540))', compiler/rustc_query_impl/src/on_disk_cache.rs:790:13
stack backtrace:
   0:     0x7fedd38fda7a - std::backtrace_rs::backtrace::libunwind::trace::hd7fe7cc5badcf2d1
                               at /rustc/88c58e3c2c097ebffac425d9e080dcb1aadf790e/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5
   1:     0x7fedd38fda7a - std::backtrace_rs::backtrace::trace_unsynchronized::h0c911d458fb8948b
                               at /rustc/88c58e3c2c097ebffac425d9e080dcb1aadf790e/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
   2:     0x7fedd38fda7a - std::sys_common::backtrace::_print_fmt::h4b6dc1a246b2916e
                               at /rustc/88c58e3c2c097ebffac425d9e080dcb1aadf790e/library/std/src/sys_common/backtrace.rs:65:5
   3:     0x7fedd38fda7a - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h4bc10c749201d4b5
                               at /rustc/88c58e3c2c097ebffac425d9e080dcb1aadf790e/library/std/src/sys_common/backtrace.rs:44:22
   4:     0x7fedd39607ae - core::fmt::write::h206a527012538b4f
                               at /rustc/88c58e3c2c097ebffac425d9e080dcb1aadf790e/library/core/src/fmt/mod.rs:1208:17
   5:     0x7fedd38edf45 - std::io::Write::write_fmt::he150a77cce180d34
                               at /rustc/88c58e3c2c097ebffac425d9e080dcb1aadf790e/library/std/src/io/mod.rs:1682:15
   6:     0x7fedd38fd845 - std::sys_common::backtrace::_print::h520245dc283f02e5
                               at /rustc/88c58e3c2c097ebffac425d9e080dcb1aadf790e/library/std/src/sys_common/backtrace.rs:47:5
   7:     0x7fedd38fd845 - std::sys_common::backtrace::print::heac1b68581cbcfa8
                               at /rustc/88c58e3c2c097ebffac425d9e080dcb1aadf790e/library/std/src/sys_common/backtrace.rs:34:9
   8:     0x7fedd390058f - std::panicking::default_hook::{{closure}}::h05a80b05a2706480
                               at /rustc/88c58e3c2c097ebffac425d9e080dcb1aadf790e/library/std/src/panicking.rs:267:22
   9:     0x7fedd39002cb - std::panicking::default_hook::h35652d7d2fa51432
                               at /rustc/88c58e3c2c097ebffac425d9e080dcb1aadf790e/library/std/src/panicking.rs:286:9
  10:     0x7fedd6c047cf - rustc_driver[44256f7a0bd74eb9]::DEFAULT_HOOK::{closure#0}::{closure#0}
  11:     0x7fedd3900dcd - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::hde8ec6e2a530e1ea
                               at /rustc/88c58e3c2c097ebffac425d9e080dcb1aadf790e/library/alloc/src/boxed.rs:2032:9
  12:     0x7fedd3900dcd - std::panicking::rust_panic_with_hook::h30b98331fc456852
                               at /rustc/88c58e3c2c097ebffac425d9e080dcb1aadf790e/library/std/src/panicking.rs:692:13
  13:     0x7fedd3900b49 - std::panicking::begin_panic_handler::{{closure}}::h80b63e1f50656472
                               at /rustc/88c58e3c2c097ebffac425d9e080dcb1aadf790e/library/std/src/panicking.rs:579:13
  14:     0x7fedd38fdf2c - std::sys_common::backtrace::__rust_end_short_backtrace::ha0da26b9e292be2a
                               at /rustc/88c58e3c2c097ebffac425d9e080dcb1aadf790e/library/std/src/sys_common/backtrace.rs:137:18
  15:     0x7fedd3900852 - rust_begin_unwind
                               at /rustc/88c58e3c2c097ebffac425d9e080dcb1aadf790e/library/std/src/panicking.rs:575:5
  16:     0x7fedd395d193 - core::panicking::panic_fmt::h242c7aea976a4022
                               at /rustc/88c58e3c2c097ebffac425d9e080dcb1aadf790e/library/core/src/panicking.rs:64:14
  17:     0x7fedd75001cf - <rustc_span[61620759254154b9]::def_id::DefId as rustc_serialize[515364f939cc47dd]::serialize::Decodable<rustc_query_impl[22c9b72219a72c97]::on_disk_cache::CacheDecoder>>::decode::{closure#0}
  18:     0x7fedd570853f - <core[3b9d0855137275ad]::option::Option<rustc_span[61620759254154b9]::def_id::DefId> as rustc_serialize[515364f939cc47dd]::serialize::Decodable<rustc_query_impl[22c9b72219a72c97]::on_disk_cache::CacheDecoder>>::decode
  19:     0x7fedd75bc9c2 - <rustc_span[61620759254154b9]::hygiene::ExpnData as rustc_serialize[515364f939cc47dd]::serialize::Decodable<rustc_query_impl[22c9b72219a72c97]::on_disk_cache::CacheDecoder>>::decode
  20:     0x7fedd74fffea - <rustc_query_impl[22c9b72219a72c97]::on_disk_cache::CacheDecoder as rustc_type_ir[8e0ad2993e9560df]::codec::TyDecoder>::with_position::<<rustc_span[61620759254154b9]::hygiene::ExpnId as rustc_serialize[515364f939cc47dd]::serialize::Decodable<rustc_query_impl[22c9b72219a72c97]::on_disk_cache::CacheDecoder>>::decode::{closure#1}, rustc_span[61620759254154b9]::hygiene::ExpnData>
  21:     0x7fedd75c11af - <rustc_span[61620759254154b9]::hygiene::ExpnId as rustc_serialize[515364f939cc47dd]::serialize::Decodable<rustc_query_impl[22c9b72219a72c97]::on_disk_cache::CacheDecoder>>::decode
  22:     0x7fedd75bc961 - <rustc_span[61620759254154b9]::hygiene::ExpnData as rustc_serialize[515364f939cc47dd]::serialize::Decodable<rustc_query_impl[22c9b72219a72c97]::on_disk_cache::CacheDecoder>>::decode
  23:     0x7fedd74fffea - <rustc_query_impl[22c9b72219a72c97]::on_disk_cache::CacheDecoder as rustc_type_ir[8e0ad2993e9560df]::codec::TyDecoder>::with_position::<<rustc_span[61620759254154b9]::hygiene::ExpnId as rustc_serialize[515364f939cc47dd]::serialize::Decodable<rustc_query_impl[22c9b72219a72c97]::on_disk_cache::CacheDecoder>>::decode::{closure#1}, rustc_span[61620759254154b9]::hygiene::ExpnData>
  24:     0x7fedd4ff93b0 - <rustc_span[61620759254154b9]::hygiene::SyntaxContextData as rustc_serialize[515364f939cc47dd]::serialize::Decodable<rustc_query_impl[22c9b72219a72c97]::on_disk_cache::CacheDecoder>>::decode
  25:     0x7fedd4ff50af - <rustc_span[61620759254154b9]::span_encoding::Span as rustc_serialize[515364f939cc47dd]::serialize::Decodable<rustc_query_impl[22c9b72219a72c97]::on_disk_cache::CacheDecoder>>::decode
  26:     0x7fedd567a24f - rustc_query_system[ad89d02d8d3f889f]::query::plumbing::get_query::<rustc_query_impl[22c9b72219a72c97]::queries::def_span, rustc_query_impl[22c9b72219a72c97]::plumbing::QueryCtxt, rustc_middle[4ee4417d369392c0]::dep_graph::dep_node::DepKind>
  27:     0x7fedd57fffe0 - rustc_ty_utils[d5c680cf3b6de39f]::ty::param_env
  28:     0x7fedd58caa4f - <rustc_query_system[ad89d02d8d3f889f]::dep_graph::graph::DepGraph<rustc_middle[4ee4417d369392c0]::dep_graph::dep_node::DepKind>>::with_task::<rustc_middle[4ee4417d369392c0]::ty::context::TyCtxt, rustc_span[61620759254154b9]::def_id::DefId, rustc_middle[4ee4417d369392c0]::ty::ParamEnv>
  29:     0x7fedd58c8a98 - rustc_query_system[ad89d02d8d3f889f]::query::plumbing::get_query::<rustc_query_impl[22c9b72219a72c97]::queries::param_env, rustc_query_impl[22c9b72219a72c97]::plumbing::QueryCtxt, rustc_middle[4ee4417d369392c0]::dep_graph::dep_node::DepKind>
  30:     0x7fedd5dd3482 - <rustc_hir_typeck[e1d8a443aa4356]::inherited::InheritedBuilder>::enter::<rustc_hir_typeck[e1d8a443aa4356]::typeck_with_fallback<rustc_hir_typeck[e1d8a443aa4356]::typeck_const_arg::{closure#0}>::{closure#0}::{closure#1}, &rustc_middle[4ee4417d369392c0]::ty::typeck_results::TypeckResults>
  31:     0x7fedd5dd1ef1 - rustc_hir_typeck[e1d8a443aa4356]::typeck_const_arg
  32:     0x7fedd6201500 - <rustc_query_system[ad89d02d8d3f889f]::dep_graph::graph::DepGraph<rustc_middle[4ee4417d369392c0]::dep_graph::dep_node::DepKind>>::with_task::<rustc_middle[4ee4417d369392c0]::ty::context::TyCtxt, (rustc_span[61620759254154b9]::def_id::LocalDefId, rustc_span[61620759254154b9]::def_id::DefId), &rustc_middle[4ee4417d369392c0]::ty::typeck_results::TypeckResults>
  33:     0x7fedd62003a0 - rustc_query_system[ad89d02d8d3f889f]::query::plumbing::try_execute_query::<rustc_query_impl[22c9b72219a72c97]::plumbing::QueryCtxt, rustc_query_system[ad89d02d8d3f889f]::query::caches::DefaultCache<(rustc_span[61620759254154b9]::def_id::LocalDefId, rustc_span[61620759254154b9]::def_id::DefId), &rustc_middle[4ee4417d369392c0]::ty::typeck_results::TypeckResults>>
  34:     0x7fedd5e871ba - rustc_query_system[ad89d02d8d3f889f]::query::plumbing::get_query::<rustc_query_impl[22c9b72219a72c97]::queries::typeck_const_arg, rustc_query_impl[22c9b72219a72c97]::plumbing::QueryCtxt, rustc_middle[4ee4417d369392c0]::dep_graph::dep_node::DepKind>
  35:     0x7fedd5e87107 - <rustc_query_impl[22c9b72219a72c97]::Queries as rustc_middle[4ee4417d369392c0]::ty::query::QueryEngine>::typeck_const_arg
  36:     0x7fedd5262ddd - rustc_hir_typeck[e1d8a443aa4356]::typeck
  37:     0x7fedd52786e4 - <rustc_query_system[ad89d02d8d3f889f]::dep_graph::graph::DepGraph<rustc_middle[4ee4417d369392c0]::dep_graph::dep_node::DepKind>>::with_task::<rustc_middle[4ee4417d369392c0]::ty::context::TyCtxt, rustc_span[61620759254154b9]::def_id::LocalDefId, &rustc_middle[4ee4417d369392c0]::ty::typeck_results::TypeckResults>
  38:     0x7fedd526142a - rustc_query_system[ad89d02d8d3f889f]::query::plumbing::try_execute_query::<rustc_query_impl[22c9b72219a72c97]::plumbing::QueryCtxt, rustc_query_system[ad89d02d8d3f889f]::query::caches::VecCache<rustc_span[61620759254154b9]::def_id::LocalDefId, &rustc_middle[4ee4417d369392c0]::ty::typeck_results::TypeckResults>>
  39:     0x7fedd63746c5 - rustc_data_structures[6dd318495c4fba98]::sync::par_for_each_in::<&[rustc_span[61620759254154b9]::def_id::LocalDefId], <rustc_middle[4ee4417d369392c0]::hir::map::Map>::par_body_owners<rustc_hir_typeck[e1d8a443aa4356]::typeck_item_bodies::{closure#0}>::{closure#0}>
  40:     0x7fedd6374403 - rustc_hir_typeck[e1d8a443aa4356]::typeck_item_bodies
  41:     0x7fedd6272e07 - <rustc_query_system[ad89d02d8d3f889f]::dep_graph::graph::DepGraph<rustc_middle[4ee4417d369392c0]::dep_graph::dep_node::DepKind>>::with_task::<rustc_middle[4ee4417d369392c0]::ty::context::TyCtxt, (), ()>
  42:     0x7fedd6271c50 - rustc_query_system[ad89d02d8d3f889f]::query::plumbing::try_execute_query::<rustc_query_impl[22c9b72219a72c97]::plumbing::QueryCtxt, rustc_query_system[ad89d02d8d3f889f]::query::caches::DefaultCache<(), ()>>
  43:     0x7fedd62715d0 - rustc_query_system[ad89d02d8d3f889f]::query::plumbing::get_query::<rustc_query_impl[22c9b72219a72c97]::queries::typeck_item_bodies, rustc_query_impl[22c9b72219a72c97]::plumbing::QueryCtxt, rustc_middle[4ee4417d369392c0]::dep_graph::dep_node::DepKind>
  44:     0x7fedd50631f2 - <rustc_session[70a447901201bfeb]::session::Session>::time::<(), rustc_hir_analysis[27c0316fa5afc902]::check_crate::{closure#7}>
  45:     0x7fedd50620ec - rustc_hir_analysis[27c0316fa5afc902]::check_crate
  46:     0x7fedd5061d0b - rustc_interface[31ef287528d712d1]::passes::analysis
  47:     0x7fedd63c3aa5 - <rustc_query_system[ad89d02d8d3f889f]::dep_graph::graph::DepGraph<rustc_middle[4ee4417d369392c0]::dep_graph::dep_node::DepKind>>::with_task::<rustc_middle[4ee4417d369392c0]::ty::context::TyCtxt, (), core[3b9d0855137275ad]::result::Result<(), rustc_errors[56f51b9ef828235e]::ErrorGuaranteed>>
  48:     0x7fedd63c2c88 - rustc_query_system[ad89d02d8d3f889f]::query::plumbing::try_execute_query::<rustc_query_impl[22c9b72219a72c97]::plumbing::QueryCtxt, rustc_query_system[ad89d02d8d3f889f]::query::caches::DefaultCache<(), core[3b9d0855137275ad]::result::Result<(), rustc_errors[56f51b9ef828235e]::ErrorGuaranteed>>>
  49:     0x7fedd63c26f0 - rustc_query_system[ad89d02d8d3f889f]::query::plumbing::get_query::<rustc_query_impl[22c9b72219a72c97]::queries::analysis, rustc_query_impl[22c9b72219a72c97]::plumbing::QueryCtxt, rustc_middle[4ee4417d369392c0]::dep_graph::dep_node::DepKind>
  50:     0x7fedd5ea5e93 - <rustc_interface[31ef287528d712d1]::passes::QueryContext>::enter::<rustc_driver[44256f7a0bd74eb9]::run_compiler::{closure#1}::{closure#2}::{closure#2}, core[3b9d0855137275ad]::result::Result<(), rustc_errors[56f51b9ef828235e]::ErrorGuaranteed>>
  51:     0x7fedd5ea2243 - <rustc_interface[31ef287528d712d1]::interface::Compiler>::enter::<rustc_driver[44256f7a0bd74eb9]::run_compiler::{closure#1}::{closure#2}, core[3b9d0855137275ad]::result::Result<core[3b9d0855137275ad]::option::Option<rustc_interface[31ef287528d712d1]::queries::Linker>, rustc_errors[56f51b9ef828235e]::ErrorGuaranteed>>
  52:     0x7fedd5e9d258 - rustc_span[61620759254154b9]::with_source_map::<core[3b9d0855137275ad]::result::Result<(), rustc_errors[56f51b9ef828235e]::ErrorGuaranteed>, rustc_interface[31ef287528d712d1]::interface::run_compiler<core[3b9d0855137275ad]::result::Result<(), rustc_errors[56f51b9ef828235e]::ErrorGuaranteed>, rustc_driver[44256f7a0bd74eb9]::run_compiler::{closure#1}>::{closure#0}::{closure#0}>
  53:     0x7fedd5e9cd45 - <scoped_tls[af245d8716b680cf]::ScopedKey<rustc_span[61620759254154b9]::SessionGlobals>>::set::<rustc_interface[31ef287528d712d1]::interface::run_compiler<core[3b9d0855137275ad]::result::Result<(), rustc_errors[56f51b9ef828235e]::ErrorGuaranteed>, rustc_driver[44256f7a0bd74eb9]::run_compiler::{closure#1}>::{closure#0}, core[3b9d0855137275ad]::result::Result<(), rustc_errors[56f51b9ef828235e]::ErrorGuaranteed>>
  54:     0x7fedd5e9c332 - std[372f5cc4827a3c5c]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[31ef287528d712d1]::util::run_in_thread_pool_with_globals<rustc_interface[31ef287528d712d1]::interface::run_compiler<core[3b9d0855137275ad]::result::Result<(), rustc_errors[56f51b9ef828235e]::ErrorGuaranteed>, rustc_driver[44256f7a0bd74eb9]::run_compiler::{closure#1}>::{closure#0}, core[3b9d0855137275ad]::result::Result<(), rustc_errors[56f51b9ef828235e]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[3b9d0855137275ad]::result::Result<(), rustc_errors[56f51b9ef828235e]::ErrorGuaranteed>>
  55:     0x7fedd64c629a - <<std[372f5cc4827a3c5c]::thread::Builder>::spawn_unchecked_<rustc_interface[31ef287528d712d1]::util::run_in_thread_pool_with_globals<rustc_interface[31ef287528d712d1]::interface::run_compiler<core[3b9d0855137275ad]::result::Result<(), rustc_errors[56f51b9ef828235e]::ErrorGuaranteed>, rustc_driver[44256f7a0bd74eb9]::run_compiler::{closure#1}>::{closure#0}, core[3b9d0855137275ad]::result::Result<(), rustc_errors[56f51b9ef828235e]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[3b9d0855137275ad]::result::Result<(), rustc_errors[56f51b9ef828235e]::ErrorGuaranteed>>::{closure#1} as core[3b9d0855137275ad]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  56:     0x7fedd390adc3 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h838bfab0e0480ae9
                               at /rustc/88c58e3c2c097ebffac425d9e080dcb1aadf790e/library/alloc/src/boxed.rs:2000:9
  57:     0x7fedd390adc3 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h2eba1a8bb719307d
                               at /rustc/88c58e3c2c097ebffac425d9e080dcb1aadf790e/library/alloc/src/boxed.rs:2000:9
  58:     0x7fedd390adc3 - std::sys::unix::thread::Thread::new::thread_start::h33c615f0b38ed275
                               at /rustc/88c58e3c2c097ebffac425d9e080dcb1aadf790e/library/std/src/sys/unix/thread.rs:108:17
  59:     0x7fedd37b3609 - start_thread
                               at /build/glibc-SzIz7B/glibc-2.31/nptl/pthread_create.c:477:8
  60:     0x7fedd36d8133 - clone
                               at /build/glibc-SzIz7B/glibc-2.31/misc/../sysdeps/unix/sysv/linux/x86_64/clone.S:95
  61:                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.68.0-nightly (88c58e3c2 2022-12-26) running on x86_64-unknown-linux-gnu

note: compiler flags: --crate-type bin -C panic=abort -C embed-bitcode=no -C debuginfo=2 -C incremental=[REDACTED] -C link-args=-lc

note: some of the compiler flags provided by cargo are hidden

query stack during panic:
thread 'rustc' panicked at 'Illegal read of: 2927', /rustc/88c58e3c2c097ebffac425d9e080dcb1aadf790e/compiler/rustc_query_system/src/dep_graph/graph.rs:450:25
stack backtrace:
   0:     0x7fedd38fda7a - std::backtrace_rs::backtrace::libunwind::trace::hd7fe7cc5badcf2d1
                               at /rustc/88c58e3c2c097ebffac425d9e080dcb1aadf790e/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5
   1:     0x7fedd38fda7a - std::backtrace_rs::backtrace::trace_unsynchronized::h0c911d458fb8948b
                               at /rustc/88c58e3c2c097ebffac425d9e080dcb1aadf790e/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
   2:     0x7fedd38fda7a - std::sys_common::backtrace::_print_fmt::h4b6dc1a246b2916e
                               at /rustc/88c58e3c2c097ebffac425d9e080dcb1aadf790e/library/std/src/sys_common/backtrace.rs:65:5
   3:     0x7fedd38fda7a - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h4bc10c749201d4b5
                               at /rustc/88c58e3c2c097ebffac425d9e080dcb1aadf790e/library/std/src/sys_common/backtrace.rs:44:22
   4:     0x7fedd39607ae - core::fmt::write::h206a527012538b4f
                               at /rustc/88c58e3c2c097ebffac425d9e080dcb1aadf790e/library/core/src/fmt/mod.rs:1208:17
   5:     0x7fedd38edf45 - std::io::Write::write_fmt::he150a77cce180d34
                               at /rustc/88c58e3c2c097ebffac425d9e080dcb1aadf790e/library/std/src/io/mod.rs:1682:15
   6:     0x7fedd38fd845 - std::sys_common::backtrace::_print::h520245dc283f02e5
                               at /rustc/88c58e3c2c097ebffac425d9e080dcb1aadf790e/library/std/src/sys_common/backtrace.rs:47:5
   7:     0x7fedd38fd845 - std::sys_common::backtrace::print::heac1b68581cbcfa8
                               at /rustc/88c58e3c2c097ebffac425d9e080dcb1aadf790e/library/std/src/sys_common/backtrace.rs:34:9
   8:     0x7fedd390058f - std::panicking::default_hook::{{closure}}::h05a80b05a2706480
                               at /rustc/88c58e3c2c097ebffac425d9e080dcb1aadf790e/library/std/src/panicking.rs:267:22
   9:     0x7fedd39002cb - std::panicking::default_hook::h35652d7d2fa51432
                               at /rustc/88c58e3c2c097ebffac425d9e080dcb1aadf790e/library/std/src/panicking.rs:286:9
  10:     0x7fedd6c047cf - rustc_driver[44256f7a0bd74eb9]::DEFAULT_HOOK::{closure#0}::{closure#0}
  11:     0x7fedd3900dcd - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::hde8ec6e2a530e1ea
                               at /rustc/88c58e3c2c097ebffac425d9e080dcb1aadf790e/library/alloc/src/boxed.rs:2032:9
  12:     0x7fedd3900dcd - std::panicking::rust_panic_with_hook::h30b98331fc456852
                               at /rustc/88c58e3c2c097ebffac425d9e080dcb1aadf790e/library/std/src/panicking.rs:692:13
  13:     0x7fedd3900b49 - std::panicking::begin_panic_handler::{{closure}}::h80b63e1f50656472
                               at /rustc/88c58e3c2c097ebffac425d9e080dcb1aadf790e/library/std/src/panicking.rs:579:13
  14:     0x7fedd38fdf2c - std::sys_common::backtrace::__rust_end_short_backtrace::ha0da26b9e292be2a
                               at /rustc/88c58e3c2c097ebffac425d9e080dcb1aadf790e/library/std/src/sys_common/backtrace.rs:137:18
  15:     0x7fedd3900852 - rust_begin_unwind
                               at /rustc/88c58e3c2c097ebffac425d9e080dcb1aadf790e/library/std/src/panicking.rs:575:5
  16:     0x7fedd395d193 - core::panicking::panic_fmt::h242c7aea976a4022
                               at /rustc/88c58e3c2c097ebffac425d9e080dcb1aadf790e/library/core/src/panicking.rs:64:14
  17:     0x7fedd4b6e687 - <rustc_middle[4ee4417d369392c0]::dep_graph::dep_node::DepKind as rustc_query_system[ad89d02d8d3f889f]::dep_graph::DepKind>::read_deps::<<rustc_query_system[ad89d02d8d3f889f]::dep_graph::graph::DepGraph<rustc_middle[4ee4417d369392c0]::dep_graph::dep_node::DepKind>>::read_index::{closure#0}>
  18:     0x7fedd4c8757d - <rustc_middle[4ee4417d369392c0]::ty::context::TyCtxt>::type_length_limit
  19:     0x7fedd578b0c9 - <rustc_middle[4ee4417d369392c0]::ty::context::TyCtxt>::def_path_str_with_substs
  20:     0x7fedd70bf879 - rustc_middle[4ee4417d369392c0]::query::descs::diagnostic_only_typeck
  21:     0x7fedd7548e74 - rustc_query_impl[22c9b72219a72c97]::plumbing::create_query_frame::<rustc_hir[a36bb2e1c485d784]::hir_id::OwnerId>
  22:     0x7fedd74f9fb3 - <rustc_query_impl[22c9b72219a72c97]::query_structs::typeck::{closure#0}::{closure#0} as core[3b9d0855137275ad]::ops::function::FnOnce<(rustc_query_impl[22c9b72219a72c97]::plumbing::QueryCtxt, rustc_span[61620759254154b9]::def_id::LocalDefId)>>::call_once
  23:     0x7fedd73e1c86 - <rustc_query_system[ad89d02d8d3f889f]::query::plumbing::QueryState<rustc_span[61620759254154b9]::def_id::LocalDefId, rustc_middle[4ee4417d369392c0]::dep_graph::dep_node::DepKind>>::try_collect_active_jobs::<rustc_query_impl[22c9b72219a72c97]::plumbing::QueryCtxt>
  24:     0x7fedd563ef32 - <rustc_query_impl[22c9b72219a72c97]::Queries>::try_collect_active_jobs
  25:     0x7fedd757ee28 - rustc_query_system[ad89d02d8d3f889f]::query::job::print_query_stack::<rustc_query_impl[22c9b72219a72c97]::plumbing::QueryCtxt>
  26:     0x7fedd6f6ce5e - rustc_interface[31ef287528d712d1]::interface::try_print_query_stack
  27:     0x7fedd6c06c61 - rustc_driver[44256f7a0bd74eb9]::report_ice
  28:     0x7fedd3900dcd - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::hde8ec6e2a530e1ea
                               at /rustc/88c58e3c2c097ebffac425d9e080dcb1aadf790e/library/alloc/src/boxed.rs:2032:9
  29:     0x7fedd3900dcd - std::panicking::rust_panic_with_hook::h30b98331fc456852
                               at /rustc/88c58e3c2c097ebffac425d9e080dcb1aadf790e/library/std/src/panicking.rs:692:13
  30:     0x7fedd3900b49 - std::panicking::begin_panic_handler::{{closure}}::h80b63e1f50656472
                               at /rustc/88c58e3c2c097ebffac425d9e080dcb1aadf790e/library/std/src/panicking.rs:579:13
  31:     0x7fedd38fdf2c - std::sys_common::backtrace::__rust_end_short_backtrace::ha0da26b9e292be2a
                               at /rustc/88c58e3c2c097ebffac425d9e080dcb1aadf790e/library/std/src/sys_common/backtrace.rs:137:18
  32:     0x7fedd3900852 - rust_begin_unwind
                               at /rustc/88c58e3c2c097ebffac425d9e080dcb1aadf790e/library/std/src/panicking.rs:575:5
  33:     0x7fedd395d193 - core::panicking::panic_fmt::h242c7aea976a4022
                               at /rustc/88c58e3c2c097ebffac425d9e080dcb1aadf790e/library/core/src/panicking.rs:64:14
  34:     0x7fedd75001cf - <rustc_span[61620759254154b9]::def_id::DefId as rustc_serialize[515364f939cc47dd]::serialize::Decodable<rustc_query_impl[22c9b72219a72c97]::on_disk_cache::CacheDecoder>>::decode::{closure#0}
  35:     0x7fedd570853f - <core[3b9d0855137275ad]::option::Option<rustc_span[61620759254154b9]::def_id::DefId> as rustc_serialize[515364f939cc47dd]::serialize::Decodable<rustc_query_impl[22c9b72219a72c97]::on_disk_cache::CacheDecoder>>::decode
  36:     0x7fedd75bc9c2 - <rustc_span[61620759254154b9]::hygiene::ExpnData as rustc_serialize[515364f939cc47dd]::serialize::Decodable<rustc_query_impl[22c9b72219a72c97]::on_disk_cache::CacheDecoder>>::decode
  37:     0x7fedd74fffea - <rustc_query_impl[22c9b72219a72c97]::on_disk_cache::CacheDecoder as rustc_type_ir[8e0ad2993e9560df]::codec::TyDecoder>::with_position::<<rustc_span[61620759254154b9]::hygiene::ExpnId as rustc_serialize[515364f939cc47dd]::serialize::Decodable<rustc_query_impl[22c9b72219a72c97]::on_disk_cache::CacheDecoder>>::decode::{closure#1}, rustc_span[61620759254154b9]::hygiene::ExpnData>
  38:     0x7fedd75c11af - <rustc_span[61620759254154b9]::hygiene::ExpnId as rustc_serialize[515364f939cc47dd]::serialize::Decodable<rustc_query_impl[22c9b72219a72c97]::on_disk_cache::CacheDecoder>>::decode
  39:     0x7fedd75bc961 - <rustc_span[61620759254154b9]::hygiene::ExpnData as rustc_serialize[515364f939cc47dd]::serialize::Decodable<rustc_query_impl[22c9b72219a72c97]::on_disk_cache::CacheDecoder>>::decode
  40:     0x7fedd74fffea - <rustc_query_impl[22c9b72219a72c97]::on_disk_cache::CacheDecoder as rustc_type_ir[8e0ad2993e9560df]::codec::TyDecoder>::with_position::<<rustc_span[61620759254154b9]::hygiene::ExpnId as rustc_serialize[515364f939cc47dd]::serialize::Decodable<rustc_query_impl[22c9b72219a72c97]::on_disk_cache::CacheDecoder>>::decode::{closure#1}, rustc_span[61620759254154b9]::hygiene::ExpnData>
  41:     0x7fedd4ff93b0 - <rustc_span[61620759254154b9]::hygiene::SyntaxContextData as rustc_serialize[515364f939cc47dd]::serialize::Decodable<rustc_query_impl[22c9b72219a72c97]::on_disk_cache::CacheDecoder>>::decode
  42:     0x7fedd4ff50af - <rustc_span[61620759254154b9]::span_encoding::Span as rustc_serialize[515364f939cc47dd]::serialize::Decodable<rustc_query_impl[22c9b72219a72c97]::on_disk_cache::CacheDecoder>>::decode
  43:     0x7fedd567a24f - rustc_query_system[ad89d02d8d3f889f]::query::plumbing::get_query::<rustc_query_impl[22c9b72219a72c97]::queries::def_span, rustc_query_impl[22c9b72219a72c97]::plumbing::QueryCtxt, rustc_middle[4ee4417d369392c0]::dep_graph::dep_node::DepKind>
  44:     0x7fedd57fffe0 - rustc_ty_utils[d5c680cf3b6de39f]::ty::param_env
  45:     0x7fedd58caa4f - <rustc_query_system[ad89d02d8d3f889f]::dep_graph::graph::DepGraph<rustc_middle[4ee4417d369392c0]::dep_graph::dep_node::DepKind>>::with_task::<rustc_middle[4ee4417d369392c0]::ty::context::TyCtxt, rustc_span[61620759254154b9]::def_id::DefId, rustc_middle[4ee4417d369392c0]::ty::ParamEnv>
  46:     0x7fedd58c8a98 - rustc_query_system[ad89d02d8d3f889f]::query::plumbing::get_query::<rustc_query_impl[22c9b72219a72c97]::queries::param_env, rustc_query_impl[22c9b72219a72c97]::plumbing::QueryCtxt, rustc_middle[4ee4417d369392c0]::dep_graph::dep_node::DepKind>
  47:     0x7fedd5dd3482 - <rustc_hir_typeck[e1d8a443aa4356]::inherited::InheritedBuilder>::enter::<rustc_hir_typeck[e1d8a443aa4356]::typeck_with_fallback<rustc_hir_typeck[e1d8a443aa4356]::typeck_const_arg::{closure#0}>::{closure#0}::{closure#1}, &rustc_middle[4ee4417d369392c0]::ty::typeck_results::TypeckResults>
  48:     0x7fedd5dd1ef1 - rustc_hir_typeck[e1d8a443aa4356]::typeck_const_arg
  49:     0x7fedd6201500 - <rustc_query_system[ad89d02d8d3f889f]::dep_graph::graph::DepGraph<rustc_middle[4ee4417d369392c0]::dep_graph::dep_node::DepKind>>::with_task::<rustc_middle[4ee4417d369392c0]::ty::context::TyCtxt, (rustc_span[61620759254154b9]::def_id::LocalDefId, rustc_span[61620759254154b9]::def_id::DefId), &rustc_middle[4ee4417d369392c0]::ty::typeck_results::TypeckResults>
  50:     0x7fedd62003a0 - rustc_query_system[ad89d02d8d3f889f]::query::plumbing::try_execute_query::<rustc_query_impl[22c9b72219a72c97]::plumbing::QueryCtxt, rustc_query_system[ad89d02d8d3f889f]::query::caches::DefaultCache<(rustc_span[61620759254154b9]::def_id::LocalDefId, rustc_span[61620759254154b9]::def_id::DefId), &rustc_middle[4ee4417d369392c0]::ty::typeck_results::TypeckResults>>
  51:     0x7fedd5e871ba - rustc_query_system[ad89d02d8d3f889f]::query::plumbing::get_query::<rustc_query_impl[22c9b72219a72c97]::queries::typeck_const_arg, rustc_query_impl[22c9b72219a72c97]::plumbing::QueryCtxt, rustc_middle[4ee4417d369392c0]::dep_graph::dep_node::DepKind>
  52:     0x7fedd5e87107 - <rustc_query_impl[22c9b72219a72c97]::Queries as rustc_middle[4ee4417d369392c0]::ty::query::QueryEngine>::typeck_const_arg
  53:     0x7fedd5262ddd - rustc_hir_typeck[e1d8a443aa4356]::typeck
  54:     0x7fedd52786e4 - <rustc_query_system[ad89d02d8d3f889f]::dep_graph::graph::DepGraph<rustc_middle[4ee4417d369392c0]::dep_graph::dep_node::DepKind>>::with_task::<rustc_middle[4ee4417d369392c0]::ty::context::TyCtxt, rustc_span[61620759254154b9]::def_id::LocalDefId, &rustc_middle[4ee4417d369392c0]::ty::typeck_results::TypeckResults>
  55:     0x7fedd526142a - rustc_query_system[ad89d02d8d3f889f]::query::plumbing::try_execute_query::<rustc_query_impl[22c9b72219a72c97]::plumbing::QueryCtxt, rustc_query_system[ad89d02d8d3f889f]::query::caches::VecCache<rustc_span[61620759254154b9]::def_id::LocalDefId, &rustc_middle[4ee4417d369392c0]::ty::typeck_results::TypeckResults>>
  56:     0x7fedd63746c5 - rustc_data_structures[6dd318495c4fba98]::sync::par_for_each_in::<&[rustc_span[61620759254154b9]::def_id::LocalDefId], <rustc_middle[4ee4417d369392c0]::hir::map::Map>::par_body_owners<rustc_hir_typeck[e1d8a443aa4356]::typeck_item_bodies::{closure#0}>::{closure#0}>
  57:     0x7fedd6374403 - rustc_hir_typeck[e1d8a443aa4356]::typeck_item_bodies
  58:     0x7fedd6272e07 - <rustc_query_system[ad89d02d8d3f889f]::dep_graph::graph::DepGraph<rustc_middle[4ee4417d369392c0]::dep_graph::dep_node::DepKind>>::with_task::<rustc_middle[4ee4417d369392c0]::ty::context::TyCtxt, (), ()>
  59:     0x7fedd6271c50 - rustc_query_system[ad89d02d8d3f889f]::query::plumbing::try_execute_query::<rustc_query_impl[22c9b72219a72c97]::plumbing::QueryCtxt, rustc_query_system[ad89d02d8d3f889f]::query::caches::DefaultCache<(), ()>>
  60:     0x7fedd62715d0 - rustc_query_system[ad89d02d8d3f889f]::query::plumbing::get_query::<rustc_query_impl[22c9b72219a72c97]::queries::typeck_item_bodies, rustc_query_impl[22c9b72219a72c97]::plumbing::QueryCtxt, rustc_middle[4ee4417d369392c0]::dep_graph::dep_node::DepKind>
  61:     0x7fedd50631f2 - <rustc_session[70a447901201bfeb]::session::Session>::time::<(), rustc_hir_analysis[27c0316fa5afc902]::check_crate::{closure#7}>
  62:     0x7fedd50620ec - rustc_hir_analysis[27c0316fa5afc902]::check_crate
  63:     0x7fedd5061d0b - rustc_interface[31ef287528d712d1]::passes::analysis
  64:     0x7fedd63c3aa5 - <rustc_query_system[ad89d02d8d3f889f]::dep_graph::graph::DepGraph<rustc_middle[4ee4417d369392c0]::dep_graph::dep_node::DepKind>>::with_task::<rustc_middle[4ee4417d369392c0]::ty::context::TyCtxt, (), core[3b9d0855137275ad]::result::Result<(), rustc_errors[56f51b9ef828235e]::ErrorGuaranteed>>
  65:     0x7fedd63c2c88 - rustc_query_system[ad89d02d8d3f889f]::query::plumbing::try_execute_query::<rustc_query_impl[22c9b72219a72c97]::plumbing::QueryCtxt, rustc_query_system[ad89d02d8d3f889f]::query::caches::DefaultCache<(), core[3b9d0855137275ad]::result::Result<(), rustc_errors[56f51b9ef828235e]::ErrorGuaranteed>>>
  66:     0x7fedd63c26f0 - rustc_query_system[ad89d02d8d3f889f]::query::plumbing::get_query::<rustc_query_impl[22c9b72219a72c97]::queries::analysis, rustc_query_impl[22c9b72219a72c97]::plumbing::QueryCtxt, rustc_middle[4ee4417d369392c0]::dep_graph::dep_node::DepKind>
  67:     0x7fedd5ea5e93 - <rustc_interface[31ef287528d712d1]::passes::QueryContext>::enter::<rustc_driver[44256f7a0bd74eb9]::run_compiler::{closure#1}::{closure#2}::{closure#2}, core[3b9d0855137275ad]::result::Result<(), rustc_errors[56f51b9ef828235e]::ErrorGuaranteed>>
  68:     0x7fedd5ea2243 - <rustc_interface[31ef287528d712d1]::interface::Compiler>::enter::<rustc_driver[44256f7a0bd74eb9]::run_compiler::{closure#1}::{closure#2}, core[3b9d0855137275ad]::result::Result<core[3b9d0855137275ad]::option::Option<rustc_interface[31ef287528d712d1]::queries::Linker>, rustc_errors[56f51b9ef828235e]::ErrorGuaranteed>>
  69:     0x7fedd5e9d258 - rustc_span[61620759254154b9]::with_source_map::<core[3b9d0855137275ad]::result::Result<(), rustc_errors[56f51b9ef828235e]::ErrorGuaranteed>, rustc_interface[31ef287528d712d1]::interface::run_compiler<core[3b9d0855137275ad]::result::Result<(), rustc_errors[56f51b9ef828235e]::ErrorGuaranteed>, rustc_driver[44256f7a0bd74eb9]::run_compiler::{closure#1}>::{closure#0}::{closure#0}>
  70:     0x7fedd5e9cd45 - <scoped_tls[af245d8716b680cf]::ScopedKey<rustc_span[61620759254154b9]::SessionGlobals>>::set::<rustc_interface[31ef287528d712d1]::interface::run_compiler<core[3b9d0855137275ad]::result::Result<(), rustc_errors[56f51b9ef828235e]::ErrorGuaranteed>, rustc_driver[44256f7a0bd74eb9]::run_compiler::{closure#1}>::{closure#0}, core[3b9d0855137275ad]::result::Result<(), rustc_errors[56f51b9ef828235e]::ErrorGuaranteed>>
  71:     0x7fedd5e9c332 - std[372f5cc4827a3c5c]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[31ef287528d712d1]::util::run_in_thread_pool_with_globals<rustc_interface[31ef287528d712d1]::interface::run_compiler<core[3b9d0855137275ad]::result::Result<(), rustc_errors[56f51b9ef828235e]::ErrorGuaranteed>, rustc_driver[44256f7a0bd74eb9]::run_compiler::{closure#1}>::{closure#0}, core[3b9d0855137275ad]::result::Result<(), rustc_errors[56f51b9ef828235e]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[3b9d0855137275ad]::result::Result<(), rustc_errors[56f51b9ef828235e]::ErrorGuaranteed>>
  72:     0x7fedd64c629a - <<std[372f5cc4827a3c5c]::thread::Builder>::spawn_unchecked_<rustc_interface[31ef287528d712d1]::util::run_in_thread_pool_with_globals<rustc_interface[31ef287528d712d1]::interface::run_compiler<core[3b9d0855137275ad]::result::Result<(), rustc_errors[56f51b9ef828235e]::ErrorGuaranteed>, rustc_driver[44256f7a0bd74eb9]::run_compiler::{closure#1}>::{closure#0}, core[3b9d0855137275ad]::result::Result<(), rustc_errors[56f51b9ef828235e]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[3b9d0855137275ad]::result::Result<(), rustc_errors[56f51b9ef828235e]::ErrorGuaranteed>>::{closure#1} as core[3b9d0855137275ad]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  73:     0x7fedd390adc3 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h838bfab0e0480ae9
                               at /rustc/88c58e3c2c097ebffac425d9e080dcb1aadf790e/library/alloc/src/boxed.rs:2000:9
  74:     0x7fedd390adc3 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h2eba1a8bb719307d
                               at /rustc/88c58e3c2c097ebffac425d9e080dcb1aadf790e/library/alloc/src/boxed.rs:2000:9
  75:     0x7fedd390adc3 - std::sys::unix::thread::Thread::new::thread_start::h33c615f0b38ed275
                               at /rustc/88c58e3c2c097ebffac425d9e080dcb1aadf790e/library/std/src/sys/unix/thread.rs:108:17
  76:     0x7fedd37b3609 - start_thread
                               at /build/glibc-SzIz7B/glibc-2.31/nptl/pthread_create.c:477:8
  77:     0x7fedd36d8133 - clone
                               at /build/glibc-SzIz7B/glibc-2.31/misc/../sysdeps/unix/sysv/linux/x86_64/clone.S:95
  78:                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.68.0-nightly (88c58e3c2 2022-12-26) running on x86_64-unknown-linux-gnu

note: compiler flags: --crate-type bin -C panic=abort -C embed-bitcode=no -C debuginfo=2 -C incremental=[REDACTED] -C link-args=-lc

note: some of the compiler flags provided by cargo are hidden

query stack during panic:
thread panicked while processing panic. aborting.
```