Repository: rust
Issue: Compiler panics while panicking when trying to infer defaulted const generic value
Labels: I-ICE,T-compiler,C-bug,A-const-generics,E-needs-mcve

<!--
Thank you for finding an Internal Compiler Error! 🧊  If possible, try to provide
a minimal verifiable example. You can read "Rust Bug Minimization Patterns" for
how to create smaller examples.

http://blog.pnkfx.org/blog/2019/11/18/rust-bug-minimization-patterns/

-->

I think this error involves const generics + default values + async/await. The compiler produces the correct error message but then panics, and it also panics while panicking causing it to abort.

### Code (disclaimer: the examples here are not enough to reproduce the bug)

I wanted to get a more minimal example but I can't find one that crashes, best I could do is this
```rs
struct TestApp<const B: bool = true>;

struct TestAppBuilder<const B: bool>;

impl<const B: bool> TestAppBuilder<B> {
    fn new() -> Self {
        Self
    }
    
    async fn spawn(self) -> TestApp<B> {
        TestApp
    }
}

impl<const B: bool> TestApp<B> {
    async fn new() -> Self {
        TestAppBuilder::new().spawn().await
    }
}

#[tokio::main]
async fn main() {
    let x = TestApp::spawn().await; 
}
```

[playground](https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=56c128adad0b76a03572ae24867dd1c0)

This example produces the exact same error message as my code does but does not crash. It also has more or less the same "shape" as my code.

I made a branch to freeze this so it can be reproduced, but be warned that it's kind of a big project with sqlx and stuff. Hopefully if you want to pull and build it with `SQLX_OFFLINE=true cargo test` you can witness the panic. If you run into any errors while trying to do this just tell me and I'll help

- [branch](https://github.com/mendess/blind-eternities/tree/rustc-panic)
- [TestApp](https://github.com/mendess/blind-eternities/blob/2f3ad0ba63214e665a3e639514e0a82ac21356bd/server/tests/api/helpers.rs#L32)
- [TestAppBuilder](https://github.com/mendess/blind-eternities/blob/2f3ad0ba63214e665a3e639514e0a82ac21356bd/server/tests/api/helpers.rs#L81)
- [TestApp::spawn](https://github.com/mendess/blind-eternities/blob/2f3ad0ba63214e665a3e639514e0a82ac21356bd/server/tests/api/helpers.rs#L144)
- [usages that causes the ice](https://github.com/mendess/blind-eternities/blob/2f3ad0ba63214e665a3e639514e0a82ac21356bd/server/tests/api/auth.rs#L7)

### 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`:
```
rustc 1.66.0 (69f9c33d7 2022-12-12)
binary: rustc
commit-hash: 69f9c33d71c871fc16ac445211281c6e7a340943
commit-date: 2022-12-12
host: x86_64-unknown-linux-gnu
release: 1.66.0
LLVM version: 15.0.2
```

### Error output

```
error[E0282]: type annotations needed for `TestApp<CREATE_DB>`
 --> server/tests/api/auth.rs:7:9
  |
7 |     let app = TestApp::spawn().await;
  |         ^^^
  |
help: consider giving `app` an explicit type, where the the value of const parameter `CREATE_DB` is specified
  |
7 |     let app: TestApp<CREATE_DB> = TestApp::spawn().await;
  |            ++++++++++++++++++++
```

<!--
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>

```
error[E0282]: type annotations needed for `TestApp<CREATE_DB>`
 --> server/tests/api/auth.rs:7:9
  |
7 |     let app = TestApp::spawn().await;
  |         ^^^
  |
help: consider giving `app` an explicit type, where the the value of const parameter `CREATE_DB` is specified
  |
7 |     let app: TestApp<CREATE_DB> = TestApp::spawn().await;
  |            ++++++++++++++++++++

thread '<unnamed>' panicked at 'const variables should not be hashed: Var(_#1c)', compiler/rustc_middle/src/ty/consts/kind.rs:122:35
stack backtrace:
   0:     0x7fcb2b76c9a0 - std::backtrace_rs::backtrace::libunwind::trace::he615646ea344481f
                               at /rustc/69f9c33d71c871fc16ac445211281c6e7a340943/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5
   1:     0x7fcb2b76c9a0 - std::backtrace_rs::backtrace::trace_unsynchronized::h6ea8eaac68705b9c
                               at /rustc/69f9c33d71c871fc16ac445211281c6e7a340943/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
   2:     0x7fcb2b76c9a0 - std::sys_common::backtrace::_print_fmt::h7ac486a935ce0bf7
                               at /rustc/69f9c33d71c871fc16ac445211281c6e7a340943/library/std/src/sys_common/backtrace.rs:65:5
   3:     0x7fcb2b76c9a0 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h1b5a095d3db2e28f
                               at /rustc/69f9c33d71c871fc16ac445211281c6e7a340943/library/std/src/sys_common/backtrace.rs:44:22
   4:     0x7fcb2b7c898e - core::fmt::write::h445545b92224a1cd
                               at /rustc/69f9c33d71c871fc16ac445211281c6e7a340943/library/core/src/fmt/mod.rs:1209:17
   5:     0x7fcb2b75cb15 - std::io::Write::write_fmt::h55a43474c6520b00
                               at /rustc/69f9c33d71c871fc16ac445211281c6e7a340943/library/std/src/io/mod.rs:1682:15
   6:     0x7fcb2b76c765 - std::sys_common::backtrace::_print::h65d20526fdb736b0
                               at /rustc/69f9c33d71c871fc16ac445211281c6e7a340943/library/std/src/sys_common/backtrace.rs:47:5
   7:     0x7fcb2b76c765 - std::sys_common::backtrace::print::h6555fbe12a1cc41b
                               at /rustc/69f9c33d71c871fc16ac445211281c6e7a340943/library/std/src/sys_common/backtrace.rs:34:9
   8:     0x7fcb2b76f56f - std::panicking::default_hook::{{closure}}::hbdf58083140e7ac6
                               at /rustc/69f9c33d71c871fc16ac445211281c6e7a340943/library/std/src/panicking.rs:267:22
   9:     0x7fcb2b76f2aa - std::panicking::default_hook::haef8271c56b74d85
                               at /rustc/69f9c33d71c871fc16ac445211281c6e7a340943/library/std/src/panicking.rs:286:9
  10:     0x7fcb2b76fd78 - std::panicking::rust_panic_with_hook::hfd45b6b6c12d9fa5
                               at /rustc/69f9c33d71c871fc16ac445211281c6e7a340943/library/std/src/panicking.rs:688:13
  11:     0x7fcb2b76fb17 - std::panicking::begin_panic_handler::{{closure}}::hf591e8609a75bd4b
                               at /rustc/69f9c33d71c871fc16ac445211281c6e7a340943/library/std/src/panicking.rs:579:13
  12:     0x7fcb2b76ce4c - std::sys_common::backtrace::__rust_end_short_backtrace::h81899558795e4ff7
                               at /rustc/69f9c33d71c871fc16ac445211281c6e7a340943/library/std/src/sys_common/backtrace.rs:137:18
  13:     0x7fcb2b76f832 - rust_begin_unwind
                               at /rustc/69f9c33d71c871fc16ac445211281c6e7a340943/library/std/src/panicking.rs:575:5
  14:     0x7fcb2b7c5373 - core::panicking::panic_fmt::h4235fa9b4675b332
                               at /rustc/69f9c33d71c871fc16ac445211281c6e7a340943/library/core/src/panicking.rs:65:14
  15:     0x7fcb2cb7f814 - <rustc_middle[1bbcd7fc39987e50]::ty::consts::kind::InferConst as rustc_data_structures[e8a5264856147ea5]::stable_hasher::HashStable<rustc_query_system[330b635d327008f7]::ich::hcx::StableHashingContext>>::hash_stable
  16:     0x7fcb2d5db169 - <[rustc_middle[1bbcd7fc39987e50]::ty::subst::GenericArg] as rustc_data_structures[e8a5264856147ea5]::stable_hasher::HashStable<rustc_query_system[330b635d327008f7]::ich::hcx::StableHashingContext>>::hash_stable
  17:     0x7fcb2cc68259 - <&rustc_middle[1bbcd7fc39987e50]::ty::list::List<rustc_middle[1bbcd7fc39987e50]::ty::subst::GenericArg> as rustc_data_structures[e8a5264856147ea5]::stable_hasher::HashStable<rustc_query_system[330b635d327008f7]::ich::hcx::StableHashingContext>>::hash_stable
  18:     0x7fcb2f220169 - <rustc_query_system[330b635d327008f7]::ich::hcx::StableHashingContext as rustc_data_structures[e8a5264856147ea5]::intern::InternedHashingContext>::with_def_path_and_no_spans::<<rustc_data_structures[e8a5264856147ea5]::intern::WithStableHash<rustc_middle[1bbcd7fc39987e50]::ty::TyS> as rustc_data_structures[e8a5264856147ea5]::stable_hasher::HashStable<rustc_query_system[330b635d327008f7]::ich::hcx::StableHashingContext>>::hash_stable::{closure#0}>
  19:     0x7fcb2d1d94ae - <rustc_data_structures[e8a5264856147ea5]::intern::Interned<rustc_data_structures[e8a5264856147ea5]::intern::WithStableHash<rustc_middle[1bbcd7fc39987e50]::ty::TyS>> as rustc_data_structures[e8a5264856147ea5]::stable_hasher::HashStable<rustc_query_system[330b635d327008f7]::ich::hcx::StableHashingContext>>::hash_stable
  20:     0x7fcb2cd8c7c7 - <[rustc_middle[1bbcd7fc39987e50]::ty::context::GeneratorInteriorTypeCause] as rustc_data_structures[e8a5264856147ea5]::stable_hasher::HashStable<rustc_query_system[330b635d327008f7]::ich::hcx::StableHashingContext>>::hash_stable
  21:     0x7fcb2cd8bbf5 - rustc_query_system[330b635d327008f7]::dep_graph::graph::hash_result::<&rustc_middle[1bbcd7fc39987e50]::ty::context::TypeckResults>
  22:     0x7fcb2cd92329 - <rustc_query_system[330b635d327008f7]::dep_graph::graph::DepGraph<rustc_middle[1bbcd7fc39987e50]::dep_graph::dep_node::DepKind>>::with_task::<rustc_middle[1bbcd7fc39987e50]::ty::context::TyCtxt, rustc_span[14998722174c1bca]::def_id::LocalDefId, &rustc_middle[1bbcd7fc39987e50]::ty::context::TypeckResults>
  23:     0x7fcb2cd8a391 - rustc_query_system[330b635d327008f7]::query::plumbing::try_execute_query::<rustc_query_impl[969f89a88b0ee9ca]::plumbing::QueryCtxt, rustc_query_system[330b635d327008f7]::query::caches::DefaultCache<rustc_span[14998722174c1bca]::def_id::LocalDefId, &rustc_middle[1bbcd7fc39987e50]::ty::context::TypeckResults>>
  24:     0x7fcb2e0f3788 - rustc_data_structures[e8a5264856147ea5]::sync::par_for_each_in::<&[rustc_span[14998722174c1bca]::def_id::LocalDefId], <rustc_middle[1bbcd7fc39987e50]::hir::map::Map>::par_body_owners<rustc_hir_typeck[2807e795ee0416c8]::typeck_item_bodies::{closure#0}>::{closure#0}>
  25:     0x7fcb2e0f3463 - rustc_hir_typeck[2807e795ee0416c8]::typeck_item_bodies
  26:     0x7fcb2dfed369 - <rustc_query_system[330b635d327008f7]::dep_graph::graph::DepGraph<rustc_middle[1bbcd7fc39987e50]::dep_graph::dep_node::DepKind>>::with_task::<rustc_middle[1bbcd7fc39987e50]::ty::context::TyCtxt, (), ()>
  27:     0x7fcb2dfec30d - rustc_query_system[330b635d327008f7]::query::plumbing::try_execute_query::<rustc_query_impl[969f89a88b0ee9ca]::plumbing::QueryCtxt, rustc_query_system[330b635d327008f7]::query::caches::DefaultCache<(), ()>>
  28:     0x7fcb2dfebc97 - rustc_query_system[330b635d327008f7]::query::plumbing::get_query::<rustc_query_impl[969f89a88b0ee9ca]::queries::typeck_item_bodies, rustc_query_impl[969f89a88b0ee9ca]::plumbing::QueryCtxt>
  29:     0x7fcb2cd0cc6a - <rustc_session[87e5e219eb43521c]::session::Session>::time::<(), rustc_hir_analysis[ad9e1d48ad6d8787]::check_crate::{closure#7}>
  30:     0x7fcb2cd0be1b - rustc_hir_analysis[ad9e1d48ad6d8787]::check_crate
  31:     0x7fcb2cd0ba4b - rustc_interface[ee1a3f92e887e004]::passes::analysis
  32:     0x7fcb2e1499ce - <rustc_query_system[330b635d327008f7]::dep_graph::graph::DepGraph<rustc_middle[1bbcd7fc39987e50]::dep_graph::dep_node::DepKind>>::with_task::<rustc_middle[1bbcd7fc39987e50]::ty::context::TyCtxt, (), core[b97a30f8df81432d]::result::Result<(), rustc_errors[21897ed46328f955]::ErrorGuaranteed>>
  33:     0x7fcb2e148d44 - rustc_query_system[330b635d327008f7]::query::plumbing::try_execute_query::<rustc_query_impl[969f89a88b0ee9ca]::plumbing::QueryCtxt, rustc_query_system[330b635d327008f7]::query::caches::DefaultCache<(), core[b97a30f8df81432d]::result::Result<(), rustc_errors[21897ed46328f955]::ErrorGuaranteed>>>
  34:     0x7fcb2e1487c7 - rustc_query_system[330b635d327008f7]::query::plumbing::get_query::<rustc_query_impl[969f89a88b0ee9ca]::queries::analysis, rustc_query_impl[969f89a88b0ee9ca]::plumbing::QueryCtxt>
  35:     0x7fcb2dc8aacd - <rustc_interface[ee1a3f92e887e004]::passes::QueryContext>::enter::<rustc_driver[9c4183344b2d0066]::run_compiler::{closure#1}::{closure#2}::{closure#3}, core[b97a30f8df81432d]::result::Result<(), rustc_errors[21897ed46328f955]::ErrorGuaranteed>>
  36:     0x7fcb2dc86f7f - <rustc_interface[ee1a3f92e887e004]::interface::Compiler>::enter::<rustc_driver[9c4183344b2d0066]::run_compiler::{closure#1}::{closure#2}, core[b97a30f8df81432d]::result::Result<core[b97a30f8df81432d]::option::Option<rustc_interface[ee1a3f92e887e004]::queries::Linker>, rustc_errors[21897ed46328f955]::ErrorGuaranteed>>
  37:     0x7fcb2dc7eac2 - rustc_span[14998722174c1bca]::with_source_map::<core[b97a30f8df81432d]::result::Result<(), rustc_errors[21897ed46328f955]::ErrorGuaranteed>, rustc_interface[ee1a3f92e887e004]::interface::run_compiler<core[b97a30f8df81432d]::result::Result<(), rustc_errors[21897ed46328f955]::ErrorGuaranteed>, rustc_driver[9c4183344b2d0066]::run_compiler::{closure#1}>::{closure#0}::{closure#1}>
  38:     0x7fcb2dc7e5b9 - <scoped_tls[23afcff80b89ba49]::ScopedKey<rustc_span[14998722174c1bca]::SessionGlobals>>::set::<rustc_interface[ee1a3f92e887e004]::interface::run_compiler<core[b97a30f8df81432d]::result::Result<(), rustc_errors[21897ed46328f955]::ErrorGuaranteed>, rustc_driver[9c4183344b2d0066]::run_compiler::{closure#1}>::{closure#0}, core[b97a30f8df81432d]::result::Result<(), rustc_errors[21897ed46328f955]::ErrorGuaranteed>>
  39:     0x7fcb2dc7dbc8 - std[bbad73ae434e23e5]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[ee1a3f92e887e004]::util::run_in_thread_pool_with_globals<rustc_interface[ee1a3f92e887e004]::interface::run_compiler<core[b97a30f8df81432d]::result::Result<(), rustc_errors[21897ed46328f955]::ErrorGuaranteed>, rustc_driver[9c4183344b2d0066]::run_compiler::{closure#1}>::{closure#0}, core[b97a30f8df81432d]::result::Result<(), rustc_errors[21897ed46328f955]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[b97a30f8df81432d]::result::Result<(), rustc_errors[21897ed46328f955]::ErrorGuaranteed>>
  40:     0x7fcb2dc7d8ec - <<std[bbad73ae434e23e5]::thread::Builder>::spawn_unchecked_<rustc_interface[ee1a3f92e887e004]::util::run_in_thread_pool_with_globals<rustc_interface[ee1a3f92e887e004]::interface::run_compiler<core[b97a30f8df81432d]::result::Result<(), rustc_errors[21897ed46328f955]::ErrorGuaranteed>, rustc_driver[9c4183344b2d0066]::run_compiler::{closure#1}>::{closure#0}, core[b97a30f8df81432d]::result::Result<(), rustc_errors[21897ed46328f955]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[b97a30f8df81432d]::result::Result<(), rustc_errors[21897ed46328f955]::ErrorGuaranteed>>::{closure#1} as core[b97a30f8df81432d]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  41:     0x7fcb2f6276a3 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h4273f95ec44459b3
                               at /rustc/69f9c33d71c871fc16ac445211281c6e7a340943/library/alloc/src/boxed.rs:1987:9
  42:     0x7fcb2f6276a3 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h70f28fa4ddc269e5
                               at /rustc/69f9c33d71c871fc16ac445211281c6e7a340943/library/alloc/src/boxed.rs:1987:9
  43:     0x7fcb2f6276a3 - std::sys::unix::thread::Thread::new::thread_start::h85a9c16b988e2bd0
                               at /rustc/69f9c33d71c871fc16ac445211281c6e7a340943/library/std/src/sys/unix/thread.rs:108:17
  44:     0x7fcb2b5198fd - <unknown>
  45:     0x7fcb2b59ba60 - <unknown>
  46:                0x0 - <unknown>
thread '<unnamed>' panicked at 'const variables should not be hashed: Var(_#1c)', compiler/rustc_middle/src/ty/consts/kind.rs:122:35
stack backtrace:
   0:     0x7fcb2b76c9a0 - std::backtrace_rs::backtrace::libunwind::trace::he615646ea344481f
                               at /rustc/69f9c33d71c871fc16ac445211281c6e7a340943/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5
   1:     0x7fcb2b76c9a0 - std::backtrace_rs::backtrace::trace_unsynchronized::h6ea8eaac68705b9c
                               at /rustc/69f9c33d71c871fc16ac445211281c6e7a340943/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
   2:     0x7fcb2b76c9a0 - std::sys_common::backtrace::_print_fmt::h7ac486a935ce0bf7
                               at /rustc/69f9c33d71c871fc16ac445211281c6e7a340943/library/std/src/sys_common/backtrace.rs:65:5
   3:     0x7fcb2b76c9a0 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h1b5a095d3db2e28f
                               at /rustc/69f9c33d71c871fc16ac445211281c6e7a340943/library/std/src/sys_common/backtrace.rs:44:22
   4:     0x7fcb2b7c898e - core::fmt::write::h445545b92224a1cd
                               at /rustc/69f9c33d71c871fc16ac445211281c6e7a340943/library/core/src/fmt/mod.rs:1209:17
   5:     0x7fcb2b75cb15 - std::io::Write::write_fmt::h55a43474c6520b00
                               at /rustc/69f9c33d71c871fc16ac445211281c6e7a340943/library/std/src/io/mod.rs:1682:15
   6:     0x7fcb2b76c765 - std::sys_common::backtrace::_print::h65d20526fdb736b0
                               at /rustc/69f9c33d71c871fc16ac445211281c6e7a340943/library/std/src/sys_common/backtrace.rs:47:5
   7:     0x7fcb2b76c765 - std::sys_common::backtrace::print::h6555fbe12a1cc41b
                               at /rustc/69f9c33d71c871fc16ac445211281c6e7a340943/library/std/src/sys_common/backtrace.rs:34:9
   8:     0x7fcb2b76f56f - std::panicking::default_hook::{{closure}}::hbdf58083140e7ac6
                               at /rustc/69f9c33d71c871fc16ac445211281c6e7a340943/library/std/src/panicking.rs:267:22
   9:     0x7fcb2b76f2aa - std::panicking::default_hook::haef8271c56b74d85
                               at /rustc/69f9c33d71c871fc16ac445211281c6e7a340943/library/std/src/panicking.rs:286:9
  10:     0x7fcb2b76fd78 - std::panicking::rust_panic_with_hook::hfd45b6b6c12d9fa5
                               at /rustc/69f9c33d71c871fc16ac445211281c6e7a340943/library/std/src/panicking.rs:688:13
  11:     0x7fcb2b76fb17 - std::panicking::begin_panic_handler::{{closure}}::hf591e8609a75bd4b
                               at /rustc/69f9c33d71c871fc16ac445211281c6e7a340943/library/std/src/panicking.rs:579:13
  12:     0x7fcb2b76ce4c - std::sys_common::backtrace::__rust_end_short_backtrace::h81899558795e4ff7
                               at /rustc/69f9c33d71c871fc16ac445211281c6e7a340943/library/std/src/sys_common/backtrace.rs:137:18
  13:     0x7fcb2b76f832 - rust_begin_unwind
                               at /rustc/69f9c33d71c871fc16ac445211281c6e7a340943/library/std/src/panicking.rs:575:5
  14:     0x7fcb2b7c5373 - core::panicking::panic_fmt::h4235fa9b4675b332
                               at /rustc/69f9c33d71c871fc16ac445211281c6e7a340943/library/core/src/panicking.rs:65:14
  15:     0x7fcb2cb7f814 - <rustc_middle[1bbcd7fc39987e50]::ty::consts::kind::InferConst as rustc_data_structures[e8a5264856147ea5]::stable_hasher::HashStable<rustc_query_system[330b635d327008f7]::ich::hcx::StableHashingContext>>::hash_stable
  16:     0x7fcb2d5db169 - <[rustc_middle[1bbcd7fc39987e50]::ty::subst::GenericArg] as rustc_data_structures[e8a5264856147ea5]::stable_hasher::HashStable<rustc_query_system[330b635d327008f7]::ich::hcx::StableHashingContext>>::hash_stable
  17:     0x7fcb2cc68259 - <&rustc_middle[1bbcd7fc39987e50]::ty::list::List<rustc_middle[1bbcd7fc39987e50]::ty::subst::GenericArg> as rustc_data_structures[e8a5264856147ea5]::stable_hasher::HashStable<rustc_query_system[330b635d327008f7]::ich::hcx::StableHashingContext>>::hash_stable
  18:     0x7fcb2f220169 - <rustc_query_system[330b635d327008f7]::ich::hcx::StableHashingContext as rustc_data_structures[e8a5264856147ea5]::intern::InternedHashingContext>::with_def_path_and_no_spans::<<rustc_data_structures[e8a5264856147ea5]::intern::WithStableHash<rustc_middle[1bbcd7fc39987e50]::ty::TyS> as rustc_data_structures[e8a5264856147ea5]::stable_hasher::HashStable<rustc_query_system[330b635d327008f7]::ich::hcx::StableHashingContext>>::hash_stable::{closure#0}>
  19:     0x7fcb2d1d94ae - <rustc_data_structures[e8a5264856147ea5]::intern::Interned<rustc_data_structures[e8a5264856147ea5]::intern::WithStableHash<rustc_middle[1bbcd7fc39987e50]::ty::TyS>> as rustc_data_structures[e8a5264856147ea5]::stable_hasher::HashStable<rustc_query_system[330b635d327008f7]::ich::hcx::StableHashingContext>>::hash_stable
  20:     0x7fcb2f220236 - <rustc_query_system[330b635d327008f7]::ich::hcx::StableHashingContext as rustc_data_structures[e8a5264856147ea5]::intern::InternedHashingContext>::with_def_path_and_no_spans::<<rustc_data_structures[e8a5264856147ea5]::intern::WithStableHash<rustc_middle[1bbcd7fc39987e50]::ty::TyS> as rustc_data_structures[e8a5264856147ea5]::stable_hasher::HashStable<rustc_query_system[330b635d327008f7]::ich::hcx::StableHashingContext>>::hash_stable::{closure#0}>
  21:     0x7fcb2d1d94ae - <rustc_data_structures[e8a5264856147ea5]::intern::Interned<rustc_data_structures[e8a5264856147ea5]::intern::WithStableHash<rustc_middle[1bbcd7fc39987e50]::ty::TyS>> as rustc_data_structures[e8a5264856147ea5]::stable_hasher::HashStable<rustc_query_system[330b635d327008f7]::ich::hcx::StableHashingContext>>::hash_stable
  22:     0x7fcb2cd8c7c7 - <[rustc_middle[1bbcd7fc39987e50]::ty::context::GeneratorInteriorTypeCause] as rustc_data_structures[e8a5264856147ea5]::stable_hasher::HashStable<rustc_query_system[330b635d327008f7]::ich::hcx::StableHashingContext>>::hash_stable
  23:     0x7fcb2cd8bbf5 - rustc_query_system[330b635d327008f7]::dep_graph::graph::hash_result::<&rustc_middle[1bbcd7fc39987e50]::ty::context::TypeckResults>
  24:     0x7fcb2cd92329 - <rustc_query_system[330b635d327008f7]::dep_graph::graph::DepGraph<rustc_middle[1bbcd7fc39987e50]::dep_graph::dep_node::DepKind>>::with_task::<rustc_middle[1bbcd7fc39987e50]::ty::context::TyCtxt, rustc_span[14998722174c1bca]::def_id::LocalDefId, &rustc_middle[1bbcd7fc39987e50]::ty::context::TypeckResults>
  25:     0x7fcb2cd8a391 - rustc_query_system[330b635d327008f7]::query::plumbing::try_execute_query::<rustc_query_impl[969f89a88b0ee9ca]::plumbing::QueryCtxt, rustc_query_system[330b635d327008f7]::query::caches::DefaultCache<rustc_span[14998722174c1bca]::def_id::LocalDefId, &rustc_middle[1bbcd7fc39987e50]::ty::context::TypeckResults>>
  26:     0x7fcb2e0f3788 - rustc_data_structures[e8a5264856147ea5]::sync::par_for_each_in::<&[rustc_span[14998722174c1bca]::def_id::LocalDefId], <rustc_middle[1bbcd7fc39987e50]::hir::map::Map>::par_body_owners<rustc_hir_typeck[2807e795ee0416c8]::typeck_item_bodies::{closure#0}>::{closure#0}>
  27:     0x7fcb2e0f3463 - rustc_hir_typeck[2807e795ee0416c8]::typeck_item_bodies
  28:     0x7fcb2dfed369 - <rustc_query_system[330b635d327008f7]::dep_graph::graph::DepGraph<rustc_middle[1bbcd7fc39987e50]::dep_graph::dep_node::DepKind>>::with_task::<rustc_middle[1bbcd7fc39987e50]::ty::context::TyCtxt, (), ()>
  29:     0x7fcb2dfec30d - rustc_query_system[330b635d327008f7]::query::plumbing::try_execute_query::<rustc_query_impl[969f89a88b0ee9ca]::plumbing::QueryCtxt, rustc_query_system[330b635d327008f7]::query::caches::DefaultCache<(), ()>>
  30:     0x7fcb2dfebc97 - rustc_query_system[330b635d327008f7]::query::plumbing::get_query::<rustc_query_impl[969f89a88b0ee9ca]::queries::typeck_item_bodies, rustc_query_impl[969f89a88b0ee9ca]::plumbing::QueryCtxt>
  31:     0x7fcb2cd0cc6a - <rustc_session[87e5e219eb43521c]::session::Session>::time::<(), rustc_hir_analysis[ad9e1d48ad6d8787]::check_crate::{closure#7}>
  32:     0x7fcb2cd0be1b - rustc_hir_analysis[ad9e1d48ad6d8787]::check_crate
  33:     0x7fcb2cd0ba4b - rustc_interface[ee1a3f92e887e004]::passes::analysis
  34:     0x7fcb2e1499ce - <rustc_query_system[330b635d327008f7]::dep_graph::graph::DepGraph<rustc_middle[1bbcd7fc39987e50]::dep_graph::dep_node::DepKind>>::with_task::<rustc_middle[1bbcd7fc39987e50]::ty::context::TyCtxt, (), core[b97a30f8df81432d]::result::Result<(), rustc_errors[21897ed46328f955]::ErrorGuaranteed>>
  35:     0x7fcb2e148d44 - rustc_query_system[330b635d327008f7]::query::plumbing::try_execute_query::<rustc_query_impl[969f89a88b0ee9ca]::plumbing::QueryCtxt, rustc_query_system[330b635d327008f7]::query::caches::DefaultCache<(), core[b97a30f8df81432d]::result::Result<(), rustc_errors[21897ed46328f955]::ErrorGuaranteed>>>
  36:     0x7fcb2e1487c7 - rustc_query_system[330b635d327008f7]::query::plumbing::get_query::<rustc_query_impl[969f89a88b0ee9ca]::queries::analysis, rustc_query_impl[969f89a88b0ee9ca]::plumbing::QueryCtxt>
  37:     0x7fcb2dc8aacd - <rustc_interface[ee1a3f92e887e004]::passes::QueryContext>::enter::<rustc_driver[9c4183344b2d0066]::run_compiler::{closure#1}::{closure#2}::{closure#3}, core[b97a30f8df81432d]::result::Result<(), rustc_errors[21897ed46328f955]::ErrorGuaranteed>>
  38:     0x7fcb2dc86f7f - <rustc_interface[ee1a3f92e887e004]::interface::Compiler>::enter::<rustc_driver[9c4183344b2d0066]::run_compiler::{closure#1}::{closure#2}, core[b97a30f8df81432d]::result::Result<core[b97a30f8df81432d]::option::Option<rustc_interface[ee1a3f92e887e004]::queries::Linker>, rustc_errors[21897ed46328f955]::ErrorGuaranteed>>
  39:     0x7fcb2dc7eac2 - rustc_span[14998722174c1bca]::with_source_map::<core[b97a30f8df81432d]::result::Result<(), rustc_errors[21897ed46328f955]::ErrorGuaranteed>, rustc_interface[ee1a3f92e887e004]::interface::run_compiler<core[b97a30f8df81432d]::result::Result<(), rustc_errors[21897ed46328f955]::ErrorGuaranteed>, rustc_driver[9c4183344b2d0066]::run_compiler::{closure#1}>::{closure#0}::{closure#1}>
  40:     0x7fcb2dc7e5b9 - <scoped_tls[23afcff80b89ba49]::ScopedKey<rustc_span[14998722174c1bca]::SessionGlobals>>::set::<rustc_interface[ee1a3f92e887e004]::interface::run_compiler<core[b97a30f8df81432d]::result::Result<(), rustc_errors[21897ed46328f955]::ErrorGuaranteed>, rustc_driver[9c4183344b2d0066]::run_compiler::{closure#1}>::{closure#0}, core[b97a30f8df81432d]::result::Result<(), rustc_errors[21897ed46328f955]::ErrorGuaranteed>>
  41:     0x7fcb2dc7dbc8 - std[bbad73ae434e23e5]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[ee1a3f92e887e004]::util::run_in_thread_pool_with_globals<rustc_interface[ee1a3f92e887e004]::interface::run_compiler<core[b97a30f8df81432d]::result::Result<(), rustc_errors[21897ed46328f955]::ErrorGuaranteed>, rustc_driver[9c4183344b2d0066]::run_compiler::{closure#1}>::{closure#0}, core[b97a30f8df81432d]::result::Result<(), rustc_errors[21897ed46328f955]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[b97a30f8df81432d]::result::Result<(), rustc_errors[21897ed46328f955]::ErrorGuaranteed>>
  42:     0x7fcb2dc7d8ec - <<std[bbad73ae434e23e5]::thread::Builder>::spawn_unchecked_<rustc_interface[ee1a3f92e887e004]::util::run_in_thread_pool_with_globals<rustc_interface[ee1a3f92e887e004]::interface::run_compiler<core[b97a30f8df81432d]::result::Result<(), rustc_errors[21897ed46328f955]::ErrorGuaranteed>, rustc_driver[9c4183344b2d0066]::run_compiler::{closure#1}>::{closure#0}, core[b97a30f8df81432d]::result::Result<(), rustc_errors[21897ed46328f955]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[b97a30f8df81432d]::result::Result<(), rustc_errors[21897ed46328f955]::ErrorGuaranteed>>::{closure#1} as core[b97a30f8df81432d]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  43:     0x7fcb2f6276a3 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h4273f95ec44459b3
                               at /rustc/69f9c33d71c871fc16ac445211281c6e7a340943/library/alloc/src/boxed.rs:1987:9
  44:     0x7fcb2f6276a3 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h70f28fa4ddc269e5
                               at /rustc/69f9c33d71c871fc16ac445211281c6e7a340943/library/alloc/src/boxed.rs:1987:9
  45:     0x7fcb2f6276a3 - std::sys::unix::thread::Thread::new::thread_start::h85a9c16b988e2bd0
                               at /rustc/69f9c33d71c871fc16ac445211281c6e7a340943/library/std/src/sys/unix/thread.rs:108:17
  46:     0x7fcb2b5198fd - <unknown>
  47:     0x7fcb2b59ba60 - <unknown>
  48:                0x0 - <unknown>
thread panicked while panicking. aborting.
error: could not compile `blind-eternities` due to previous error

Caused by:
  process didn't exit successfully: `rustc --crate-name api --edition=2021 server/tests/api/main.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --emit=dep-info,link -C embed-bitcode=no -C debuginfo=2 --test -C metadata=d773e82d3948d471 -C extra-filename=-d773e82d3948d471 --out-dir /home/mendess/projects/blind-eternities/target/debug/deps -C incremental=/home/mendess/projects/blind-eternities/target/debug/incremental -L dependency=/home/mendess/projects/blind-eternities/target/debug/deps --extern actix_rt=/home/mendess/projects/blind-eternities/target/debug/deps/libactix_rt-1ff832d94107fdcc.rlib --extern actix_web=/home/mendess/projects/blind-eternities/target/debug/deps/libactix_web-d571348fa32b7051.rlib --extern actix_web_httpauth=/home/mendess/projects/blind-eternities/target/debug/deps/libactix_web_httpauth-d480b83b6bd3d7c3.rlib --extern anyhow=/home/mendess/projects/blind-eternities/target/debug/deps/libanyhow-be5719b522b1f4de.rlib --extern argon2=/home/mendess/projects/blind-eternities/target/debug/deps/libargon2-a2d443ce01a207c3.rlib --extern blind_eternities=/home/mendess/projects/blind-eternities/target/debug/deps/libblind_eternities-0ad37b240045c3e5.rlib --extern chrono=/home/mendess/projects/blind-eternities/target/debug/deps/libchrono-f3f4552b058b6b87.rlib --extern common=/home/mendess/projects/blind-eternities/target/debug/deps/libcommon-3a37dc867d548259.rlib --extern config=/home/mendess/projects/blind-eternities/target/debug/deps/libconfig-33ae0cd3992f0f16.rlib --extern fake=/home/mendess/projects/blind-eternities/target/debug/deps/libfake-8fbb9e6f871d5a47.rlib --extern futures=/home/mendess/projects/blind-eternities/target/debug/deps/libfutures-f551f786a48d0bf8.rlib --extern itertools=/home/mendess/projects/blind-eternities/target/debug/deps/libitertools-bbd6fced70bf804c.rlib --extern once_cell=/home/mendess/projects/blind-eternities/target/debug/deps/libonce_cell-74f5cb165571a6d8.rlib --extern proptest=/home/mendess/projects/blind-eternities/target/debug/deps/libproptest-94ad0ecff3a9b790.rlib --extern regex=/home/mendess/projects/blind-eternities/target/debug/deps/libregex-b1ca01a0c15b9e0a.rlib --extern reqwest=/home/mendess/projects/blind-eternities/target/debug/deps/libreqwest-0f04fb0c6868fdcc.rlib --extern serde=/home/mendess/projects/blind-eternities/target/debug/deps/libserde-d8124c764c9c1d26.rlib --extern serde_json=/home/mendess/projects/blind-eternities/target/debug/deps/libserde_json-0ebe3539e614b94e.rlib --extern spark_protocol=/home/mendess/projects/blind-eternities/target/debug/deps/libspark_protocol-711466141b16a618.rlib --extern sqlx=/home/mendess/projects/blind-eternities/target/debug/deps/libsqlx-2a7e8a174b68feb9.rlib --extern thiserror=/home/mendess/projects/blind-eternities/target/debug/deps/libthiserror-2bd7be1e9ca91b2a.rlib --extern tokio=/home/mendess/projects/blind-eternities/target/debug/deps/libtokio-9ec498aaec3b9580.rlib --extern tracing=/home/mendess/projects/blind-eternities/target/debug/deps/libtracing-e916e711e8626641.rlib --extern tracing_actix_web=/home/mendess/projects/blind-eternities/target/debug/deps/libtracing_actix_web-e4289f535b42be2e.rlib --extern tracing_bunyan_formatter=/home/mendess/projects/blind-eternities/target/debug/deps/libtracing_bunyan_formatter-b2b629a65c87cd8f.rlib --extern tracing_futures=/home/mendess/projects/blind-eternities/target/debug/deps/libtracing_futures-352a838128d44a0c.rlib --extern tracing_log=/home/mendess/projects/blind-eternities/target/debug/deps/libtracing_log-f8f09924991ad816.rlib --extern tracing_subscriber=/home/mendess/projects/blind-eternities/target/debug/deps/libtracing_subscriber-29eaf4205844d015.rlib --extern uuid=/home/mendess/projects/blind-eternities/target/debug/deps/libuuid-d84929e249525db1.rlib -L native=/home/mendess/projects/blind-eternities/target/debug/build/zstd-sys-f378d05299fd4415/out -L native=/home/mendess/projects/blind-eternities/target/debug/build/ring-8e9058ae69188597/out` (signal: 6, SIGABRT: process abort signal)
```

</p>
</details>