Repository: rust
Issue: thread 'rustc' panicked at 'no entry found for key', compiler/rustc_metadata/src/rmeta/decoder/cstore_impl.rs:547:9
Labels: I-ICE,T-compiler,A-incr-comp,C-bug

### Code

This happens on bjorn3@b18b50c800f3d1756bce9a62f849091743a50fbf. By performing the following steps:

1. Put the following in `config.toml`:

```toml
profile = "compiler"
changelog-seen = 2

[build]
compiler-docs = false

[rust]
codegen-backends = ["llvm", "cranelift"]
parallel-compiler = true
```

2. Build using `./x.py build compiler/rustc_codegen_cranelift`.
3. Remove the `parallel-compiler = true` line.
4. Build again using `./x.py build compiler/rustc_codegen_cranelift`.


### Meta
<!--
If you're using the stable version of the compiler, you should also check if the
bug also exists in the beta or nightly versions.
-->

`rustc --version --verbose`:
N/A

### Error output

```
thread 'rustc' panicked at 'no entry found for key', compiler/rustc_metadata/src/rmeta/decoder/cstore_impl.rs:547:9
```

and

```
thread 'rustc' panicked at 'Illegal read of: 77114', /rustc/0f231250ba7fe3a3f98a18aee9abfd65b104fb92/compiler/rustc_query_system/src/dep_graph/graph.rs:436:25
```

<!--
Include a backtrace in the code block by setting `RUST_BACKTRACE=1` in your
environment. E.g. `RUST_BACKTRACE=1 cargo build`.
-->
<details><summary><strong>Backtrace</strong></summary>
<p>

```
thread 'rustc' panicked at 'no entry found for key', compiler/rustc_metadata/src/rmeta/decoder/cstore_impl.rs:547:9
stack backtrace:
   0: rust_begin_unwind
             at /rustc/0f231250ba7fe3a3f98a18aee9abfd65b104fb92/library/std/src/panicking.rs:584:5
   1: core::panicking::panic_fmt
             at /rustc/0f231250ba7fe3a3f98a18aee9abfd65b104fb92/library/core/src/panicking.rs:143:14
   2: core::panicking::panic_display
             at /rustc/0f231250ba7fe3a3f98a18aee9abfd65b104fb92/library/core/src/panicking.rs:72:5
   3: core::panicking::panic_str
             at /rustc/0f231250ba7fe3a3f98a18aee9abfd65b104fb92/library/core/src/panicking.rs:56:5
   4: core::option::expect_failed
             at /rustc/0f231250ba7fe3a3f98a18aee9abfd65b104fb92/library/core/src/option.rs:1874:5
   5: <rustc_metadata::creader::CStore as rustc_session::cstore::CrateStore>::stable_crate_id_to_crate_num
   6: <rustc_span::span_encoding::Span as rustc_serialize::serialize::Decodable<rustc_query_impl::on_disk_cache::CacheDecoder>>::decode
   7: <alloc::vec::Vec<(rustc_middle::ty::Predicate, rustc_span::span_encoding::Span)> as alloc::vec::spec_from_iter::SpecFromIter<(rustc_middle::ty::Predicate, rustc_span::span_encoding::Span), core::iter::adapters::map::Map<core::ops::range::Range<usize>, <[(rustc_middle::ty::Predicate, rustc_span::span_encoding::Span)] as rustc_middle::ty::codec::RefDecodable<rustc_query_impl::on_disk_cache::CacheDecoder>>::decode::{closure#0}>>>::from_iter
   8: <[(rustc_middle::ty::Predicate, rustc_span::span_encoding::Span)] as rustc_middle::ty::codec::RefDecodable<rustc_query_impl::on_disk_cache::CacheDecoder>>::decode
   9: <rustc_query_impl::on_disk_cache::OnDiskCache>::try_load_query_result::<rustc_middle::ty::generics::GenericPredicates>
  10: <<rustc_query_impl::queries::predicates_of as rustc_query_system::query::config::QueryDescription<rustc_query_impl::plumbing::QueryCtxt>>::TRY_LOAD_FROM_DISK::{closure#0} as core::ops::function::FnOnce<(rustc_query_impl::plumbing::QueryCtxt, rustc_query_system::dep_graph::serialized::SerializedDepNodeIndex)>>::call_once
  11: <rustc_middle::dep_graph::dep_node::DepKind as rustc_query_system::dep_graph::DepKind>::with_deps::<rustc_query_system::query::plumbing::try_load_from_disk_and_cache_in_memory<rustc_query_impl::plumbing::QueryCtxt, rustc_span::def_id::DefId, rustc_middle::ty::generics::GenericPredicates>::{closure#0}, core::option::Option<rustc_middle::ty::generics::GenericPredicates>>
  12: rustc_query_system::query::plumbing::get_query::<rustc_query_impl::queries::predicates_of, rustc_query_impl::plumbing::QueryCtxt>
  13: <rustc_query_impl::Queries as rustc_middle::ty::query::QueryEngine>::predicates_of
  14: <rustc_trait_selection::traits::wf::WfPredicates>::nominal_obligations
  15: <rustc_trait_selection::traits::wf::WfPredicates>::compute
  16: <rustc_trait_selection::traits::fulfill::FulfillProcessor>::process_changed_obligations
  17: <rustc_data_structures::obligation_forest::ObligationForest<rustc_trait_selection::traits::fulfill::PendingPredicateObligation>>::process_obligations::<rustc_trait_selection::traits::fulfill::FulfillProcessor, rustc_data_structures::obligation_forest::Outcome<rustc_trait_selection::traits::fulfill::PendingPredicateObligation, rustc_infer::traits::FulfillmentErrorCode>>
  18: <rustc_trait_selection::traits::fulfill::FulfillmentContext as rustc_infer::traits::engine::TraitEngine>::select_all_or_error
  19: <rustc_typeck::check::fn_ctxt::FnCtxt>::select_all_obligations_or_error
  20: <rustc_infer::infer::InferCtxtBuilder>::enter::<(), <rustc_typeck::check::inherited::InheritedBuilder>::enter<<rustc_typeck::check::wfcheck::CheckWfFcxBuilder>::with_fcx<rustc_typeck::check::wfcheck::check_item_fn::{closure#0}>::{closure#0}, ()>::{closure#0}>
  21: rustc_typeck::check::wfcheck::check_item_fn
  22: rustc_typeck::check::wfcheck::check_item_well_formed
  23: <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, ()>
  24: rustc_query_system::query::plumbing::try_execute_query::<rustc_query_impl::plumbing::QueryCtxt, rustc_query_system::query::caches::DefaultCache<rustc_span::def_id::LocalDefId, ()>>
  25: <rustc_query_impl::Queries as rustc_middle::ty::query::QueryEngine>::check_item_well_formed
  26: rustc_data_structures::sync::par_for_each_in::<&alloc::vec::Vec<rustc_hir::hir::MaybeOwner<&rustc_hir::hir::OwnerInfo>>, <rustc_middle::hir::map::Map>::par_visit_all_item_likes<rustc_typeck::check::wfcheck::CheckTypeWellFormedVisitor>::{closure#0}>
  27: <rustc_session::session::Session>::track_errors::<rustc_typeck::check_crate::{closure#5}, ()>
  28: rustc_typeck::check_crate
  29: rustc_interface::passes::analysis
  30: <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>>
  31: 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>>>
  32: rustc_query_system::query::plumbing::get_query::<rustc_query_impl::queries::analysis, rustc_query_impl::plumbing::QueryCtxt>
  33: <rustc_interface::passes::QueryContext>::enter::<rustc_driver::run_compiler::{closure#1}::{closure#2}::{closure#3}, core::result::Result<(), rustc_errors::ErrorGuaranteed>>
  34: <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>>
  35: 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}>
  36: rustc_interface::interface::create_compiler_and_run::<core::result::Result<(), rustc_errors::ErrorGuaranteed>, rustc_driver::run_compiler::{closure#1}>
  37: <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>>
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

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.61.0-beta.1 (0f231250b 2022-04-05) running on x86_64-unknown-linux-gnu

note: compiler flags: --crate-type dylib -C opt-level=3 -C embed-bitcode=no -C debuginfo=0 -C incremental -C symbol-mangling-version=v0 -Z macro-backtrace -C link-args=-Wl,-z,origin -C link-args=-Wl,-rpath,$ORIGIN/../lib -Z unstable-options -C split-debuginfo=off -C llvm-args=-import-instr-limit=10 -Z binary-dep-depinfo -Z force-unstable-if-unmarked

note: some of the compiler flags provided by cargo are hidden

query stack during panic:
thread 'rustc' panicked at 'Illegal read of: 77114', /rustc/0f231250ba7fe3a3f98a18aee9abfd65b104fb92/compiler/rustc_query_system/src/dep_graph/graph.rs:436:25
stack backtrace:
   0:     0x7fb66a1f11bd - std::backtrace_rs::backtrace::libunwind::trace::h470e55287b882072
                               at /rustc/0f231250ba7fe3a3f98a18aee9abfd65b104fb92/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5
   1:     0x7fb66a1f11bd - std::backtrace_rs::backtrace::trace_unsynchronized::h585533dd9332d6ca
                               at /rustc/0f231250ba7fe3a3f98a18aee9abfd65b104fb92/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
   2:     0x7fb66a1f11bd - std::sys_common::backtrace::_print_fmt::h68d627de986fd8f3
                               at /rustc/0f231250ba7fe3a3f98a18aee9abfd65b104fb92/library/std/src/sys_common/backtrace.rs:66:5
   3:     0x7fb66a1f11bd - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h7fc764eadd4267d2
                               at /rustc/0f231250ba7fe3a3f98a18aee9abfd65b104fb92/library/std/src/sys_common/backtrace.rs:45:22
   4:     0x7fb66a24b00c - core::fmt::write::h3c904a08dbe1bdb8
                               at /rustc/0f231250ba7fe3a3f98a18aee9abfd65b104fb92/library/core/src/fmt/mod.rs:1194:17
   5:     0x7fb66a1e27b1 - std::io::Write::write_fmt::hfbf96c47b9f25fe4
                               at /rustc/0f231250ba7fe3a3f98a18aee9abfd65b104fb92/library/std/src/io/mod.rs:1655:15
   6:     0x7fb66a1f42a5 - std::sys_common::backtrace::_print::h352f43bdf1e6cbc7
                               at /rustc/0f231250ba7fe3a3f98a18aee9abfd65b104fb92/library/std/src/sys_common/backtrace.rs:48:5
   7:     0x7fb66a1f42a5 - std::sys_common::backtrace::print::hc4c2f15a38165690
                               at /rustc/0f231250ba7fe3a3f98a18aee9abfd65b104fb92/library/std/src/sys_common/backtrace.rs:35:9
   8:     0x7fb66a1f42a5 - std::panicking::default_hook::{{closure}}::h45ebbef7cd5073c4
                               at /rustc/0f231250ba7fe3a3f98a18aee9abfd65b104fb92/library/std/src/panicking.rs:295:22
   9:     0x7fb66a1f3f59 - std::panicking::default_hook::h68a8e9623ddbf3dd
                               at /rustc/0f231250ba7fe3a3f98a18aee9abfd65b104fb92/library/std/src/panicking.rs:314:9
  10:     0x7fb66a971b21 - rustc_driver[bd1edd97124f670b]::DEFAULT_HOOK::{closure#0}::{closure#0}
  11:     0x7fb66a1f49f0 - std::panicking::rust_panic_with_hook::h427f017ab8173bd9
                               at /rustc/0f231250ba7fe3a3f98a18aee9abfd65b104fb92/library/std/src/panicking.rs:702:17
  12:     0x7fb66a1f4827 - std::panicking::begin_panic_handler::{{closure}}::h8914d702b07503a8
                               at /rustc/0f231250ba7fe3a3f98a18aee9abfd65b104fb92/library/std/src/panicking.rs:588:13
  13:     0x7fb66a1f1674 - std::sys_common::backtrace::__rust_end_short_backtrace::hef1bcaf60d258acf
                               at /rustc/0f231250ba7fe3a3f98a18aee9abfd65b104fb92/library/std/src/sys_common/backtrace.rs:138:18
  14:     0x7fb66a1f4559 - rust_begin_unwind
                               at /rustc/0f231250ba7fe3a3f98a18aee9abfd65b104fb92/library/std/src/panicking.rs:584:5
  15:     0x7fb66a1b86a3 - core::panicking::panic_fmt::h37e68eb9a66e9072
                               at /rustc/0f231250ba7fe3a3f98a18aee9abfd65b104fb92/library/core/src/panicking.rs:143:14
  16:     0x7fb66c3263e1 - <rustc_middle[501903a7ef1bceab]::dep_graph::dep_node::DepKind as rustc_query_system[5c84a80d11ca95b8]::dep_graph::DepKind>::read_deps::<<rustc_query_system[5c84a80d11ca95b8]::dep_graph::graph::DepGraph<rustc_middle[501903a7ef1bceab]::dep_graph::dep_node::DepKind>>::read_index::{closure#0}>
  17:     0x7fb66c2e7766 - rustc_query_system[5c84a80d11ca95b8]::query::plumbing::get_query::<rustc_query_impl[b25ab6dc71bd10b3]::queries::def_span, rustc_query_impl[b25ab6dc71bd10b3]::plumbing::QueryCtxt>
  18:     0x7fb66c387cce - <rustc_query_impl[b25ab6dc71bd10b3]::Queries as rustc_middle[501903a7ef1bceab]::ty::query::QueryEngine>::def_span
  19:     0x7fb66b312578 - <rustc_span[98c8ef5ecc4a48eb]::def_id::DefId as rustc_query_impl[b25ab6dc71bd10b3]::keys::Key>::default_span
  20:     0x7fb66b37f749 - rustc_query_impl[b25ab6dc71bd10b3]::make_query::predicates_of
  21:     0x7fb66b1b48b9 - <rustc_query_system[5c84a80d11ca95b8]::query::plumbing::QueryState<rustc_span[98c8ef5ecc4a48eb]::def_id::DefId>>::try_collect_active_jobs::<rustc_query_impl[b25ab6dc71bd10b3]::plumbing::QueryCtxt>
  22:     0x7fb66b3c4714 - <rustc_query_impl[b25ab6dc71bd10b3]::Queries>::try_collect_active_jobs
  23:     0x7fb66b32fe1c - <rustc_query_impl[b25ab6dc71bd10b3]::plumbing::QueryCtxt>::try_print_query_stack
  24:     0x7fb66aa53212 - rustc_interface[a40fd7989c51668c]::interface::try_print_query_stack
  25:     0x7fb66a972778 - rustc_driver[bd1edd97124f670b]::report_ice
  26:     0x7fb66a1f49f0 - std::panicking::rust_panic_with_hook::h427f017ab8173bd9
                               at /rustc/0f231250ba7fe3a3f98a18aee9abfd65b104fb92/library/std/src/panicking.rs:702:17
  27:     0x7fb66a1f4827 - std::panicking::begin_panic_handler::{{closure}}::h8914d702b07503a8
                               at /rustc/0f231250ba7fe3a3f98a18aee9abfd65b104fb92/library/std/src/panicking.rs:588:13
  28:     0x7fb66a1f1674 - std::sys_common::backtrace::__rust_end_short_backtrace::hef1bcaf60d258acf
                               at /rustc/0f231250ba7fe3a3f98a18aee9abfd65b104fb92/library/std/src/sys_common/backtrace.rs:138:18
  29:     0x7fb66a1f4559 - rust_begin_unwind
                               at /rustc/0f231250ba7fe3a3f98a18aee9abfd65b104fb92/library/std/src/panicking.rs:584:5
  30:     0x7fb66a1b86a3 - core::panicking::panic_fmt::h37e68eb9a66e9072
                               at /rustc/0f231250ba7fe3a3f98a18aee9abfd65b104fb92/library/core/src/panicking.rs:143:14
  31:     0x7fb66a247e21 - core::panicking::panic_display::h40c2bc66282ca48d
                               at /rustc/0f231250ba7fe3a3f98a18aee9abfd65b104fb92/library/core/src/panicking.rs:72:5
  32:     0x7fb66a247dcb - core::panicking::panic_str::hb7d527b553f48f17
                               at /rustc/0f231250ba7fe3a3f98a18aee9abfd65b104fb92/library/core/src/panicking.rs:56:5
  33:     0x7fb66a1b8516 - core::option::expect_failed::h9b9eb8c14b056411
                               at /rustc/0f231250ba7fe3a3f98a18aee9abfd65b104fb92/library/core/src/option.rs:1874:5
  34:     0x7fb66c3f749a - <rustc_metadata[ad67542d1d48b197]::creader::CStore as rustc_session[1f5a8cd03538dea5]::cstore::CrateStore>::stable_crate_id_to_crate_num
  35:     0x7fb66c378a95 - <rustc_span[98c8ef5ecc4a48eb]::span_encoding::Span as rustc_serialize[970864b38fba0141]::serialize::Decodable<rustc_query_impl[b25ab6dc71bd10b3]::on_disk_cache::CacheDecoder>>::decode
  36:     0x7fb66cdca4ef - <alloc[b5fa684d7c801d72]::vec::Vec<(rustc_middle[501903a7ef1bceab]::ty::Predicate, rustc_span[98c8ef5ecc4a48eb]::span_encoding::Span)> as alloc[b5fa684d7c801d72]::vec::spec_from_iter::SpecFromIter<(rustc_middle[501903a7ef1bceab]::ty::Predicate, rustc_span[98c8ef5ecc4a48eb]::span_encoding::Span), core[bbdc132631682ac2]::iter::adapters::map::Map<core[bbdc132631682ac2]::ops::range::Range<usize>, <[(rustc_middle[501903a7ef1bceab]::ty::Predicate, rustc_span[98c8ef5ecc4a48eb]::span_encoding::Span)] as rustc_middle[501903a7ef1bceab]::ty::codec::RefDecodable<rustc_query_impl[b25ab6dc71bd10b3]::on_disk_cache::CacheDecoder>>::decode::{closure#0}>>>::from_iter
  37:     0x7fb66cd9ec7f - <[(rustc_middle[501903a7ef1bceab]::ty::Predicate, rustc_span[98c8ef5ecc4a48eb]::span_encoding::Span)] as rustc_middle[501903a7ef1bceab]::ty::codec::RefDecodable<rustc_query_impl[b25ab6dc71bd10b3]::on_disk_cache::CacheDecoder>>::decode
  38:     0x7fb66c31cd95 - <rustc_query_impl[b25ab6dc71bd10b3]::on_disk_cache::OnDiskCache>::try_load_query_result::<rustc_middle[501903a7ef1bceab]::ty::generics::GenericPredicates>
  39:     0x7fb66cd8bc40 - <<rustc_query_impl[b25ab6dc71bd10b3]::queries::predicates_of as rustc_query_system[5c84a80d11ca95b8]::query::config::QueryDescription<rustc_query_impl[b25ab6dc71bd10b3]::plumbing::QueryCtxt>>::TRY_LOAD_FROM_DISK::{closure#0} as core[bbdc132631682ac2]::ops::function::FnOnce<(rustc_query_impl[b25ab6dc71bd10b3]::plumbing::QueryCtxt, rustc_query_system[5c84a80d11ca95b8]::dep_graph::serialized::SerializedDepNodeIndex)>>::call_once
  40:     0x7fb66cdbeae3 - <rustc_middle[501903a7ef1bceab]::dep_graph::dep_node::DepKind as rustc_query_system[5c84a80d11ca95b8]::dep_graph::DepKind>::with_deps::<rustc_query_system[5c84a80d11ca95b8]::query::plumbing::try_load_from_disk_and_cache_in_memory<rustc_query_impl[b25ab6dc71bd10b3]::plumbing::QueryCtxt, rustc_span[98c8ef5ecc4a48eb]::def_id::DefId, rustc_middle[501903a7ef1bceab]::ty::generics::GenericPredicates>::{closure#0}, core[bbdc132631682ac2]::option::Option<rustc_middle[501903a7ef1bceab]::ty::generics::GenericPredicates>>
  41:     0x7fb66c2ccc3e - rustc_query_system[5c84a80d11ca95b8]::query::plumbing::get_query::<rustc_query_impl[b25ab6dc71bd10b3]::queries::predicates_of, rustc_query_impl[b25ab6dc71bd10b3]::plumbing::QueryCtxt>
  42:     0x7fb66c38576e - <rustc_query_impl[b25ab6dc71bd10b3]::Queries as rustc_middle[501903a7ef1bceab]::ty::query::QueryEngine>::predicates_of
  43:     0x7fb66c640697 - <rustc_trait_selection[5b2bd839769733ee]::traits::wf::WfPredicates>::nominal_obligations
  44:     0x7fb66c63e2d8 - <rustc_trait_selection[5b2bd839769733ee]::traits::wf::WfPredicates>::compute
  45:     0x7fb66c5f6ed0 - <rustc_trait_selection[5b2bd839769733ee]::traits::fulfill::FulfillProcessor>::process_changed_obligations
  46:     0x7fb66c60af23 - <rustc_data_structures[8be5bd2c4f3986f6]::obligation_forest::ObligationForest<rustc_trait_selection[5b2bd839769733ee]::traits::fulfill::PendingPredicateObligation>>::process_obligations::<rustc_trait_selection[5b2bd839769733ee]::traits::fulfill::FulfillProcessor, rustc_data_structures[8be5bd2c4f3986f6]::obligation_forest::Outcome<rustc_trait_selection[5b2bd839769733ee]::traits::fulfill::PendingPredicateObligation, rustc_infer[e73a70204b9b9ca7]::traits::FulfillmentErrorCode>>
  47:     0x7fb66c5f591a - <rustc_trait_selection[5b2bd839769733ee]::traits::fulfill::FulfillmentContext as rustc_infer[e73a70204b9b9ca7]::traits::engine::TraitEngine>::select_all_or_error
  48:     0x7fb66bd8cdcc - <rustc_typeck[3c6af09b6fee58a6]::check::fn_ctxt::FnCtxt>::select_all_obligations_or_error
  49:     0x7fb66cb1cdcf - <rustc_infer[e73a70204b9b9ca7]::infer::InferCtxtBuilder>::enter::<(), <rustc_typeck[3c6af09b6fee58a6]::check::inherited::InheritedBuilder>::enter<<rustc_typeck[3c6af09b6fee58a6]::check::wfcheck::CheckWfFcxBuilder>::with_fcx<rustc_typeck[3c6af09b6fee58a6]::check::wfcheck::check_item_fn::{closure#0}>::{closure#0}, ()>::{closure#0}>
  50:     0x7fb66cb3dca3 - rustc_typeck[3c6af09b6fee58a6]::check::wfcheck::check_item_fn
  51:     0x7fb66be504e6 - rustc_typeck[3c6af09b6fee58a6]::check::wfcheck::check_item_well_formed
  52:     0x7fb66cdeceff - <rustc_query_system[5c84a80d11ca95b8]::dep_graph::graph::DepGraph<rustc_middle[501903a7ef1bceab]::dep_graph::dep_node::DepKind>>::with_task::<rustc_middle[501903a7ef1bceab]::ty::context::TyCtxt, rustc_span[98c8ef5ecc4a48eb]::def_id::LocalDefId, ()>
  53:     0x7fb66c2a6b12 - rustc_query_system[5c84a80d11ca95b8]::query::plumbing::try_execute_query::<rustc_query_impl[b25ab6dc71bd10b3]::plumbing::QueryCtxt, rustc_query_system[5c84a80d11ca95b8]::query::caches::DefaultCache<rustc_span[98c8ef5ecc4a48eb]::def_id::LocalDefId, ()>>
  54:     0x7fb66c389131 - <rustc_query_impl[b25ab6dc71bd10b3]::Queries as rustc_middle[501903a7ef1bceab]::ty::query::QueryEngine>::check_item_well_formed
  55:     0x7fb66be2fe61 - rustc_data_structures[8be5bd2c4f3986f6]::sync::par_for_each_in::<&alloc[b5fa684d7c801d72]::vec::Vec<rustc_hir[33e6fef3ac53f85c]::hir::MaybeOwner<&rustc_hir[33e6fef3ac53f85c]::hir::OwnerInfo>>, <rustc_middle[501903a7ef1bceab]::hir::map::Map>::par_visit_all_item_likes<rustc_typeck[3c6af09b6fee58a6]::check::wfcheck::CheckTypeWellFormedVisitor>::{closure#0}>
  56:     0x7fb66cb14d22 - <rustc_session[1f5a8cd03538dea5]::session::Session>::track_errors::<rustc_typeck[3c6af09b6fee58a6]::check_crate::{closure#5}, ()>
  57:     0x7fb66cb0638d - rustc_typeck[3c6af09b6fee58a6]::check_crate
  58:     0x7fb66c881af7 - rustc_interface[a40fd7989c51668c]::passes::analysis
  59:     0x7fb66ce06625 - <rustc_query_system[5c84a80d11ca95b8]::dep_graph::graph::DepGraph<rustc_middle[501903a7ef1bceab]::dep_graph::dep_node::DepKind>>::with_task::<rustc_middle[501903a7ef1bceab]::ty::context::TyCtxt, (), core[bbdc132631682ac2]::result::Result<(), rustc_errors[4eb9b1cc555842c]::ErrorGuaranteed>>
  60:     0x7fb66cd47f92 - rustc_query_system[5c84a80d11ca95b8]::query::plumbing::try_execute_query::<rustc_query_impl[b25ab6dc71bd10b3]::plumbing::QueryCtxt, rustc_query_system[5c84a80d11ca95b8]::query::caches::DefaultCache<(), core[bbdc132631682ac2]::result::Result<(), rustc_errors[4eb9b1cc555842c]::ErrorGuaranteed>>>
  61:     0x7fb66cd8aece - rustc_query_system[5c84a80d11ca95b8]::query::plumbing::get_query::<rustc_query_impl[b25ab6dc71bd10b3]::queries::analysis, rustc_query_impl[b25ab6dc71bd10b3]::plumbing::QueryCtxt>
  62:     0x7fb66c847871 - <rustc_interface[a40fd7989c51668c]::passes::QueryContext>::enter::<rustc_driver[bd1edd97124f670b]::run_compiler::{closure#1}::{closure#2}::{closure#3}, core[bbdc132631682ac2]::result::Result<(), rustc_errors[4eb9b1cc555842c]::ErrorGuaranteed>>
  63:     0x7fb66c861a48 - <rustc_interface[a40fd7989c51668c]::interface::Compiler>::enter::<rustc_driver[bd1edd97124f670b]::run_compiler::{closure#1}::{closure#2}, core[bbdc132631682ac2]::result::Result<core[bbdc132631682ac2]::option::Option<rustc_interface[a40fd7989c51668c]::queries::Linker>, rustc_errors[4eb9b1cc555842c]::ErrorGuaranteed>>
  64:     0x7fb66c84702f - rustc_span[98c8ef5ecc4a48eb]::with_source_map::<core[bbdc132631682ac2]::result::Result<(), rustc_errors[4eb9b1cc555842c]::ErrorGuaranteed>, rustc_interface[a40fd7989c51668c]::interface::create_compiler_and_run<core[bbdc132631682ac2]::result::Result<(), rustc_errors[4eb9b1cc555842c]::ErrorGuaranteed>, rustc_driver[bd1edd97124f670b]::run_compiler::{closure#1}>::{closure#1}>
  65:     0x7fb66c862684 - rustc_interface[a40fd7989c51668c]::interface::create_compiler_and_run::<core[bbdc132631682ac2]::result::Result<(), rustc_errors[4eb9b1cc555842c]::ErrorGuaranteed>, rustc_driver[bd1edd97124f670b]::run_compiler::{closure#1}>
  66:     0x7fb66c8457c2 - <scoped_tls[41b0ab949f7428e0]::ScopedKey<rustc_span[98c8ef5ecc4a48eb]::SessionGlobals>>::set::<rustc_interface[a40fd7989c51668c]::interface::run_compiler<core[bbdc132631682ac2]::result::Result<(), rustc_errors[4eb9b1cc555842c]::ErrorGuaranteed>, rustc_driver[bd1edd97124f670b]::run_compiler::{closure#1}>::{closure#0}, core[bbdc132631682ac2]::result::Result<(), rustc_errors[4eb9b1cc555842c]::ErrorGuaranteed>>
  67:     0x7fb66c85b37f - std[33858be22a9b7cb6]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[a40fd7989c51668c]::util::run_in_thread_pool_with_globals<rustc_interface[a40fd7989c51668c]::interface::run_compiler<core[bbdc132631682ac2]::result::Result<(), rustc_errors[4eb9b1cc555842c]::ErrorGuaranteed>, rustc_driver[bd1edd97124f670b]::run_compiler::{closure#1}>::{closure#0}, core[bbdc132631682ac2]::result::Result<(), rustc_errors[4eb9b1cc555842c]::ErrorGuaranteed>>::{closure#0}, core[bbdc132631682ac2]::result::Result<(), rustc_errors[4eb9b1cc555842c]::ErrorGuaranteed>>
  68:     0x7fb66c846ae9 - <<std[33858be22a9b7cb6]::thread::Builder>::spawn_unchecked_<rustc_interface[a40fd7989c51668c]::util::run_in_thread_pool_with_globals<rustc_interface[a40fd7989c51668c]::interface::run_compiler<core[bbdc132631682ac2]::result::Result<(), rustc_errors[4eb9b1cc555842c]::ErrorGuaranteed>, rustc_driver[bd1edd97124f670b]::run_compiler::{closure#1}>::{closure#0}, core[bbdc132631682ac2]::result::Result<(), rustc_errors[4eb9b1cc555842c]::ErrorGuaranteed>>::{closure#0}, core[bbdc132631682ac2]::result::Result<(), rustc_errors[4eb9b1cc555842c]::ErrorGuaranteed>>::{closure#1} as core[bbdc132631682ac2]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  69:     0x7fb66a1febe3 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h03c771d707ec301c
                               at /rustc/0f231250ba7fe3a3f98a18aee9abfd65b104fb92/library/alloc/src/boxed.rs:1861:9
  70:     0x7fb66a1febe3 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h69d26a7c4143e218
                               at /rustc/0f231250ba7fe3a3f98a18aee9abfd65b104fb92/library/alloc/src/boxed.rs:1861:9
  71:     0x7fb66a1febe3 - std::sys::unix::thread::Thread::new::thread_start::hb7638ae1c14a3e83
                               at /rustc/0f231250ba7fe3a3f98a18aee9abfd65b104fb92/library/std/src/sys/unix/thread.rs:108:17
  72:     0x7fb66a129609 - start_thread
                               at /build/glibc-sMfBJT/glibc-2.31/nptl/pthread_create.c:477:8
  73:     0x7fb66a042163 - clone
  74:                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.61.0-beta.1 (0f231250b 2022-04-05) running on x86_64-unknown-linux-gnu

note: compiler flags: --crate-type dylib -C opt-level=3 -C embed-bitcode=no -C debuginfo=0 -C incremental -C symbol-mangling-version=v0 -Z macro-backtrace -C link-args=-Wl,-z,origin -C link-args=-Wl,-rpath,$ORIGIN/../lib -Z unstable-options -C split-debuginfo=off -C llvm-args=-import-instr-limit=10 -Z binary-dep-depinfo -Z force-unstable-if-unmarked

note: some of the compiler flags provided by cargo are hidden

query stack during panic:
end of query stack
thread panicked while panicking. aborting.
rustc exited with signal: 6
error: could not compile `rustc_codegen_cranelift`

Caused by:
  process didn't exit successfully: `/home/gh-bjorn3/rust/build/bootstrap/debug/rustc --crate-name rustc_codegen_cranelift --edition=2021 src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type dylib --emit=dep-info,link -C opt-level=3 -C embed-bitcode=no -C debuginfo=0 -C metadata=bb3e5e3881f6d637 -C extra-filename=-bb3e5e3881f6d637 --out-dir /home/gh-bjorn3/rust/build/x86_64-unknown-linux-gnu/stage0-codegen/x86_64-unknown-linux-gnu/release/deps --target x86_64-unknown-linux-gnu -C incremental=/home/gh-bjorn3/rust/build/x86_64-unknown-linux-gnu/stage0-codegen/x86_64-unknown-linux-gnu/release/incremental -L dependency=/home/gh-bjorn3/rust/build/x86_64-unknown-linux-gnu/stage0-codegen/x86_64-unknown-linux-gnu/release/deps -L dependency=/home/gh-bjorn3/rust/build/x86_64-unknown-linux-gnu/stage0-codegen/release/deps --extern ar=/home/gh-bjorn3/rust/build/x86_64-unknown-linux-gnu/stage0-codegen/x86_64-unknown-linux-gnu/release/deps/libar-a32823f9166c41b2.rlib --extern cranelift_codegen=/home/gh-bjorn3/rust/build/x86_64-unknown-linux-gnu/stage0-codegen/x86_64-unknown-linux-gnu/release/deps/libcranelift_codegen-171163deca1c63c2.rlib --extern cranelift_frontend=/home/gh-bjorn3/rust/build/x86_64-unknown-linux-gnu/stage0-codegen/x86_64-unknown-linux-gnu/release/deps/libcranelift_frontend-5d3aab49daf40986.rlib --extern cranelift_module=/home/gh-bjorn3/rust/build/x86_64-unknown-linux-gnu/stage0-codegen/x86_64-unknown-linux-gnu/release/deps/libcranelift_module-2364d26b6fbd2344.rlib --extern cranelift_native=/home/gh-bjorn3/rust/build/x86_64-unknown-linux-gnu/stage0-codegen/x86_64-unknown-linux-gnu/release/deps/libcranelift_native-3c9fe1ff56c79f9b.rlib --extern cranelift_object=/home/gh-bjorn3/rust/build/x86_64-unknown-linux-gnu/stage0-codegen/x86_64-unknown-linux-gnu/release/deps/libcranelift_object-5f0590ff44290ef9.rlib --extern gimli=/home/gh-bjorn3/rust/build/x86_64-unknown-linux-gnu/stage0-codegen/x86_64-unknown-linux-gnu/release/deps/libgimli-95d03d467b36acba.rlib --extern indexmap=/home/gh-bjorn3/rust/build/x86_64-unknown-linux-gnu/stage0-codegen/x86_64-unknown-linux-gnu/release/deps/libindexmap-8ed13be83b72ada8.rlib --extern object=/home/gh-bjorn3/rust/build/x86_64-unknown-linux-gnu/stage0-codegen/x86_64-unknown-linux-gnu/release/deps/libobject-547060decd267a85.rlib --extern once_cell=/home/gh-bjorn3/rust/build/x86_64-unknown-linux-gnu/stage0-codegen/x86_64-unknown-linux-gnu/release/deps/libonce_cell-5fd9ef4011b2fa23.rlib --extern smallvec=/home/gh-bjorn3/rust/build/x86_64-unknown-linux-gnu/stage0-codegen/x86_64-unknown-linux-gnu/release/deps/libsmallvec-b9de37051b0aca11.rlib --extern target_lexicon=/home/gh-bjorn3/rust/build/x86_64-unknown-linux-gnu/stage0-codegen/x86_64-unknown-linux-gnu/release/deps/libtarget_lexicon-c670cbe71dffd40a.rlib --cfg=bootstrap -Csymbol-mangling-version=v0 -Zmacro-backtrace -Clink-args=-Wl,-z,origin '-Clink-args=-Wl,-rpath,$ORIGIN/../lib' -Zunstable-options -Csplit-debuginfo=off -Cllvm-args=-import-instr-limit=10 -Z binary-dep-depinfo` (exit status: 254)
Build completed unsuccessfully in 0:02:27
```

</p>
</details>