thread 'rustc' panicked at compiler/rustc_infer/src/infer/mod.rs:956:17: Box stack backtrace: 0: 0x7f2bfcdfbb55 - std::backtrace_rs::backtrace::libunwind::trace::h39aa7bbcf61112e7 at /rustc/1cec373f65eb76e8e4b4d1847213cf3ec6c292b6/library/std/src/../../backtrace/src/backtrace/libunwind.rs:105:5 1: 0x7f2bfcdfbb55 - std::backtrace_rs::backtrace::trace_unsynchronized::hc85da789d7f1d5d2 at /rustc/1cec373f65eb76e8e4b4d1847213cf3ec6c292b6/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 2: 0x7f2bfcdfbb55 - std::backtrace::Backtrace::create::hcb33de73690a8229 at /rustc/1cec373f65eb76e8e4b4d1847213cf3ec6c292b6/library/std/src/backtrace.rs:331:13 3: 0x7f2bfcdfbaa5 - std::backtrace::Backtrace::force_capture::hfc740aded7593d99 at /rustc/1cec373f65eb76e8e4b4d1847213cf3ec6c292b6/library/std/src/backtrace.rs:312:9 4: 0x7f2bf986db73 - std[531770c5e2e8d301]::panicking::update_hook::>::{closure#0} 5: 0x7f2bfce16b2c - as core::ops::function::Fn>::call::h6d2f4133a0440d99 at /rustc/1cec373f65eb76e8e4b4d1847213cf3ec6c292b6/library/alloc/src/boxed.rs:2032:9 6: 0x7f2bfce16b2c - std::panicking::rust_panic_with_hook::h7c86743fcac7c36d at /rustc/1cec373f65eb76e8e4b4d1847213cf3ec6c292b6/library/std/src/panicking.rs:792:13 7: 0x7f2bf989cf54 - std[531770c5e2e8d301]::panicking::begin_panic::::{closure#0} 8: 0x7f2bf9899bd6 - std[531770c5e2e8d301]::sys_common::backtrace::__rust_end_short_backtrace::::{closure#0}, !> 9: 0x7f2bf98998b6 - std[531770c5e2e8d301]::panicking::begin_panic:: 10: 0x7f2bf98a5f81 - ::emit_producing_guarantee 11: 0x7f2bf9ae55b8 - ::span_bug:: 12: 0x7f2bf9b1c5fd - rustc_middle[d8712503438341b1]::util::bug::opt_span_bug_fmt::::{closure#0} 13: 0x7f2bf9b1c92a - rustc_middle[d8712503438341b1]::ty::context::tls::with_opt::::{closure#0}, !>::{closure#0} 14: 0x7f2bf9b0199b - rustc_middle[d8712503438341b1]::ty::context::tls::with_context_opt::::{closure#0}, !>::{closure#0}, !> 15: 0x7f2bf9b006b7 - rustc_middle[d8712503438341b1]::util::bug::span_bug_fmt:: 16: 0x7f2bf7807ce1 - ::process_obligation 17: 0x7f2bfac0d823 - >::process_obligations:: 18: 0x7f2bfbce0b00 - ::check_method_argument_types 19: 0x7f2bfb57384a - ::check_expr_with_expectation_and_args 20: 0x7f2bfb56b939 - ::check_decl 21: 0x7f2bfb56e78d - ::check_block_with_expected 22: 0x7f2bfb573701 - ::check_expr_with_expectation_and_args 23: 0x7f2bfb56d7a6 - ::check_block_with_expected 24: 0x7f2bfb573701 - ::check_expr_with_expectation_and_args 25: 0x7f2bfb8d3ca7 - ::check_argument_types 26: 0x7f2bfac60874 - ::check_call 27: 0x7f2bfb57321d - ::check_expr_with_expectation_and_args 28: 0x7f2bfb5752e7 - ::check_expr_with_expectation_and_args 29: 0x7f2bfb8d3ca7 - ::check_argument_types 30: 0x7f2bfac60874 - ::check_call 31: 0x7f2bfb57321d - ::check_expr_with_expectation_and_args 32: 0x7f2bfb8d3ca7 - ::check_argument_types 33: 0x7f2bfac60874 - ::check_call 34: 0x7f2bfb57321d - ::check_expr_with_expectation_and_args 35: 0x7f2bfae54821 - rustc_hir_typeck[77e1cc157524533d]::check::check_fn 36: 0x7f2bfb3d445e - ::check_expr_closure 37: 0x7f2bfb5760b9 - ::check_expr_with_expectation_and_args 38: 0x7f2bfb8d3ca7 - ::check_argument_types 39: 0x7f2bfac60874 - ::check_call 40: 0x7f2bfb57321d - ::check_expr_with_expectation_and_args 41: 0x7f2bfb56d7a6 - ::check_block_with_expected 42: 0x7f2bfb573701 - ::check_expr_with_expectation_and_args 43: 0x7f2bfb573732 - ::check_expr_with_expectation_and_args 44: 0x7f2bfae54821 - rustc_hir_typeck[77e1cc157524533d]::check::check_fn 45: 0x7f2bfb3d445e - ::check_expr_closure 46: 0x7f2bfb5760b9 - ::check_expr_with_expectation_and_args 47: 0x7f2bfb8d3ca7 - ::check_argument_types 48: 0x7f2bfac60874 - ::check_call 49: 0x7f2bfb57321d - ::check_expr_with_expectation_and_args 50: 0x7f2bfb56d7a6 - ::check_block_with_expected 51: 0x7f2bfb573701 - ::check_expr_with_expectation_and_args 52: 0x7f2bfbce0ee1 - ::check_method_argument_types 53: 0x7f2bfb57384a - ::check_expr_with_expectation_and_args 54: 0x7f2bfb56b939 - ::check_decl 55: 0x7f2bfb56e78d - ::check_block_with_expected 56: 0x7f2bfb573701 - ::check_expr_with_expectation_and_args 57: 0x7f2bfb56d7a6 - ::check_block_with_expected 58: 0x7f2bfb573701 - ::check_expr_with_expectation_and_args 59: 0x7f2bfb8d3ca7 - ::check_argument_types 60: 0x7f2bfac60874 - ::check_call 61: 0x7f2bfb57321d - ::check_expr_with_expectation_and_args 62: 0x7f2bfb5752e7 - ::check_expr_with_expectation_and_args 63: 0x7f2bfb8d3ca7 - ::check_argument_types 64: 0x7f2bfac60874 - ::check_call 65: 0x7f2bfb57321d - ::check_expr_with_expectation_and_args 66: 0x7f2bfb8d3ca7 - ::check_argument_types 67: 0x7f2bfac60874 - ::check_call 68: 0x7f2bfb57321d - ::check_expr_with_expectation_and_args 69: 0x7f2bfae54821 - rustc_hir_typeck[77e1cc157524533d]::check::check_fn 70: 0x7f2bfb3d445e - ::check_expr_closure 71: 0x7f2bfb5760b9 - ::check_expr_with_expectation_and_args 72: 0x7f2bfb8d3ca7 - ::check_argument_types 73: 0x7f2bfac60874 - ::check_call 74: 0x7f2bfb57321d - ::check_expr_with_expectation_and_args 75: 0x7f2bfb56d7a6 - ::check_block_with_expected 76: 0x7f2bfb573701 - ::check_expr_with_expectation_and_args 77: 0x7f2bfb573732 - ::check_expr_with_expectation_and_args 78: 0x7f2bfae54821 - rustc_hir_typeck[77e1cc157524533d]::check::check_fn 79: 0x7f2bfb3d445e - ::check_expr_closure 80: 0x7f2bfb5760b9 - ::check_expr_with_expectation_and_args 81: 0x7f2bfb8d3ca7 - ::check_argument_types 82: 0x7f2bfac60874 - ::check_call 83: 0x7f2bfb57321d - ::check_expr_with_expectation_and_args 84: 0x7f2bfb56d7a6 - ::check_block_with_expected 85: 0x7f2bfb573701 - ::check_expr_with_expectation_and_args 86: 0x7f2bfbce0ee1 - ::check_method_argument_types 87: 0x7f2bfb57384a - ::check_expr_with_expectation_and_args 88: 0x7f2bfb56b939 - ::check_decl 89: 0x7f2bfb56e78d - ::check_block_with_expected 90: 0x7f2bfb573701 - ::check_expr_with_expectation_and_args 91: 0x7f2bfb56d7a6 - ::check_block_with_expected 92: 0x7f2bfb573701 - ::check_expr_with_expectation_and_args 93: 0x7f2bfb8d3ca7 - ::check_argument_types 94: 0x7f2bfac60874 - ::check_call 95: 0x7f2bfb57321d - ::check_expr_with_expectation_and_args 96: 0x7f2bfb5752e7 - ::check_expr_with_expectation_and_args 97: 0x7f2bfb8d3ca7 - ::check_argument_types 98: 0x7f2bfac60874 - ::check_call 99: 0x7f2bfb57321d - ::check_expr_with_expectation_and_args 100: 0x7f2bfb8d3ca7 - ::check_argument_types 101: 0x7f2bfac60874 - ::check_call 102: 0x7f2bfb57321d - ::check_expr_with_expectation_and_args 103: 0x7f2bfae54821 - rustc_hir_typeck[77e1cc157524533d]::check::check_fn 104: 0x7f2bfb3d445e - ::check_expr_closure 105: 0x7f2bfb5760b9 - ::check_expr_with_expectation_and_args 106: 0x7f2bfb8d3ca7 - ::check_argument_types 107: 0x7f2bfac60874 - ::check_call 108: 0x7f2bfb57321d - ::check_expr_with_expectation_and_args 109: 0x7f2bfb573732 - ::check_expr_with_expectation_and_args 110: 0x7f2bfb56d7a6 - ::check_block_with_expected 111: 0x7f2bfb573701 - ::check_expr_with_expectation_and_args 112: 0x7f2bfb56d7a6 - ::check_block_with_expected 113: 0x7f2bfb573701 - ::check_expr_with_expectation_and_args 114: 0x7f2bfb56d7a6 - ::check_block_with_expected 115: 0x7f2bfb573701 - ::check_expr_with_expectation_and_args 116: 0x7f2bfae54821 - rustc_hir_typeck[77e1cc157524533d]::check::check_fn 117: 0x7f2bfae4ad49 - rustc_hir_typeck[77e1cc157524533d]::typeck 118: 0x7f2bfae4a709 - rustc_query_impl[ffef2ea0cc82d0dd]::plumbing::__rust_begin_short_backtrace::> 119: 0x7f2bfae3a01a - rustc_query_system[219200ddf699f4fc]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[ffef2ea0cc82d0dd]::plumbing::QueryCtxt, true> 120: 0x7f2bfb17b0c9 - rustc_query_impl[ffef2ea0cc82d0dd]::query_impl::typeck::get_query_incr::__rust_end_short_backtrace 121: 0x7f2bfb2985c4 - rustc_middle[d8712503438341b1]::query::plumbing::query_get_at::>> 122: 0x7f2bfb9ea658 - rustc_hir_analysis[6a1b22ded269dcc8]::collect::type_of::type_of_opaque 123: 0x7f2bfb9ea5a9 - rustc_query_impl[ffef2ea0cc82d0dd]::plumbing::__rust_begin_short_backtrace::> 124: 0x7f2bfadcba88 - rustc_query_system[219200ddf699f4fc]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[ffef2ea0cc82d0dd]::plumbing::QueryCtxt, true> 125: 0x7f2bfbc83007 - rustc_query_impl[ffef2ea0cc82d0dd]::query_impl::type_of_opaque::get_query_incr::__rust_end_short_backtrace 126: 0x7f2bfb29603e - rustc_middle[d8712503438341b1]::query::plumbing::query_get_at::>> 127: 0x7f2bf883422b - rustc_hir_analysis[6a1b22ded269dcc8]::collect::type_of::type_of 128: 0x7f2bfadd8222 - rustc_query_impl[ffef2ea0cc82d0dd]::plumbing::__rust_begin_short_backtrace::> 129: 0x7f2bfadcba88 - rustc_query_system[219200ddf699f4fc]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[ffef2ea0cc82d0dd]::plumbing::QueryCtxt, true> 130: 0x7f2bfadc9599 - rustc_query_impl[ffef2ea0cc82d0dd]::query_impl::type_of::get_query_incr::__rust_end_short_backtrace 131: 0x7f2bfb027648 - rustc_middle[d8712503438341b1]::query::plumbing::query_get_at::>> 132: 0x7f2bfb6c3cd2 - ::expand_opaque_ty 133: 0x7f2bfb6c2c38 - >::fold_ty 134: 0x7f2bfbcdd592 - <&rustc_middle[d8712503438341b1]::ty::list::RawList<(), rustc_middle[d8712503438341b1]::ty::Ty> as rustc_type_ir[4aa984e93c9e232c]::fold::TypeFoldable>::try_fold_with:: 135: 0x7f2bfb6c2c8c - >::fold_ty 136: 0x7f2bfb6c32b0 - <&rustc_middle[d8712503438341b1]::ty::list::RawList<(), rustc_middle[d8712503438341b1]::ty::generic_args::GenericArg> as rustc_type_ir[4aa984e93c9e232c]::fold::TypeFoldable>::try_fold_with:: 137: 0x7f2bfb6c2c63 - >::fold_ty 138: 0x7f2bfb6c31d5 - <&rustc_middle[d8712503438341b1]::ty::list::RawList<(), rustc_middle[d8712503438341b1]::ty::generic_args::GenericArg> as rustc_type_ir[4aa984e93c9e232c]::fold::TypeFoldable>::try_fold_with:: 139: 0x7f2bfb6c2cb4 - >::fold_ty 140: 0x7f2bfb6c3d15 - ::expand_opaque_ty 141: 0x7f2bfb6c3b84 - ::try_expand_impl_trait_type 142: 0x7f2bfbbf436b - rustc_hir_analysis[6a1b22ded269dcc8]::check::check::check_item_type 143: 0x7f2bfb2849ed - rustc_hir_analysis[6a1b22ded269dcc8]::check::wfcheck::check_well_formed 144: 0x7f2bfb2834a3 - rustc_query_impl[ffef2ea0cc82d0dd]::plumbing::__rust_begin_short_backtrace::> 145: 0x7f2bfb177639 - rustc_query_system[219200ddf699f4fc]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[ffef2ea0cc82d0dd]::plumbing::QueryCtxt, true> 146: 0x7f2bfb17713f - rustc_query_impl[ffef2ea0cc82d0dd]::query_impl::check_well_formed::get_query_incr::__rust_end_short_backtrace 147: 0x7f2bfb280913 - rustc_hir_analysis[6a1b22ded269dcc8]::check::wfcheck::check_mod_type_wf 148: 0x7f2bfb28075b - rustc_query_impl[ffef2ea0cc82d0dd]::plumbing::__rust_begin_short_backtrace::> 149: 0x7f2bfba39f42 - rustc_query_system[219200ddf699f4fc]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[ffef2ea0cc82d0dd]::plumbing::QueryCtxt, true> 150: 0x7f2bfba3ac08 - rustc_query_impl[ffef2ea0cc82d0dd]::query_impl::check_mod_type_wf::get_query_incr::__rust_end_short_backtrace 151: 0x7f2bfae3393b - rustc_hir_analysis[6a1b22ded269dcc8]::check_crate 152: 0x7f2bfb4c5b7a - rustc_interface[336e9a5fb47021d9]::passes::analysis 153: 0x7f2bfb4c56d5 - rustc_query_impl[ffef2ea0cc82d0dd]::plumbing::__rust_begin_short_backtrace::> 154: 0x7f2bfba16b4a - rustc_query_system[219200ddf699f4fc]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[ffef2ea0cc82d0dd]::plumbing::QueryCtxt, true> 155: 0x7f2bfba1675c - rustc_query_impl[ffef2ea0cc82d0dd]::query_impl::analysis::get_query_incr::__rust_end_short_backtrace 156: 0x7f2bfb8bdfd9 - rustc_interface[336e9a5fb47021d9]::interface::run_compiler::, rustc_driver_impl[427e5c398467f86b]::run_compiler::{closure#0}>::{closure#1} 157: 0x7f2bfb7ab327 - std[531770c5e2e8d301]::sys_common::backtrace::__rust_begin_short_backtrace::, rustc_driver_impl[427e5c398467f86b]::run_compiler::{closure#0}>::{closure#1}, core[2a3c68b720306447]::result::Result<(), rustc_span[53b55791d064607f]::ErrorGuaranteed>>::{closure#0}, core[2a3c68b720306447]::result::Result<(), rustc_span[53b55791d064607f]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[2a3c68b720306447]::result::Result<(), rustc_span[53b55791d064607f]::ErrorGuaranteed>> 158: 0x7f2bfb7ab0ea - <::spawn_unchecked_, rustc_driver_impl[427e5c398467f86b]::run_compiler::{closure#0}>::{closure#1}, core[2a3c68b720306447]::result::Result<(), rustc_span[53b55791d064607f]::ErrorGuaranteed>>::{closure#0}, core[2a3c68b720306447]::result::Result<(), rustc_span[53b55791d064607f]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[2a3c68b720306447]::result::Result<(), rustc_span[53b55791d064607f]::ErrorGuaranteed>>::{closure#2} as core[2a3c68b720306447]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0} 159: 0x7f2bfce20a1b - as core::ops::function::FnOnce>::call_once::hc8d25b9018534ef3 at /rustc/1cec373f65eb76e8e4b4d1847213cf3ec6c292b6/library/alloc/src/boxed.rs:2018:9 160: 0x7f2bfce20a1b - as core::ops::function::FnOnce>::call_once::h9f7c65c9881af958 at /rustc/1cec373f65eb76e8e4b4d1847213cf3ec6c292b6/library/alloc/src/boxed.rs:2018:9 161: 0x7f2bfce20a1b - std::sys::pal::unix::thread::Thread::new::thread_start::ha61a9957d3d99efc at /rustc/1cec373f65eb76e8e4b4d1847213cf3ec6c292b6/library/std/src/sys/pal/unix/thread.rs:108:17 162: 0x7f2bf666bac3 - start_thread at ./nptl/pthread_create.c:442:8 163: 0x7f2bf66fd850 - __GI___clone3 at ./misc/../sysdeps/unix/sysv/linux/x86_64/clone3.S:81 164: 0x0 - rustc version: 1.79.0-nightly (1cec373f6 2024-04-16) platform: x86_64-unknown-linux-gnu query stack during panic: #0 [typeck] type-checking `__App` #1 [type_of_opaque] computing type of opaque `__App::{opaque#0}` #2 [type_of] computing type of `__App::{opaque#0}` #3 [check_well_formed] checking that `App::{opaque#0}` is well-formed #4 [check_mod_type_wf] checking that types are well-formed in top-level module #5 [analysis] running analysis passes on this crate end of query stack