Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ICE: expected Binder to have 0 projections, but it has 1 #139418

Closed
matthiaskrgr opened this issue Apr 5, 2025 · 0 comments · Fixed by #139421
Closed

ICE: expected Binder to have 0 projections, but it has 1 #139418

matthiaskrgr opened this issue Apr 5, 2025 · 0 comments · Fixed by #139421
Labels
C-bug Category: This is a bug. I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. requires-debug-assertions This issue requires a build of rustc or tooling with debug-assertions in some way T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Comments

@matthiaskrgr
Copy link
Member

snippet:

//@compile-flags: --edition=2024
const X: for<'b> fn(&'b ()) = |&()| ();
fn main() {
    let dyn_debug = Box::new(X) as Box<dyn Future<Output = ()> + Send> as Box<dyn Send>;
}

Version information

rustc 1.88.0-dev
binary: rustc
commit-hash: unknown
commit-date: unknown
host: x86_64-unknown-linux-gnu
release: 1.88.0-dev
LLVM version: 20.1.2

Command:
/home/gh-matthiaskrgr/.rustup/toolchains/local-debug-assertions/bin/rustc --edition=2024

Program output


thread 'rustc' panicked at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/compiler/rustc_middle/src/ty/sty.rs:744:13:
assertion `left == right` failed: expected [Binder { value: Projection(Output = ()), bound_vars: [] }, Binder { value: AutoTrait(DefId(2:37645 ~ core[8d96]::marker::Send)), bound_vars: [] }] to have 0 projections, but it has 1
  left: 1
 right: 0
stack backtrace:
   0:     0x74b1acef4213 - std::backtrace_rs::backtrace::libunwind::trace::h058677524833a6b8
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9
   1:     0x74b1acef4213 - std::backtrace_rs::backtrace::trace_unsynchronized::h98e3bf1bf092de3c
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14
   2:     0x74b1acef4213 - std::sys::backtrace::_print_fmt::h0693e8ebeb886cfa
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/library/std/src/sys/backtrace.rs:66:9
   3:     0x74b1acef4213 - <std::sys::backtrace::BacktraceLock::print::DisplayBacktrace as core::fmt::Display>::fmt::hffadf8d683d43b08
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/library/std/src/sys/backtrace.rs:39:26
   4:     0x74b1a7ecaca1 - core::fmt::rt::Argument::fmt::h51b5148115b1cc73
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/library/core/src/fmt/rt.rs:178:76
   5:     0x74b1a7ecaca1 - core::fmt::write::h96b1945cb8d5edf6
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/library/core/src/fmt/mod.rs:1481:21
   6:     0x74b1aceaf3c9 - std::io::default_write_fmt::hf45f5329379f552b
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/library/std/src/io/mod.rs:639:11
   7:     0x74b1aceaf3c9 - std::io::Write::write_fmt::h739b0d712cccf231
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/library/std/src/io/mod.rs:1914:13
   8:     0x74b1acef40b3 - std::sys::backtrace::BacktraceLock::print::h909fc60c9b33bda4
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/library/std/src/sys/backtrace.rs:42:9
   9:     0x74b1acee0479 - std::panicking::default_hook::{{closure}}::h65aaf55d6ed811e6
  10:     0x74b1acee02b3 - std::panicking::default_hook::hf2fdacddcf45ad0a
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/library/std/src/panicking.rs:327:9
  11:     0x74b1a93e264b - rustc_driver_impl[b803c1eededc3934]::install_ice_hook::{closure#1}
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/compiler/rustc_driver_impl/src/lib.rs:1368:17
  12:     0x74b1a93e264b - <alloc[6dd86dc546ece569]::boxed::Box<rustc_driver_impl[b803c1eededc3934]::install_ice_hook::{closure#1}> as core[8d9672d5584755be]::ops::function::Fn<(&dyn for<'a, 'b> core[8d9672d5584755be]::ops::function::Fn<(&'a std[cd54381a177933ca]::panic::PanicHookInfo<'b>,), Output = ()> + core[8d9672d5584755be]::marker::Send + core[8d9672d5584755be]::marker::Sync, &std[cd54381a177933ca]::panic::PanicHookInfo)>>::call
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/library/alloc/src/boxed.rs:1980:9
  13:     0x74b1acee0b53 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h11a4f2aaad42d4de
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/library/alloc/src/boxed.rs:1980:9
  14:     0x74b1acee0b53 - std::panicking::rust_panic_with_hook::h9df10e027007a66e
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/library/std/src/panicking.rs:841:13
  15:     0x74b1acef46ec - std::panicking::begin_panic_handler::{{closure}}::h454b9a171b778b0f
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/library/std/src/panicking.rs:706:13
  16:     0x74b1acef44e9 - std::sys::backtrace::__rust_end_short_backtrace::heee200d47ed01be9
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/library/std/src/sys/backtrace.rs:168:18
  17:     0x74b1acee056f - __rustc[ed85a5c164681b92]::rust_begin_unwind
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/library/std/src/panicking.rs:697:5
  18:     0x74b1a7ed4510 - core::panicking::panic_fmt::hb36d374cbc631117
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/library/core/src/panicking.rs:75:14
  19:     0x74b1a7ed4a46 - core::panicking::assert_failed_inner::hb817c1a524d70945
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/library/core/src/panicking.rs:420:23
  20:     0x74b1a7ed4854 - core::panicking::assert_failed::h063266435b4af9d5
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/library/core/src/panicking.rs:380:5
  21:     0x74b1ac923466 - <rustc_middle[e400e38c50169c83]::ty::Ty>::new_dynamic
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/compiler/rustc_middle/src/ty/sty.rs:744:13
  22:     0x74b1ac923466 - <rustc_trait_selection[49195541df5bc9f0]::traits::select::SelectionContext>::confirm_builtin_unsize_candidate
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/compiler/rustc_trait_selection/src/traits/select/confirmation.rs:1113:36
  23:     0x74b1ac923466 - <rustc_trait_selection[49195541df5bc9f0]::traits::select::SelectionContext>::confirm_candidate
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/compiler/rustc_trait_selection/src/traits/select/confirmation.rs:133:39
  24:     0x74b1ac92614a - <rustc_trait_selection[49195541df5bc9f0]::traits::select::SelectionContext>::poly_select::{closure#0}
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/compiler/rustc_trait_selection/src/traits/select/mod.rs:287:15
  25:     0x74b1ac92614a - <rustc_trait_selection[49195541df5bc9f0]::traits::select::SelectionContext>::poly_select
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/compiler/rustc_trait_selection/src/traits/select/mod.rs:262:5
  26:     0x74b1ac90a3d6 - <rustc_trait_selection[49195541df5bc9f0]::traits::select::SelectionContext>::select
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/compiler/rustc_trait_selection/src/traits/select/mod.rs:301:9
  27:     0x74b1a9ff8756 - <rustc_hir_typeck[19141a6625f8eee]::coercion::Coerce>::coerce_unsized
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/compiler/rustc_hir_typeck/src/coercion.rs:641:19
  28:     0x74b1aa0dde38 - <rustc_hir_typeck[19141a6625f8eee]::coercion::Coerce>::coerce::{closure#0}
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/compiler/rustc_hir_typeck/src/coercion.rs:203:44
  29:     0x74b1aa0dde38 - <rustc_infer[9ef0f81aa8771fe]::infer::InferCtxt>::commit_if_ok::<rustc_infer[9ef0f81aa8771fe]::infer::InferOk<(alloc[6dd86dc546ece569]::vec::Vec<rustc_middle[e400e38c50169c83]::ty::adjustment::Adjustment>, rustc_middle[e400e38c50169c83]::ty::Ty)>, rustc_type_ir[a869d5b99fd71b1]::error::TypeError<rustc_middle[e400e38c50169c83]::ty::context::TyCtxt>, <rustc_hir_typeck[19141a6625f8eee]::coercion::Coerce>::coerce::{closure#0}>
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/compiler/rustc_infer/src/infer/snapshot/mod.rs:86:17
  30:     0x74b1a9ff3712 - <rustc_hir_typeck[19141a6625f8eee]::coercion::Coerce>::coerce
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/compiler/rustc_hir_typeck/src/coercion.rs:203:22
  31:     0x74b1aa0dc7f8 - <rustc_hir_typeck[19141a6625f8eee]::fn_ctxt::FnCtxt>::try_find_coercion_lub::<rustc_hir[4694f79ca295a987]::hir::Arm>::{closure#5}
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/compiler/rustc_hir_typeck/src/coercion.rs:1295:48
  32:     0x74b1aa0dc7f8 - <rustc_infer[9ef0f81aa8771fe]::infer::InferCtxt>::commit_if_ok::<rustc_infer[9ef0f81aa8771fe]::infer::InferOk<(alloc[6dd86dc546ece569]::vec::Vec<rustc_middle[e400e38c50169c83]::ty::adjustment::Adjustment>, rustc_middle[e400e38c50169c83]::ty::Ty)>, rustc_type_ir[a869d5b99fd71b1]::error::TypeError<rustc_middle[e400e38c50169c83]::ty::context::TyCtxt>, <rustc_hir_typeck[19141a6625f8eee]::fn_ctxt::FnCtxt>::try_find_coercion_lub<rustc_hir[4694f79ca295a987]::hir::Arm>::{closure#5}>
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/compiler/rustc_infer/src/infer/snapshot/mod.rs:86:17
  33:     0x74b1a9cf41b2 - <rustc_hir_typeck[19141a6625f8eee]::fn_ctxt::FnCtxt>::coerce
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/compiler/rustc_hir_typeck/src/coercion.rs:1059:18
  34:     0x74b1a9fed98a - <rustc_hir_typeck[19141a6625f8eee]::cast::CastCheck>::try_coercion_cast
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/compiler/rustc_hir_typeck/src/cast.rs:1092:15
  35:     0x74b1a9fed98a - <rustc_hir_typeck[19141a6625f8eee]::cast::CastCheck>::check
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/compiler/rustc_hir_typeck/src/cast.rs:708:19
  36:     0x74b1a9d2d10a - <rustc_hir_typeck[19141a6625f8eee]::fn_ctxt::FnCtxt>::check_casts
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/compiler/rustc_hir_typeck/src/fn_ctxt/checks.rs:82:13
  37:     0x74b1aa000893 - rustc_hir_typeck[19141a6625f8eee]::typeck_with_inspect::{closure#0}
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/compiler/rustc_hir_typeck/src/lib.rs:215:5
  38:     0x74b1aa000893 - rustc_hir_typeck[19141a6625f8eee]::typeck_with_inspect
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/compiler/rustc_hir_typeck/src/lib.rs:105:1
  39:     0x74b1abba13e6 - rustc_query_impl[2ae6f340e9b30694]::query_impl::typeck::dynamic_query::{closure#2}::{closure#0}
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/compiler/rustc_query_impl/src/plumbing.rs:288:9
  40:     0x74b1abba13e6 - rustc_query_impl[2ae6f340e9b30694]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[2ae6f340e9b30694]::query_impl::typeck::dynamic_query::{closure#2}::{closure#0}, rustc_middle[e400e38c50169c83]::query::erase::Erased<[u8; 8usize]>>
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/compiler/rustc_query_impl/src/plumbing.rs:572:18
  41:     0x74b1abac640b - rustc_query_impl[2ae6f340e9b30694]::query_impl::typeck::dynamic_query::{closure#2}
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/compiler/rustc_query_impl/src/plumbing.rs:646:25
  42:     0x74b1abac640b - <rustc_query_impl[2ae6f340e9b30694]::query_impl::typeck::dynamic_query::{closure#2} as core[8d9672d5584755be]::ops::function::FnOnce<(rustc_middle[e400e38c50169c83]::ty::context::TyCtxt, rustc_span[d487cbcc0f7848f3]::def_id::LocalDefId)>>::call_once
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/library/core/src/ops/function.rs:250:5
  43:     0x74b1aba14931 - <rustc_query_impl[2ae6f340e9b30694]::DynamicConfig<rustc_data_structures[48bbbe4422bc1485]::vec_cache::VecCache<rustc_span[d487cbcc0f7848f3]::def_id::LocalDefId, rustc_middle[e400e38c50169c83]::query::erase::Erased<[u8; 8usize]>, rustc_query_system[26c1762410ebf569]::dep_graph::graph::DepNodeIndex>, false, false, false> as rustc_query_system[26c1762410ebf569]::query::config::QueryConfig<rustc_query_impl[2ae6f340e9b30694]::plumbing::QueryCtxt>>::compute
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/compiler/rustc_query_impl/src/lib.rs:124:9
  44:     0x74b1aba14931 - rustc_query_system[26c1762410ebf569]::query::plumbing::execute_job_non_incr::<rustc_query_impl[2ae6f340e9b30694]::DynamicConfig<rustc_data_structures[48bbbe4422bc1485]::vec_cache::VecCache<rustc_span[d487cbcc0f7848f3]::def_id::LocalDefId, rustc_middle[e400e38c50169c83]::query::erase::Erased<[u8; 8usize]>, rustc_query_system[26c1762410ebf569]::dep_graph::graph::DepNodeIndex>, false, false, false>, rustc_query_impl[2ae6f340e9b30694]::plumbing::QueryCtxt>::{closure#0}
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/compiler/rustc_query_system/src/query/plumbing.rs:493:66
  45:     0x74b1aba14931 - rustc_middle[e400e38c50169c83]::ty::context::tls::enter_context::<rustc_query_system[26c1762410ebf569]::query::plumbing::execute_job_non_incr<rustc_query_impl[2ae6f340e9b30694]::DynamicConfig<rustc_data_structures[48bbbe4422bc1485]::vec_cache::VecCache<rustc_span[d487cbcc0f7848f3]::def_id::LocalDefId, rustc_middle[e400e38c50169c83]::query::erase::Erased<[u8; 8usize]>, rustc_query_system[26c1762410ebf569]::dep_graph::graph::DepNodeIndex>, false, false, false>, rustc_query_impl[2ae6f340e9b30694]::plumbing::QueryCtxt>::{closure#0}, rustc_middle[e400e38c50169c83]::query::erase::Erased<[u8; 8usize]>>::{closure#0}
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/compiler/rustc_middle/src/ty/context/tls.rs:60:9
  46:     0x74b1aba14931 - <std[cd54381a177933ca]::thread::local::LocalKey<core[8d9672d5584755be]::cell::Cell<*const ()>>>::try_with::<rustc_middle[e400e38c50169c83]::ty::context::tls::enter_context<rustc_query_system[26c1762410ebf569]::query::plumbing::execute_job_non_incr<rustc_query_impl[2ae6f340e9b30694]::DynamicConfig<rustc_data_structures[48bbbe4422bc1485]::vec_cache::VecCache<rustc_span[d487cbcc0f7848f3]::def_id::LocalDefId, rustc_middle[e400e38c50169c83]::query::erase::Erased<[u8; 8usize]>, rustc_query_system[26c1762410ebf569]::dep_graph::graph::DepNodeIndex>, false, false, false>, rustc_query_impl[2ae6f340e9b30694]::plumbing::QueryCtxt>::{closure#0}, rustc_middle[e400e38c50169c83]::query::erase::Erased<[u8; 8usize]>>::{closure#0}, rustc_middle[e400e38c50169c83]::query::erase::Erased<[u8; 8usize]>>
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/library/std/src/thread/local.rs:311:12
  47:     0x74b1aba14931 - <std[cd54381a177933ca]::thread::local::LocalKey<core[8d9672d5584755be]::cell::Cell<*const ()>>>::with::<rustc_middle[e400e38c50169c83]::ty::context::tls::enter_context<rustc_query_system[26c1762410ebf569]::query::plumbing::execute_job_non_incr<rustc_query_impl[2ae6f340e9b30694]::DynamicConfig<rustc_data_structures[48bbbe4422bc1485]::vec_cache::VecCache<rustc_span[d487cbcc0f7848f3]::def_id::LocalDefId, rustc_middle[e400e38c50169c83]::query::erase::Erased<[u8; 8usize]>, rustc_query_system[26c1762410ebf569]::dep_graph::graph::DepNodeIndex>, false, false, false>, rustc_query_impl[2ae6f340e9b30694]::plumbing::QueryCtxt>::{closure#0}, rustc_middle[e400e38c50169c83]::query::erase::Erased<[u8; 8usize]>>::{closure#0}, rustc_middle[e400e38c50169c83]::query::erase::Erased<[u8; 8usize]>>
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/library/std/src/thread/local.rs:275:15
  48:     0x74b1aba14931 - rustc_middle[e400e38c50169c83]::ty::context::tls::enter_context::<rustc_query_system[26c1762410ebf569]::query::plumbing::execute_job_non_incr<rustc_query_impl[2ae6f340e9b30694]::DynamicConfig<rustc_data_structures[48bbbe4422bc1485]::vec_cache::VecCache<rustc_span[d487cbcc0f7848f3]::def_id::LocalDefId, rustc_middle[e400e38c50169c83]::query::erase::Erased<[u8; 8usize]>, rustc_query_system[26c1762410ebf569]::dep_graph::graph::DepNodeIndex>, false, false, false>, rustc_query_impl[2ae6f340e9b30694]::plumbing::QueryCtxt>::{closure#0}, rustc_middle[e400e38c50169c83]::query::erase::Erased<[u8; 8usize]>>
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/compiler/rustc_middle/src/ty/context/tls.rs:57:5
  49:     0x74b1aba14931 - <rustc_query_impl[2ae6f340e9b30694]::plumbing::QueryCtxt as rustc_query_system[26c1762410ebf569]::query::QueryContext>::start_query::<rustc_middle[e400e38c50169c83]::query::erase::Erased<[u8; 8usize]>, rustc_query_system[26c1762410ebf569]::query::plumbing::execute_job_non_incr<rustc_query_impl[2ae6f340e9b30694]::DynamicConfig<rustc_data_structures[48bbbe4422bc1485]::vec_cache::VecCache<rustc_span[d487cbcc0f7848f3]::def_id::LocalDefId, rustc_middle[e400e38c50169c83]::query::erase::Erased<[u8; 8usize]>, rustc_query_system[26c1762410ebf569]::dep_graph::graph::DepNodeIndex>, false, false, false>, rustc_query_impl[2ae6f340e9b30694]::plumbing::QueryCtxt>::{closure#0}>::{closure#0}
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/compiler/rustc_query_impl/src/plumbing.rs:155:13
  50:     0x74b1aba14931 - rustc_middle[e400e38c50169c83]::ty::context::tls::with_related_context::<<rustc_query_impl[2ae6f340e9b30694]::plumbing::QueryCtxt as rustc_query_system[26c1762410ebf569]::query::QueryContext>::start_query<rustc_middle[e400e38c50169c83]::query::erase::Erased<[u8; 8usize]>, rustc_query_system[26c1762410ebf569]::query::plumbing::execute_job_non_incr<rustc_query_impl[2ae6f340e9b30694]::DynamicConfig<rustc_data_structures[48bbbe4422bc1485]::vec_cache::VecCache<rustc_span[d487cbcc0f7848f3]::def_id::LocalDefId, rustc_middle[e400e38c50169c83]::query::erase::Erased<[u8; 8usize]>, rustc_query_system[26c1762410ebf569]::dep_graph::graph::DepNodeIndex>, false, false, false>, rustc_query_impl[2ae6f340e9b30694]::plumbing::QueryCtxt>::{closure#0}>::{closure#0}, rustc_middle[e400e38c50169c83]::query::erase::Erased<[u8; 8usize]>>::{closure#0}
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/compiler/rustc_middle/src/ty/context/tls.rs:112:9
  51:     0x74b1aba14931 - rustc_middle[e400e38c50169c83]::ty::context::tls::with_context::<rustc_middle[e400e38c50169c83]::ty::context::tls::with_related_context<<rustc_query_impl[2ae6f340e9b30694]::plumbing::QueryCtxt as rustc_query_system[26c1762410ebf569]::query::QueryContext>::start_query<rustc_middle[e400e38c50169c83]::query::erase::Erased<[u8; 8usize]>, rustc_query_system[26c1762410ebf569]::query::plumbing::execute_job_non_incr<rustc_query_impl[2ae6f340e9b30694]::DynamicConfig<rustc_data_structures[48bbbe4422bc1485]::vec_cache::VecCache<rustc_span[d487cbcc0f7848f3]::def_id::LocalDefId, rustc_middle[e400e38c50169c83]::query::erase::Erased<[u8; 8usize]>, rustc_query_system[26c1762410ebf569]::dep_graph::graph::DepNodeIndex>, false, false, false>, rustc_query_impl[2ae6f340e9b30694]::plumbing::QueryCtxt>::{closure#0}>::{closure#0}, rustc_middle[e400e38c50169c83]::query::erase::Erased<[u8; 8usize]>>::{closure#0}, rustc_middle[e400e38c50169c83]::query::erase::Erased<[u8; 8usize]>>::{closure#0}
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/compiler/rustc_middle/src/ty/context/tls.rs:90:36
  52:     0x74b1aba14931 - rustc_middle[e400e38c50169c83]::ty::context::tls::with_context_opt::<rustc_middle[e400e38c50169c83]::ty::context::tls::with_context<rustc_middle[e400e38c50169c83]::ty::context::tls::with_related_context<<rustc_query_impl[2ae6f340e9b30694]::plumbing::QueryCtxt as rustc_query_system[26c1762410ebf569]::query::QueryContext>::start_query<rustc_middle[e400e38c50169c83]::query::erase::Erased<[u8; 8usize]>, rustc_query_system[26c1762410ebf569]::query::plumbing::execute_job_non_incr<rustc_query_impl[2ae6f340e9b30694]::DynamicConfig<rustc_data_structures[48bbbe4422bc1485]::vec_cache::VecCache<rustc_span[d487cbcc0f7848f3]::def_id::LocalDefId, rustc_middle[e400e38c50169c83]::query::erase::Erased<[u8; 8usize]>, rustc_query_system[26c1762410ebf569]::dep_graph::graph::DepNodeIndex>, false, false, false>, rustc_query_impl[2ae6f340e9b30694]::plumbing::QueryCtxt>::{closure#0}>::{closure#0}, rustc_middle[e400e38c50169c83]::query::erase::Erased<[u8; 8usize]>>::{closure#0}, rustc_middle[e400e38c50169c83]::query::erase::Erased<[u8; 8usize]>>::{closure#0}, rustc_middle[e400e38c50169c83]::query::erase::Erased<[u8; 8usize]>>
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/compiler/rustc_middle/src/ty/context/tls.rs:79:18
  53:     0x74b1aba14931 - rustc_middle[e400e38c50169c83]::ty::context::tls::with_context::<rustc_middle[e400e38c50169c83]::ty::context::tls::with_related_context<<rustc_query_impl[2ae6f340e9b30694]::plumbing::QueryCtxt as rustc_query_system[26c1762410ebf569]::query::QueryContext>::start_query<rustc_middle[e400e38c50169c83]::query::erase::Erased<[u8; 8usize]>, rustc_query_system[26c1762410ebf569]::query::plumbing::execute_job_non_incr<rustc_query_impl[2ae6f340e9b30694]::DynamicConfig<rustc_data_structures[48bbbe4422bc1485]::vec_cache::VecCache<rustc_span[d487cbcc0f7848f3]::def_id::LocalDefId, rustc_middle[e400e38c50169c83]::query::erase::Erased<[u8; 8usize]>, rustc_query_system[26c1762410ebf569]::dep_graph::graph::DepNodeIndex>, false, false, false>, rustc_query_impl[2ae6f340e9b30694]::plumbing::QueryCtxt>::{closure#0}>::{closure#0}, rustc_middle[e400e38c50169c83]::query::erase::Erased<[u8; 8usize]>>::{closure#0}, rustc_middle[e400e38c50169c83]::query::erase::Erased<[u8; 8usize]>>
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/compiler/rustc_middle/src/ty/context/tls.rs:90:5
  54:     0x74b1aba14931 - rustc_middle[e400e38c50169c83]::ty::context::tls::with_related_context::<<rustc_query_impl[2ae6f340e9b30694]::plumbing::QueryCtxt as rustc_query_system[26c1762410ebf569]::query::QueryContext>::start_query<rustc_middle[e400e38c50169c83]::query::erase::Erased<[u8; 8usize]>, rustc_query_system[26c1762410ebf569]::query::plumbing::execute_job_non_incr<rustc_query_impl[2ae6f340e9b30694]::DynamicConfig<rustc_data_structures[48bbbe4422bc1485]::vec_cache::VecCache<rustc_span[d487cbcc0f7848f3]::def_id::LocalDefId, rustc_middle[e400e38c50169c83]::query::erase::Erased<[u8; 8usize]>, rustc_query_system[26c1762410ebf569]::dep_graph::graph::DepNodeIndex>, false, false, false>, rustc_query_impl[2ae6f340e9b30694]::plumbing::QueryCtxt>::{closure#0}>::{closure#0}, rustc_middle[e400e38c50169c83]::query::erase::Erased<[u8; 8usize]>>
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/compiler/rustc_middle/src/ty/context/tls.rs:103:5
  55:     0x74b1aba14931 - <rustc_query_impl[2ae6f340e9b30694]::plumbing::QueryCtxt as rustc_query_system[26c1762410ebf569]::query::QueryContext>::start_query::<rustc_middle[e400e38c50169c83]::query::erase::Erased<[u8; 8usize]>, rustc_query_system[26c1762410ebf569]::query::plumbing::execute_job_non_incr<rustc_query_impl[2ae6f340e9b30694]::DynamicConfig<rustc_data_structures[48bbbe4422bc1485]::vec_cache::VecCache<rustc_span[d487cbcc0f7848f3]::def_id::LocalDefId, rustc_middle[e400e38c50169c83]::query::erase::Erased<[u8; 8usize]>, rustc_query_system[26c1762410ebf569]::dep_graph::graph::DepNodeIndex>, false, false, false>, rustc_query_impl[2ae6f340e9b30694]::plumbing::QueryCtxt>::{closure#0}>
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/compiler/rustc_query_impl/src/plumbing.rs:141:9
 
<snip>

 111:     0x74b1a93c6086 - rustc_interface[bb7f2a6353b38934]::passes::create_and_enter_global_ctxt::<core[8d9672d5584755be]::option::Option<rustc_interface[bb7f2a6353b38934]::queries::Linker>, rustc_driver_impl[b803c1eededc3934]::run_compiler::{closure#0}::{closure#2}>::{closure#2}::{closure#0}
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/compiler/rustc_interface/src/passes.rs:881:27
 112:     0x74b1a93c6086 - <rustc_middle[e400e38c50169c83]::ty::context::GlobalCtxt>::enter::<rustc_interface[bb7f2a6353b38934]::passes::create_and_enter_global_ctxt<core[8d9672d5584755be]::option::Option<rustc_interface[bb7f2a6353b38934]::queries::Linker>, rustc_driver_impl[b803c1eededc3934]::run_compiler::{closure#0}::{closure#2}>::{closure#2}::{closure#0}, core[8d9672d5584755be]::option::Option<rustc_interface[bb7f2a6353b38934]::queries::Linker>>::{closure#1}
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/compiler/rustc_middle/src/ty/context.rs:1442:37
 113:     0x74b1a93c6086 - rustc_middle[e400e38c50169c83]::ty::context::tls::enter_context::<<rustc_middle[e400e38c50169c83]::ty::context::GlobalCtxt>::enter<rustc_interface[bb7f2a6353b38934]::passes::create_and_enter_global_ctxt<core[8d9672d5584755be]::option::Option<rustc_interface[bb7f2a6353b38934]::queries::Linker>, rustc_driver_impl[b803c1eededc3934]::run_compiler::{closure#0}::{closure#2}>::{closure#2}::{closure#0}, core[8d9672d5584755be]::option::Option<rustc_interface[bb7f2a6353b38934]::queries::Linker>>::{closure#1}, core[8d9672d5584755be]::option::Option<rustc_interface[bb7f2a6353b38934]::queries::Linker>>::{closure#0}
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/compiler/rustc_middle/src/ty/context/tls.rs:60:9
 114:     0x74b1a93c6086 - <std[cd54381a177933ca]::thread::local::LocalKey<core[8d9672d5584755be]::cell::Cell<*const ()>>>::try_with::<rustc_middle[e400e38c50169c83]::ty::context::tls::enter_context<<rustc_middle[e400e38c50169c83]::ty::context::GlobalCtxt>::enter<rustc_interface[bb7f2a6353b38934]::passes::create_and_enter_global_ctxt<core[8d9672d5584755be]::option::Option<rustc_interface[bb7f2a6353b38934]::queries::Linker>, rustc_driver_impl[b803c1eededc3934]::run_compiler::{closure#0}::{closure#2}>::{closure#2}::{closure#0}, core[8d9672d5584755be]::option::Option<rustc_interface[bb7f2a6353b38934]::queries::Linker>>::{closure#1}, core[8d9672d5584755be]::option::Option<rustc_interface[bb7f2a6353b38934]::queries::Linker>>::{closure#0}, core[8d9672d5584755be]::option::Option<rustc_interface[bb7f2a6353b38934]::queries::Linker>>
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/library/std/src/thread/local.rs:311:12
 115:     0x74b1a93c6086 - <std[cd54381a177933ca]::thread::local::LocalKey<core[8d9672d5584755be]::cell::Cell<*const ()>>>::with::<rustc_middle[e400e38c50169c83]::ty::context::tls::enter_context<<rustc_middle[e400e38c50169c83]::ty::context::GlobalCtxt>::enter<rustc_interface[bb7f2a6353b38934]::passes::create_and_enter_global_ctxt<core[8d9672d5584755be]::option::Option<rustc_interface[bb7f2a6353b38934]::queries::Linker>, rustc_driver_impl[b803c1eededc3934]::run_compiler::{closure#0}::{closure#2}>::{closure#2}::{closure#0}, core[8d9672d5584755be]::option::Option<rustc_interface[bb7f2a6353b38934]::queries::Linker>>::{closure#1}, core[8d9672d5584755be]::option::Option<rustc_interface[bb7f2a6353b38934]::queries::Linker>>::{closure#0}, core[8d9672d5584755be]::option::Option<rustc_interface[bb7f2a6353b38934]::queries::Linker>>
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/library/std/src/thread/local.rs:275:15
 116:     0x74b1a943804f - rustc_middle[e400e38c50169c83]::ty::context::tls::enter_context::<<rustc_middle[e400e38c50169c83]::ty::context::GlobalCtxt>::enter<rustc_interface[bb7f2a6353b38934]::passes::create_and_enter_global_ctxt<core[8d9672d5584755be]::option::Option<rustc_interface[bb7f2a6353b38934]::queries::Linker>, rustc_driver_impl[b803c1eededc3934]::run_compiler::{closure#0}::{closure#2}>::{closure#2}::{closure#0}, core[8d9672d5584755be]::option::Option<rustc_interface[bb7f2a6353b38934]::queries::Linker>>::{closure#1}, core[8d9672d5584755be]::option::Option<rustc_interface[bb7f2a6353b38934]::queries::Linker>>
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/compiler/rustc_middle/src/ty/context/tls.rs:57:5
 117:     0x74b1a943804f - <rustc_middle[e400e38c50169c83]::ty::context::GlobalCtxt>::enter::<rustc_interface[bb7f2a6353b38934]::passes::create_and_enter_global_ctxt<core[8d9672d5584755be]::option::Option<rustc_interface[bb7f2a6353b38934]::queries::Linker>, rustc_driver_impl[b803c1eededc3934]::run_compiler::{closure#0}::{closure#2}>::{closure#2}::{closure#0}, core[8d9672d5584755be]::option::Option<rustc_interface[bb7f2a6353b38934]::queries::Linker>>
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/compiler/rustc_middle/src/ty/context.rs:1442:9
 118:     0x74b1a943804f - <rustc_middle[e400e38c50169c83]::ty::context::TyCtxt>::create_global_ctxt::<core[8d9672d5584755be]::option::Option<rustc_interface[bb7f2a6353b38934]::queries::Linker>, rustc_interface[bb7f2a6353b38934]::passes::create_and_enter_global_ctxt<core[8d9672d5584755be]::option::Option<rustc_interface[bb7f2a6353b38934]::queries::Linker>, rustc_driver_impl[b803c1eededc3934]::run_compiler::{closure#0}::{closure#2}>::{closure#2}::{closure#0}>
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/compiler/rustc_middle/src/ty/context.rs:1660:9
 119:     0x74b1a942c388 - rustc_interface[bb7f2a6353b38934]::passes::create_and_enter_global_ctxt::<core[8d9672d5584755be]::option::Option<rustc_interface[bb7f2a6353b38934]::queries::Linker>, rustc_driver_impl[b803c1eededc3934]::run_compiler::{closure#0}::{closure#2}>::{closure#2}
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/compiler/rustc_interface/src/passes.rs:849:9
 120:     0x74b1a942c388 - <rustc_interface[bb7f2a6353b38934]::passes::create_and_enter_global_ctxt<core[8d9672d5584755be]::option::Option<rustc_interface[bb7f2a6353b38934]::queries::Linker>, rustc_driver_impl[b803c1eededc3934]::run_compiler::{closure#0}::{closure#2}>::{closure#2} as core[8d9672d5584755be]::ops::function::FnOnce<(&rustc_session[bc964adea7fecce2]::session::Session, rustc_middle[e400e38c50169c83]::ty::context::CurrentGcx, &std[cd54381a177933ca]::sync::once_lock::OnceLock<rustc_middle[e400e38c50169c83]::ty::context::GlobalCtxt>, &rustc_data_structures[48bbbe4422bc1485]::sync::worker_local::WorkerLocal<rustc_middle[e400e38c50169c83]::arena::Arena>, &rustc_data_structures[48bbbe4422bc1485]::sync::worker_local::WorkerLocal<rustc_hir[4694f79ca295a987]::Arena>, rustc_driver_impl[b803c1eededc3934]::run_compiler::{closure#0}::{closure#2})>>::call_once::{shim:vtable#0}
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/library/core/src/ops/function.rs:250:5
 121:     0x74b1a942a4f0 - <alloc[6dd86dc546ece569]::boxed::Box<dyn for<'a> core[8d9672d5584755be]::ops::function::FnOnce<(&'a rustc_session[bc964adea7fecce2]::session::Session, rustc_middle[e400e38c50169c83]::ty::context::CurrentGcx, &'a std[cd54381a177933ca]::sync::once_lock::OnceLock<rustc_middle[e400e38c50169c83]::ty::context::GlobalCtxt<'a>>, &'a rustc_data_structures[48bbbe4422bc1485]::sync::worker_local::WorkerLocal<rustc_middle[e400e38c50169c83]::arena::Arena<'a>>, &'a rustc_data_structures[48bbbe4422bc1485]::sync::worker_local::WorkerLocal<rustc_hir[4694f79ca295a987]::Arena<'a>>, rustc_driver_impl[b803c1eededc3934]::run_compiler::{closure#0}::{closure#2}), Output = core[8d9672d5584755be]::option::Option<rustc_interface[bb7f2a6353b38934]::queries::Linker>>> as core[8d9672d5584755be]::ops::function::FnOnce<(&rustc_session[bc964adea7fecce2]::session::Session, rustc_middle[e400e38c50169c83]::ty::context::CurrentGcx, &std[cd54381a177933ca]::sync::once_lock::OnceLock<rustc_middle[e400e38c50169c83]::ty::context::GlobalCtxt>, &rustc_data_structures[48bbbe4422bc1485]::sync::worker_local::WorkerLocal<rustc_middle[e400e38c50169c83]::arena::Arena>, &rustc_data_structures[48bbbe4422bc1485]::sync::worker_local::WorkerLocal<rustc_hir[4694f79ca295a987]::Arena>, rustc_driver_impl[b803c1eededc3934]::run_compiler::{closure#0}::{closure#2})>>::call_once
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/library/alloc/src/boxed.rs:1966:9
 122:     0x74b1a942a4f0 - rustc_interface[bb7f2a6353b38934]::passes::create_and_enter_global_ctxt::<core[8d9672d5584755be]::option::Option<rustc_interface[bb7f2a6353b38934]::queries::Linker>, rustc_driver_impl[b803c1eededc3934]::run_compiler::{closure#0}::{closure#2}>
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/compiler/rustc_interface/src/passes.rs:889:5
 123:     0x74b1a93e7232 - rustc_driver_impl[b803c1eededc3934]::run_compiler::{closure#0}
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/compiler/rustc_driver_impl/src/lib.rs:343:22
 124:     0x74b1a93e7232 - rustc_interface[bb7f2a6353b38934]::interface::run_compiler::<(), rustc_driver_impl[b803c1eededc3934]::run_compiler::{closure#0}>::{closure#1}::{closure#0}
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/compiler/rustc_interface/src/interface.rs:516:80
 125:     0x74b1a93e7232 - <core[8d9672d5584755be]::panic::unwind_safe::AssertUnwindSafe<rustc_interface[bb7f2a6353b38934]::interface::run_compiler<(), rustc_driver_impl[b803c1eededc3934]::run_compiler::{closure#0}>::{closure#1}::{closure#0}> as core[8d9672d5584755be]::ops::function::FnOnce<()>>::call_once
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/library/core/src/panic/unwind_safe.rs:272:9
 126:     0x74b1a93e7232 - std[cd54381a177933ca]::panicking::try::do_call::<core[8d9672d5584755be]::panic::unwind_safe::AssertUnwindSafe<rustc_interface[bb7f2a6353b38934]::interface::run_compiler<(), rustc_driver_impl[b803c1eededc3934]::run_compiler::{closure#0}>::{closure#1}::{closure#0}>, ()>
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/library/std/src/panicking.rs:589:40
 127:     0x74b1a93e7232 - std[cd54381a177933ca]::panicking::try::<(), core[8d9672d5584755be]::panic::unwind_safe::AssertUnwindSafe<rustc_interface[bb7f2a6353b38934]::interface::run_compiler<(), rustc_driver_impl[b803c1eededc3934]::run_compiler::{closure#0}>::{closure#1}::{closure#0}>>
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/library/std/src/panicking.rs:552:19
 128:     0x74b1a93e7232 - std[cd54381a177933ca]::panic::catch_unwind::<core[8d9672d5584755be]::panic::unwind_safe::AssertUnwindSafe<rustc_interface[bb7f2a6353b38934]::interface::run_compiler<(), rustc_driver_impl[b803c1eededc3934]::run_compiler::{closure#0}>::{closure#1}::{closure#0}>, ()>
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/library/std/src/panic.rs:359:14
 129:     0x74b1a93e7232 - rustc_interface[bb7f2a6353b38934]::interface::run_compiler::<(), rustc_driver_impl[b803c1eededc3934]::run_compiler::{closure#0}>::{closure#1}
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/compiler/rustc_interface/src/interface.rs:516:23
 130:     0x74b1a93e7232 - rustc_interface[bb7f2a6353b38934]::util::run_in_thread_pool_with_globals::<rustc_interface[bb7f2a6353b38934]::interface::run_compiler<(), rustc_driver_impl[b803c1eededc3934]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#0}
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/compiler/rustc_interface/src/util.rs:175:13
 131:     0x74b1a93e7232 - rustc_interface[bb7f2a6353b38934]::util::run_in_thread_with_globals::<rustc_interface[bb7f2a6353b38934]::util::run_in_thread_pool_with_globals<rustc_interface[bb7f2a6353b38934]::interface::run_compiler<(), rustc_driver_impl[b803c1eededc3934]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}::{closure#0}
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/compiler/rustc_interface/src/util.rs:138:21
 132:     0x74b1a93e7232 - <scoped_tls[2fe13f226296630f]::ScopedKey<rustc_span[d487cbcc0f7848f3]::SessionGlobals>>::set::<rustc_interface[bb7f2a6353b38934]::util::run_in_thread_with_globals<rustc_interface[bb7f2a6353b38934]::util::run_in_thread_pool_with_globals<rustc_interface[bb7f2a6353b38934]::interface::run_compiler<(), rustc_driver_impl[b803c1eededc3934]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}::{closure#0}, ()>
                               at /home/gh-matthiaskrgr/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/scoped-tls-1.0.1/src/lib.rs:137:9
 133:     0x74b1a94c1d0c - rustc_span[d487cbcc0f7848f3]::create_session_globals_then::<(), rustc_interface[bb7f2a6353b38934]::util::run_in_thread_with_globals<rustc_interface[bb7f2a6353b38934]::util::run_in_thread_pool_with_globals<rustc_interface[bb7f2a6353b38934]::interface::run_compiler<(), rustc_driver_impl[b803c1eededc3934]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}::{closure#0}>
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/compiler/rustc_span/src/lib.rs:141:5
 134:     0x74b1a94c1d0c - rustc_interface[bb7f2a6353b38934]::util::run_in_thread_with_globals::<rustc_interface[bb7f2a6353b38934]::util::run_in_thread_pool_with_globals<rustc_interface[bb7f2a6353b38934]::interface::run_compiler<(), rustc_driver_impl[b803c1eededc3934]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/compiler/rustc_interface/src/util.rs:137:17
 135:     0x74b1a94c1d0c - std[cd54381a177933ca]::sys::backtrace::__rust_begin_short_backtrace::<rustc_interface[bb7f2a6353b38934]::util::run_in_thread_with_globals<rustc_interface[bb7f2a6353b38934]::util::run_in_thread_pool_with_globals<rustc_interface[bb7f2a6353b38934]::interface::run_compiler<(), rustc_driver_impl[b803c1eededc3934]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()>
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/library/std/src/sys/backtrace.rs:152:18
 136:     0x74b1a93fadc8 - <std[cd54381a177933ca]::thread::Builder>::spawn_unchecked_::<rustc_interface[bb7f2a6353b38934]::util::run_in_thread_with_globals<rustc_interface[bb7f2a6353b38934]::util::run_in_thread_pool_with_globals<rustc_interface[bb7f2a6353b38934]::interface::run_compiler<(), rustc_driver_impl[b803c1eededc3934]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()>::{closure#1}::{closure#0}
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/library/std/src/thread/mod.rs:559:17
 137:     0x74b1a93fadc8 - <core[8d9672d5584755be]::panic::unwind_safe::AssertUnwindSafe<<std[cd54381a177933ca]::thread::Builder>::spawn_unchecked_<rustc_interface[bb7f2a6353b38934]::util::run_in_thread_with_globals<rustc_interface[bb7f2a6353b38934]::util::run_in_thread_pool_with_globals<rustc_interface[bb7f2a6353b38934]::interface::run_compiler<(), rustc_driver_impl[b803c1eededc3934]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()>::{closure#1}::{closure#0}> as core[8d9672d5584755be]::ops::function::FnOnce<()>>::call_once
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/library/core/src/panic/unwind_safe.rs:272:9
 138:     0x74b1a93fadc8 - std[cd54381a177933ca]::panicking::try::do_call::<core[8d9672d5584755be]::panic::unwind_safe::AssertUnwindSafe<<std[cd54381a177933ca]::thread::Builder>::spawn_unchecked_<rustc_interface[bb7f2a6353b38934]::util::run_in_thread_with_globals<rustc_interface[bb7f2a6353b38934]::util::run_in_thread_pool_with_globals<rustc_interface[bb7f2a6353b38934]::interface::run_compiler<(), rustc_driver_impl[b803c1eededc3934]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()>::{closure#1}::{closure#0}>, ()>
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/library/std/src/panicking.rs:589:40
 139:     0x74b1a93fadc8 - std[cd54381a177933ca]::panicking::try::<(), core[8d9672d5584755be]::panic::unwind_safe::AssertUnwindSafe<<std[cd54381a177933ca]::thread::Builder>::spawn_unchecked_<rustc_interface[bb7f2a6353b38934]::util::run_in_thread_with_globals<rustc_interface[bb7f2a6353b38934]::util::run_in_thread_pool_with_globals<rustc_interface[bb7f2a6353b38934]::interface::run_compiler<(), rustc_driver_impl[b803c1eededc3934]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()>::{closure#1}::{closure#0}>>
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/library/std/src/panicking.rs:552:19
 140:     0x74b1a93fadc8 - std[cd54381a177933ca]::panic::catch_unwind::<core[8d9672d5584755be]::panic::unwind_safe::AssertUnwindSafe<<std[cd54381a177933ca]::thread::Builder>::spawn_unchecked_<rustc_interface[bb7f2a6353b38934]::util::run_in_thread_with_globals<rustc_interface[bb7f2a6353b38934]::util::run_in_thread_pool_with_globals<rustc_interface[bb7f2a6353b38934]::interface::run_compiler<(), rustc_driver_impl[b803c1eededc3934]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()>::{closure#1}::{closure#0}>, ()>
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/library/std/src/panic.rs:359:14
 141:     0x74b1a93fadc8 - <std[cd54381a177933ca]::thread::Builder>::spawn_unchecked_::<rustc_interface[bb7f2a6353b38934]::util::run_in_thread_with_globals<rustc_interface[bb7f2a6353b38934]::util::run_in_thread_pool_with_globals<rustc_interface[bb7f2a6353b38934]::interface::run_compiler<(), rustc_driver_impl[b803c1eededc3934]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()>::{closure#1}
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/library/std/src/thread/mod.rs:557:30
 142:     0x74b1a93fadc8 - <<std[cd54381a177933ca]::thread::Builder>::spawn_unchecked_<rustc_interface[bb7f2a6353b38934]::util::run_in_thread_with_globals<rustc_interface[bb7f2a6353b38934]::util::run_in_thread_pool_with_globals<rustc_interface[bb7f2a6353b38934]::interface::run_compiler<(), rustc_driver_impl[b803c1eededc3934]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()>::{closure#1} as core[8d9672d5584755be]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/library/core/src/ops/function.rs:250:5
 143:     0x74b1acef4cd4 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::hc89bcfe5b196542d
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/library/alloc/src/boxed.rs:1966:9
 144:     0x74b1acef4cd4 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::hdeda1a4e8bbfb163
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/library/alloc/src/boxed.rs:1966:9
 145:     0x74b1acef4cd4 - std::sys::pal::unix::thread::Thread::new::thread_start::ha221d69a9add5217
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/library/std/src/sys/pal/unix/thread.rs:109:17
 146:     0x74b1a449caa4 - start_thread
                               at ./nptl/pthread_create.c:447:8
 147:     0x74b1a4529c3c - clone3
                               at ./misc/../sysdeps/unix/sysv/linux/x86_64/clone3.S:78:0
 148:                0x0 - <unknown>

error: 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: please make sure that you have updated to the latest nightly

note: rustc 1.88.0-dev running on x86_64-unknown-linux-gnu

note: compiler flags: -Z dump-mir-dir=dir

query stack during panic:
#0 [typeck] type-checking `main`
#1 [analysis] running analysis passes on this crate
end of query stack

@matthiaskrgr matthiaskrgr added C-bug Category: This is a bug. I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Apr 5, 2025
@rustbot rustbot added the needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. label Apr 5, 2025
@matthiaskrgr matthiaskrgr added the requires-debug-assertions This issue requires a build of rustc or tooling with debug-assertions in some way label Apr 5, 2025
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this issue Apr 7, 2025
…l-with-proj, r=oli-obk

Fix trait upcasting to dyn type with no principal when there are projections

rust-lang#126660 (which I had originally authored, lol) had a subtle bug that is the moral equivalent of rust-lang#114036, which is that when upcasting from `dyn Principal<Projection = Ty> + AutoTrait` to `dyn AutoTrait`, we were dropping the trait ref for `Principal` but not its projections (if there were any).

With debug assertions enabled, this triggers the assertion I luckily added in a2a0cfe, but even without debug assertions this is a logical bug since we had a dyn type with just a projection bound but no principal, so it caused a type mismatch.

This does not need an FCP because this should've been covered by the FCP in rust-lang#126660, but we just weren't testing a case when casting from a `dyn` type with projections 😸

Fixes rust-lang#139418

r? `@oli-obk` (or anyone)
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this issue Apr 7, 2025
…l-with-proj, r=oli-obk

Fix trait upcasting to dyn type with no principal when there are projections

rust-lang#126660 (which I had originally authored, lol) had a subtle bug that is the moral equivalent of rust-lang#114036, which is that when upcasting from `dyn Principal<Projection = Ty> + AutoTrait` to `dyn AutoTrait`, we were dropping the trait ref for `Principal` but not its projections (if there were any).

With debug assertions enabled, this triggers the assertion I luckily added in a2a0cfe, but even without debug assertions this is a logical bug since we had a dyn type with just a projection bound but no principal, so it caused a type mismatch.

This does not need an FCP because this should've been covered by the FCP in rust-lang#126660, but we just weren't testing a case when casting from a `dyn` type with projections 😸

Fixes rust-lang#139418

r? ``@oli-obk`` (or anyone)
Zalathar added a commit to Zalathar/rust that referenced this issue Apr 8, 2025
…l-with-proj, r=oli-obk

Fix trait upcasting to dyn type with no principal when there are projections

rust-lang#126660 (which I had originally authored, lol) had a subtle bug that is the moral equivalent of rust-lang#114036, which is that when upcasting from `dyn Principal<Projection = Ty> + AutoTrait` to `dyn AutoTrait`, we were dropping the trait ref for `Principal` but not its projections (if there were any).

With debug assertions enabled, this triggers the assertion I luckily added in a2a0cfe, but even without debug assertions this is a logical bug since we had a dyn type with just a projection bound but no principal, so it caused a type mismatch.

This does not need an FCP because this should've been covered by the FCP in rust-lang#126660, but we just weren't testing a case when casting from a `dyn` type with projections 😸

Fixes rust-lang#139418

r? ```@oli-obk``` (or anyone)
@bors bors closed this as completed in 056756c Apr 8, 2025
rust-timer added a commit to rust-lang-ci/rust that referenced this issue Apr 8, 2025
Rollup merge of rust-lang#139421 - compiler-errors:upcast-no-principal-with-proj, r=oli-obk

Fix trait upcasting to dyn type with no principal when there are projections

rust-lang#126660 (which I had originally authored, lol) had a subtle bug that is the moral equivalent of rust-lang#114036, which is that when upcasting from `dyn Principal<Projection = Ty> + AutoTrait` to `dyn AutoTrait`, we were dropping the trait ref for `Principal` but not its projections (if there were any).

With debug assertions enabled, this triggers the assertion I luckily added in a2a0cfe, but even without debug assertions this is a logical bug since we had a dyn type with just a projection bound but no principal, so it caused a type mismatch.

This does not need an FCP because this should've been covered by the FCP in rust-lang#126660, but we just weren't testing a case when casting from a `dyn` type with projections 😸

Fixes rust-lang#139418

r? ````@oli-obk```` (or anyone)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug. I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. requires-debug-assertions This issue requires a build of rustc or tooling with debug-assertions in some way T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants