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: borrowck for user-type with inferred higher ranked type #102047

Open
lcnr opened this issue Sep 20, 2022 · 4 comments
Open

ICE: borrowck for user-type with inferred higher ranked type #102047

lcnr opened this issue Sep 20, 2022 · 4 comments
Labels
A-associated-items Area: Associated items (types, constants & functions) A-borrow-checker Area: The borrow checker A-higher-ranked Area: Higher-ranked things (e.g., lifetimes, types, trait bounds aka HRTBs) C-bug Category: This is a bug. glacier ICE tracked in rust-lang/glacier. I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ S-bug-has-test Status: This bug is tracked inside the repo by a `known-bug` test. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Comments

@lcnr
Copy link
Contributor

lcnr commented Sep 20, 2022

struct Ty1;
struct Ty2;

pub trait Trait<T> {}

pub trait WithAssoc1<'a> {
    type Assoc;
}
pub trait WithAssoc2<'a> {
    type Assoc;
}

impl<T, U> Trait<for<'a> fn(<T as WithAssoc1<'a>>::Assoc, <U as WithAssoc2<'a>>::Assoc)> for (T, U)
where
    T: for<'a> WithAssoc1<'a> + for<'a> WithAssoc2<'a, Assoc = i32>,
    U: for<'a> WithAssoc2<'a>,
{
}

impl WithAssoc1<'_> for Ty1 {
    type Assoc = ();
}
impl WithAssoc2<'_> for Ty1 {
    type Assoc = i32;
}
impl WithAssoc1<'_> for Ty2 {
    type Assoc = ();
}
impl WithAssoc2<'_> for Ty2 {
    type Assoc = u32;
}

fn foo<T, U, V>()
where
    T: for<'a> WithAssoc1<'a>,
    U: for<'a> WithAssoc2<'a>,
    (T, U): Trait<V>,
{
}

fn main() {
    foo::<Ty1, Ty2, _>();
}

with the currently nightly/master:

lcnr@lcnr-PC:~/test3$ rustc +rust5 src/main.rs -Ztreat-err-as-bug
error: internal compiler error: broken MIR in DefId(0:36 ~ main[7626]::main) (CanonicalUserTypeAnnotation { user_ty: Canonical { max_universe: U0, variables: [CanonicalVarInfo { kind: Ty(General(U0)) }], value: TypeOf(DefId(0:30 ~ main[7626]::foo), UserSubsts { substs: [Ty1, Ty2, ^0], user_self_ty: None }) }, span: src/main.rs:42:5: 42:23 (#0), inferred_ty: fn() {foo::<Ty1, Ty2, for<'a> fn(<Ty1 as WithAssoc1<'a>>::Assoc, <Ty2 as WithAssoc2<'a>>::Assoc)>} }): bad user type AscribeUserType(fn() {foo::<Ty1, Ty2, fn((), u32)>}, DefId(0:30 ~ main[7626]::foo) UserSubsts { substs: [Ty1, Ty2, _], user_self_ty: None }, type_of=fn() {foo::<T, U, V>}): NoSolution

thread 'rustc' panicked at 'aborting due to `-Z treat-err-as-bug=1`', compiler/rustc_errors/src/lib.rs:1521:30
stack backtrace:
   0:     0x7fcbab533dcf - std::backtrace_rs::backtrace::libunwind::trace::hd20ff4bef6644879
                               at /home/lcnr/rust5/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
   1:     0x7fcbab533dcf - std::backtrace_rs::backtrace::trace_unsynchronized::h95f8931e36e2ccbb
                               at /home/lcnr/rust5/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
   2:     0x7fcbab533dcf - std::sys_common::backtrace::_print_fmt::hddb2b50c1d101882
                               at /home/lcnr/rust5/library/std/src/sys_common/backtrace.rs:66:5
   3:     0x7fcbab533dcf - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::hc9fa7accaf3fb557
                               at /home/lcnr/rust5/library/std/src/sys_common/backtrace.rs:45:22
   4:     0x7fcbab5a3637 - core::fmt::write::h07ed722129e0f010
                               at /home/lcnr/rust5/library/core/src/fmt/mod.rs:1202:17
   5:     0x7fcbab4f29e1 - std::io::Write::write_fmt::hec1364ff27ab87af
                               at /home/lcnr/rust5/library/std/src/io/mod.rs:1679:15
   6:     0x7fcbab50dcee - std::sys_common::backtrace::_print::h4851e97b968f8bc1
                               at /home/lcnr/rust5/library/std/src/sys_common/backtrace.rs:48:5
   7:     0x7fcbab50dcee - std::sys_common::backtrace::print::h7e58c9e32144e3e5
                               at /home/lcnr/rust5/library/std/src/sys_common/backtrace.rs:35:9
   8:     0x7fcbab50dcee - std::panicking::default_hook::{{closure}}::h6b18fc8eb21b20af
                               at /home/lcnr/rust5/library/std/src/panicking.rs:295:22
   9:     0x7fcbab50d912 - std::panicking::default_hook::h43cf9c90d42006d3
                               at /home/lcnr/rust5/library/std/src/panicking.rs:314:9
  10:     0x7fcbabedd614 - <alloc[80dd55b925c99885]::boxed::Box<dyn for<'a, 'b> core[8098989836c52627]::ops::function::Fn<(&'a core[8098989836c52627]::panic::panic_info::PanicInfo<'b>,), Output = ()> + core[8098989836c52627]::marker::Send + core[8098989836c52627]::marker::Sync> as core[8098989836c52627]::ops::function::Fn<(&core[8098989836c52627]::panic::panic_info::PanicInfo,)>>::call
                               at /home/lcnr/rust5/library/alloc/src/boxed.rs:1954:9
  11:     0x7fcbabedd614 - rustc_driver[16e5abbf97700c74]::DEFAULT_HOOK::{closure#0}::{closure#0}
                               at /home/lcnr/rust5/compiler/rustc_driver/src/lib.rs:1191:13
  12:     0x7fcbab50e5c1 - std::panicking::rust_panic_with_hook::hcb645e49d328eb15
                               at /home/lcnr/rust5/library/std/src/panicking.rs:702:17
  13:     0x7fcbab534309 - std::panicking::begin_panic_handler::{{closure}}::hc19593853dda2211
                               at /home/lcnr/rust5/library/std/src/panicking.rs:586:13
  14:     0x7fcbab533f64 - std::sys_common::backtrace::__rust_end_short_backtrace::he0527de5565afce1
                               at /home/lcnr/rust5/library/std/src/sys_common/backtrace.rs:138:18
  15:     0x7fcbab50e062 - rust_begin_unwind
                               at /home/lcnr/rust5/library/std/src/panicking.rs:584:5
  16:     0x7fcbab4c0c33 - core::panicking::panic_fmt::h8552f6af28febf71
                               at /home/lcnr/rust5/library/core/src/panicking.rs:142:14
  17:     0x7fcbaf67dc1a - <rustc_errors[a46a9bf6b282e964]::HandlerInner>::panic_if_treat_err_as_bug
  18:     0x7fcbaf67d552 - <rustc_errors[a46a9bf6b282e964]::HandlerInner>::emit_diagnostic
  19:     0x7fcbad4c7ffa - <rustc_errors[a46a9bf6b282e964]::HandlerInner>::emit_diag_at_span::<rustc_span[2e69e5f9003c1337]::span_encoding::Span>
                               at /home/lcnr/rust5/compiler/rustc_errors/src/lib.rs:1404:9
  20:     0x7fcbad4c81b4 - <rustc_errors[a46a9bf6b282e964]::HandlerInner>::span_bug::<rustc_span[2e69e5f9003c1337]::span_encoding::Span, &str>
                               at /home/lcnr/rust5/compiler/rustc_errors/src/lib.rs:1399:9
  21:     0x7fcbad4c77ab - <rustc_errors[a46a9bf6b282e964]::HandlerInner>::delay_span_bug::<rustc_span[2e69e5f9003c1337]::span_encoding::Span, &str>
                               at /home/lcnr/rust5/compiler/rustc_errors/src/lib.rs:1420:13
  22:     0x7fcbad4c77ab - <rustc_errors[a46a9bf6b282e964]::Handler>::delay_span_bug::<rustc_span[2e69e5f9003c1337]::span_encoding::Span, &str>
                               at /home/lcnr/rust5/compiler/rustc_errors/src/lib.rs:930:9
  23:     0x7fcbad35a3cf - rustc_borrowck[2eafd248d03db329]::type_check::mirbug
                               at /home/lcnr/rust5/compiler/rustc_borrowck/src/type_check/mod.rs:284:5
  24:     0x7fcbad35a3cf - <rustc_borrowck[2eafd248d03db329]::type_check::TypeChecker>::check_user_type_annotations
                               at /home/lcnr/rust5/compiler/rustc_borrowck/src/type_check/mod.rs:1091:25
  25:     0x7fcbad35a3cf - <rustc_borrowck[2eafd248d03db329]::type_check::TypeChecker>::new
                               at /home/lcnr/rust5/compiler/rustc_borrowck/src/type_check/mod.rs:1032:9
  26:     0x7fcbad35a3cf - rustc_borrowck[2eafd248d03db329]::type_check::type_check
                               at /home/lcnr/rust5/compiler/rustc_borrowck/src/type_check/mod.rs:182:23
  27:     0x7fcbad4bd476 - rustc_borrowck[2eafd248d03db329]::nll::compute_regions
                               at /home/lcnr/rust5/compiler/rustc_borrowck/src/nll.rs:179:9
  28:     0x7fcbad5501ea - rustc_borrowck[2eafd248d03db329]::do_mir_borrowck
                               at /home/lcnr/rust5/compiler/rustc_borrowck/src/lib.rs:249:9
  29:     0x7fcbad47283c - rustc_borrowck[2eafd248d03db329]::mir_borrowck::{closure#0}
                               at /home/lcnr/rust5/compiler/rustc_borrowck/src/lib.rs:141:13
  30:     0x7fcbad47283c - <rustc_infer[dee413562b52703f]::infer::InferCtxtBuilder>::enter::<rustc_middle[3c3b5f974f7b2fd1]::mir::query::BorrowCheckResult, rustc_borrowck[2eafd248d03db329]::mir_borrowck::{closure#0}>
                               at /home/lcnr/rust5/compiler/rustc_infer/src/infer/mod.rs:647:9
  31:     0x7fcbad53c336 - rustc_borrowck[2eafd248d03db329]::mir_borrowck
                               at /home/lcnr/rust5/compiler/rustc_borrowck/src/lib.rs:135:27
  32:     0x7fcbad4fd6b4 - rustc_borrowck[2eafd248d03db329]::provide::{closure#0}
                               at /home/lcnr/rust5/compiler/rustc_borrowck/src/lib.rs:117:17
  33:     0x7fcbad4fd6b4 - <rustc_borrowck[2eafd248d03db329]::provide::{closure#0} as core[8098989836c52627]::ops::function::FnOnce<(rustc_middle[3c3b5f974f7b2fd1]::ty::context::TyCtxt, rustc_span[2e69e5f9003c1337]::def_id::LocalDefId)>>::call_once
                               at /home/lcnr/rust5/library/core/src/ops/function.rs:248:5
  34:     0x7fcbae0b1607 - <rustc_query_system[a79fb6d6846d1a09]::query::config::QueryVTable<rustc_query_impl[213a4fce8074fd44]::plumbing::QueryCtxt, rustc_span[2e69e5f9003c1337]::def_id::LocalDefId, &rustc_middle[3c3b5f974f7b2fd1]::mir::query::BorrowCheckResult>>::compute
                               at /home/lcnr/rust5/compiler/rustc_query_system/src/query/config.rs:45:9
  35:     0x7fcbae0b1607 - rustc_query_system[a79fb6d6846d1a09]::query::plumbing::execute_job::<rustc_query_impl[213a4fce8074fd44]::plumbing::QueryCtxt, rustc_span[2e69e5f9003c1337]::def_id::LocalDefId, &rustc_middle[3c3b5f974f7b2fd1]::mir::query::BorrowCheckResult>::{closure#0}
                               at /home/lcnr/rust5/compiler/rustc_query_system/src/query/plumbing.rs:415:13
  36:     0x7fcbae0b1607 - stacker[71a8742d4fb21e74]::maybe_grow::<&rustc_middle[3c3b5f974f7b2fd1]::mir::query::BorrowCheckResult, rustc_query_system[a79fb6d6846d1a09]::query::plumbing::execute_job<rustc_query_impl[213a4fce8074fd44]::plumbing::QueryCtxt, rustc_span[2e69e5f9003c1337]::def_id::LocalDefId, &rustc_middle[3c3b5f974f7b2fd1]::mir::query::BorrowCheckResult>::{closure#0}>
                               at /home/lcnr/rust5/compiler/rustc_data_structures/src/stack.rs:17:5
  37:     0x7fcbae0b1607 - rustc_data_structures[54cbabd415372ba8]::stack::ensure_sufficient_stack::<&rustc_middle[3c3b5f974f7b2fd1]::mir::query::BorrowCheckResult, rustc_query_system[a79fb6d6846d1a09]::query::plumbing::execute_job<rustc_query_impl[213a4fce8074fd44]::plumbing::QueryCtxt, rustc_span[2e69e5f9003c1337]::def_id::LocalDefId, &rustc_middle[3c3b5f974f7b2fd1]::mir::query::BorrowCheckResult>::{closure#0}>
                               at /home/lcnr/rust5/compiler/rustc_data_structures/src/stack.rs:17:5
  38:     0x7fcbae0b1607 - <rustc_query_impl[213a4fce8074fd44]::plumbing::QueryCtxt as rustc_query_system[a79fb6d6846d1a09]::query::QueryContext>::start_query::<&rustc_middle[3c3b5f974f7b2fd1]::mir::query::BorrowCheckResult, rustc_query_system[a79fb6d6846d1a09]::query::plumbing::execute_job<rustc_query_impl[213a4fce8074fd44]::plumbing::QueryCtxt, rustc_span[2e69e5f9003c1337]::def_id::LocalDefId, &rustc_middle[3c3b5f974f7b2fd1]::mir::query::BorrowCheckResult>::{closure#0}>::{closure#0}::{closure#0}
                               at /home/lcnr/rust5/compiler/rustc_query_impl/src/plumbing.rs:128:17
  39:     0x7fcbae0b1607 - rustc_middle[3c3b5f974f7b2fd1]::ty::context::tls::enter_context::<<rustc_query_impl[213a4fce8074fd44]::plumbing::QueryCtxt as rustc_query_system[a79fb6d6846d1a09]::query::QueryContext>::start_query<&rustc_middle[3c3b5f974f7b2fd1]::mir::query::BorrowCheckResult, rustc_query_system[a79fb6d6846d1a09]::query::plumbing::execute_job<rustc_query_impl[213a4fce8074fd44]::plumbing::QueryCtxt, rustc_span[2e69e5f9003c1337]::def_id::LocalDefId, &rustc_middle[3c3b5f974f7b2fd1]::mir::query::BorrowCheckResult>::{closure#0}>::{closure#0}::{closure#0}, &rustc_middle[3c3b5f974f7b2fd1]::mir::query::BorrowCheckResult>::{closure#0}
                               at /home/lcnr/rust5/compiler/rustc_middle/src/ty/context.rs:1930:50
  40:     0x7fcbae0b1607 - rustc_middle[3c3b5f974f7b2fd1]::ty::context::tls::set_tlv::<rustc_middle[3c3b5f974f7b2fd1]::ty::context::tls::enter_context<<rustc_query_impl[213a4fce8074fd44]::plumbing::QueryCtxt as rustc_query_system[a79fb6d6846d1a09]::query::QueryContext>::start_query<&rustc_middle[3c3b5f974f7b2fd1]::mir::query::BorrowCheckResult, rustc_query_system[a79fb6d6846d1a09]::query::plumbing::execute_job<rustc_query_impl[213a4fce8074fd44]::plumbing::QueryCtxt, rustc_span[2e69e5f9003c1337]::def_id::LocalDefId, &rustc_middle[3c3b5f974f7b2fd1]::mir::query::BorrowCheckResult>::{closure#0}>::{closure#0}::{closure#0}, &rustc_middle[3c3b5f974f7b2fd1]::mir::query::BorrowCheckResult>::{closure#0}, &rustc_middle[3c3b5f974f7b2fd1]::mir::query::BorrowCheckResult>
                               at /home/lcnr/rust5/compiler/rustc_middle/src/ty/context.rs:1914:9
  41:     0x7fcbae0b1607 - rustc_middle[3c3b5f974f7b2fd1]::ty::context::tls::enter_context::<<rustc_query_impl[213a4fce8074fd44]::plumbing::QueryCtxt as rustc_query_system[a79fb6d6846d1a09]::query::QueryContext>::start_query<&rustc_middle[3c3b5f974f7b2fd1]::mir::query::BorrowCheckResult, rustc_query_system[a79fb6d6846d1a09]::query::plumbing::execute_job<rustc_query_impl[213a4fce8074fd44]::plumbing::QueryCtxt, rustc_span[2e69e5f9003c1337]::def_id::LocalDefId, &rustc_middle[3c3b5f974f7b2fd1]::mir::query::BorrowCheckResult>::{closure#0}>::{closure#0}::{closure#0}, &rustc_middle[3c3b5f974f7b2fd1]::mir::query::BorrowCheckResult>
                               at /home/lcnr/rust5/compiler/rustc_query_impl/src/plumbing.rs:127:13
  42:     0x7fcbae0b1607 - <rustc_query_impl[213a4fce8074fd44]::plumbing::QueryCtxt as rustc_query_system[a79fb6d6846d1a09]::query::QueryContext>::start_query::<&rustc_middle[3c3b5f974f7b2fd1]::mir::query::BorrowCheckResult, rustc_query_system[a79fb6d6846d1a09]::query::plumbing::execute_job<rustc_query_impl[213a4fce8074fd44]::plumbing::QueryCtxt, rustc_span[2e69e5f9003c1337]::def_id::LocalDefId, &rustc_middle[3c3b5f974f7b2fd1]::mir::query::BorrowCheckResult>::{closure#0}>::{closure#0}
                               at /home/lcnr/rust5/compiler/rustc_query_impl/src/plumbing.rs:127:13
  43:     0x7fcbae0b1607 - rustc_middle[3c3b5f974f7b2fd1]::ty::context::tls::with_related_context::<<rustc_query_impl[213a4fce8074fd44]::plumbing::QueryCtxt as rustc_query_system[a79fb6d6846d1a09]::query::QueryContext>::start_query<&rustc_middle[3c3b5f974f7b2fd1]::mir::query::BorrowCheckResult, rustc_query_system[a79fb6d6846d1a09]::query::plumbing::execute_job<rustc_query_impl[213a4fce8074fd44]::plumbing::QueryCtxt, rustc_span[2e69e5f9003c1337]::def_id::LocalDefId, &rustc_middle[3c3b5f974f7b2fd1]::mir::query::BorrowCheckResult>::{closure#0}>::{closure#0}, &rustc_middle[3c3b5f974f7b2fd1]::mir::query::BorrowCheckResult>::{closure#0}
                               at /home/lcnr/rust5/compiler/rustc_middle/src/ty/context.rs:1974:13
  44:     0x7fcbae0b1607 - rustc_middle[3c3b5f974f7b2fd1]::ty::context::tls::with_context::<rustc_middle[3c3b5f974f7b2fd1]::ty::context::tls::with_related_context<<rustc_query_impl[213a4fce8074fd44]::plumbing::QueryCtxt as rustc_query_system[a79fb6d6846d1a09]::query::QueryContext>::start_query<&rustc_middle[3c3b5f974f7b2fd1]::mir::query::BorrowCheckResult, rustc_query_system[a79fb6d6846d1a09]::query::plumbing::execute_job<rustc_query_impl[213a4fce8074fd44]::plumbing::QueryCtxt, rustc_span[2e69e5f9003c1337]::def_id::LocalDefId, &rustc_middle[3c3b5f974f7b2fd1]::mir::query::BorrowCheckResult>::{closure#0}>::{closure#0}, &rustc_middle[3c3b5f974f7b2fd1]::mir::query::BorrowCheckResult>::{closure#0}, &rustc_middle[3c3b5f974f7b2fd1]::mir::query::BorrowCheckResult>::{closure#0}
                               at /home/lcnr/rust5/compiler/rustc_middle/src/ty/context.rs:1958:40
  45:     0x7fcbae0b1607 - rustc_middle[3c3b5f974f7b2fd1]::ty::context::tls::with_context_opt::<rustc_middle[3c3b5f974f7b2fd1]::ty::context::tls::with_context<rustc_middle[3c3b5f974f7b2fd1]::ty::context::tls::with_related_context<<rustc_query_impl[213a4fce8074fd44]::plumbing::QueryCtxt as rustc_query_system[a79fb6d6846d1a09]::query::QueryContext>::start_query<&rustc_middle[3c3b5f974f7b2fd1]::mir::query::BorrowCheckResult, rustc_query_system[a79fb6d6846d1a09]::query::plumbing::execute_job<rustc_query_impl[213a4fce8074fd44]::plumbing::QueryCtxt, rustc_span[2e69e5f9003c1337]::def_id::LocalDefId, &rustc_middle[3c3b5f974f7b2fd1]::mir::query::BorrowCheckResult>::{closure#0}>::{closure#0}, &rustc_middle[3c3b5f974f7b2fd1]::mir::query::BorrowCheckResult>::{closure#0}, &rustc_middle[3c3b5f974f7b2fd1]::mir::query::BorrowCheckResult>::{closure#0}, &rustc_middle[3c3b5f974f7b2fd1]::mir::query::BorrowCheckResult>
                               at /home/lcnr/rust5/compiler/rustc_middle/src/ty/context.rs:1947:22
  46:     0x7fcbae0b1607 - rustc_middle[3c3b5f974f7b2fd1]::ty::context::tls::with_context::<rustc_middle[3c3b5f974f7b2fd1]::ty::context::tls::with_related_context<<rustc_query_impl[213a4fce8074fd44]::plumbing::QueryCtxt as rustc_query_system[a79fb6d6846d1a09]::query::QueryContext>::start_query<&rustc_middle[3c3b5f974f7b2fd1]::mir::query::BorrowCheckResult, rustc_query_system[a79fb6d6846d1a09]::query::plumbing::execute_job<rustc_query_impl[213a4fce8074fd44]::plumbing::QueryCtxt, rustc_span[2e69e5f9003c1337]::def_id::LocalDefId, &rustc_middle[3c3b5f974f7b2fd1]::mir::query::BorrowCheckResult>::{closure#0}>::{closure#0}, &rustc_middle[3c3b5f974f7b2fd1]::mir::query::BorrowCheckResult>::{closure#0}, &rustc_middle[3c3b5f974f7b2fd1]::mir::query::BorrowCheckResult>
                               at /home/lcnr/rust5/compiler/rustc_query_impl/src/plumbing.rs:112:9
  47:     0x7fcbae0b1607 - rustc_middle[3c3b5f974f7b2fd1]::ty::context::tls::with_related_context::<<rustc_query_impl[213a4fce8074fd44]::plumbing::QueryCtxt as rustc_query_system[a79fb6d6846d1a09]::query::QueryContext>::start_query<&rustc_middle[3c3b5f974f7b2fd1]::mir::query::BorrowCheckResult, rustc_query_system[a79fb6d6846d1a09]::query::plumbing::execute_job<rustc_query_impl[213a4fce8074fd44]::plumbing::QueryCtxt, rustc_span[2e69e5f9003c1337]::def_id::LocalDefId, &rustc_middle[3c3b5f974f7b2fd1]::mir::query::BorrowCheckResult>::{closure#0}>::{closure#0}, &rustc_middle[3c3b5f974f7b2fd1]::mir::query::BorrowCheckResult>
                               at /home/lcnr/rust5/compiler/rustc_middle/src/ty/context.rs:1971:9
  48:     0x7fcbae0b1607 - <rustc_query_impl[213a4fce8074fd44]::plumbing::QueryCtxt as rustc_query_system[a79fb6d6846d1a09]::query::QueryContext>::start_query::<&rustc_middle[3c3b5f974f7b2fd1]::mir::query::BorrowCheckResult, rustc_query_system[a79fb6d6846d1a09]::query::plumbing::execute_job<rustc_query_impl[213a4fce8074fd44]::plumbing::QueryCtxt, rustc_span[2e69e5f9003c1337]::def_id::LocalDefId, &rustc_middle[3c3b5f974f7b2fd1]::mir::query::BorrowCheckResult>::{closure#0}>
                               at /home/lcnr/rust5/compiler/rustc_query_impl/src/plumbing.rs:112:9
  49:     0x7fcbae0b1607 - rustc_query_system[a79fb6d6846d1a09]::query::plumbing::execute_job::<rustc_query_impl[213a4fce8074fd44]::plumbing::QueryCtxt, rustc_span[2e69e5f9003c1337]::def_id::LocalDefId, &rustc_middle[3c3b5f974f7b2fd1]::mir::query::BorrowCheckResult>
                               at /home/lcnr/rust5/compiler/rustc_query_system/src/query/plumbing.rs:414:22
  50:     0x7fcbae0b1607 - rustc_query_system[a79fb6d6846d1a09]::query::plumbing::try_execute_query::<rustc_query_impl[213a4fce8074fd44]::plumbing::QueryCtxt, rustc_query_system[a79fb6d6846d1a09]::query::caches::DefaultCache<rustc_span[2e69e5f9003c1337]::def_id::LocalDefId, &rustc_middle[3c3b5f974f7b2fd1]::mir::query::BorrowCheckResult>>
                               at /home/lcnr/rust5/compiler/rustc_query_system/src/query/plumbing.rs:373:44
  51:     0x7fcbae1991d4 - rustc_query_system[a79fb6d6846d1a09]::query::plumbing::get_query::<rustc_query_impl[213a4fce8074fd44]::queries::mir_borrowck, rustc_query_impl[213a4fce8074fd44]::plumbing::QueryCtxt>
                               at /home/lcnr/rust5/compiler/rustc_query_system/src/query/plumbing.rs:733:36
  52:     0x7fcbadfd1840 - <rustc_query_impl[213a4fce8074fd44]::Queries as rustc_middle[3c3b5f974f7b2fd1]::ty::query::QueryEngine>::mir_borrowck::{closure#0}
                               at /home/lcnr/rust5/compiler/rustc_query_impl/src/plumbing.rs:642:17
  53:     0x7fcbadfd1840 - <rustc_query_impl[213a4fce8074fd44]::Queries as rustc_middle[3c3b5f974f7b2fd1]::ty::query::QueryEngine>::mir_borrowck
                               at /home/lcnr/rust5/compiler/rustc_query_impl/src/lib.rs:54:1
  54:     0x7fcbac1382b1 - <rustc_middle[3c3b5f974f7b2fd1]::ty::query::TyCtxtEnsure>::mir_borrowck
                               at /home/lcnr/rust5/compiler/rustc_interface/src/passes.rs:907:44
  55:     0x7fcbac1382b1 - rustc_interface[c555082e3b8ef9c2]::passes::analysis::{closure#2}::{closure#0}
                               at /home/lcnr/rust5/compiler/rustc_interface/src/passes.rs:907:44
  56:     0x7fcbac1382b1 - <rustc_middle[3c3b5f974f7b2fd1]::hir::map::Map>::par_body_owners::<rustc_interface[c555082e3b8ef9c2]::passes::analysis::{closure#2}::{closure#0}>::{closure#0}
                               at /home/lcnr/rust5/compiler/rustc_middle/src/hir/map/mod.rs:490:82
  57:     0x7fcbac1382b1 - rustc_data_structures[54cbabd415372ba8]::sync::par_for_each_in::<&[rustc_span[2e69e5f9003c1337]::def_id::LocalDefId], <rustc_middle[3c3b5f974f7b2fd1]::hir::map::Map>::par_body_owners<rustc_interface[c555082e3b8ef9c2]::passes::analysis::{closure#2}::{closure#0}>::{closure#0}>::{closure#0}::{closure#0}
                               at /home/lcnr/rust5/compiler/rustc_data_structures/src/sync.rs:152:66
  58:     0x7fcbac1382b1 - <core[8098989836c52627]::panic::unwind_safe::AssertUnwindSafe<rustc_data_structures[54cbabd415372ba8]::sync::par_for_each_in<&[rustc_span[2e69e5f9003c1337]::def_id::LocalDefId], <rustc_middle[3c3b5f974f7b2fd1]::hir::map::Map>::par_body_owners<rustc_interface[c555082e3b8ef9c2]::passes::analysis::{closure#2}::{closure#0}>::{closure#0}>::{closure#0}::{closure#0}> as core[8098989836c52627]::ops::function::FnOnce<()>>::call_once
                               at /home/lcnr/rust5/library/core/src/panic/unwind_safe.rs:271:9
  59:     0x7fcbac04d4ab - std[74ac5f44f4564a1b]::panicking::try::do_call::<core[8098989836c52627]::panic::unwind_safe::AssertUnwindSafe<rustc_data_structures[54cbabd415372ba8]::sync::par_for_each_in<&[rustc_span[2e69e5f9003c1337]::def_id::LocalDefId], <rustc_middle[3c3b5f974f7b2fd1]::hir::map::Map>::par_body_owners<rustc_interface[c555082e3b8ef9c2]::passes::analysis::{closure#2}::{closure#0}>::{closure#0}>::{closure#0}::{closure#0}>, ()>
                               at /home/lcnr/rust5/library/std/src/panicking.rs:492:40
  60:     0x7fcbac04d4ab - std[74ac5f44f4564a1b]::panicking::try::<(), core[8098989836c52627]::panic::unwind_safe::AssertUnwindSafe<rustc_data_structures[54cbabd415372ba8]::sync::par_for_each_in<&[rustc_span[2e69e5f9003c1337]::def_id::LocalDefId], <rustc_middle[3c3b5f974f7b2fd1]::hir::map::Map>::par_body_owners<rustc_interface[c555082e3b8ef9c2]::passes::analysis::{closure#2}::{closure#0}>::{closure#0}>::{closure#0}::{closure#0}>>
                               at /home/lcnr/rust5/library/std/src/panicking.rs:456:19
  61:     0x7fcbac04d4ab - std[74ac5f44f4564a1b]::panic::catch_unwind::<core[8098989836c52627]::panic::unwind_safe::AssertUnwindSafe<rustc_data_structures[54cbabd415372ba8]::sync::par_for_each_in<&[rustc_span[2e69e5f9003c1337]::def_id::LocalDefId], <rustc_middle[3c3b5f974f7b2fd1]::hir::map::Map>::par_body_owners<rustc_interface[c555082e3b8ef9c2]::passes::analysis::{closure#2}::{closure#0}>::{closure#0}>::{closure#0}::{closure#0}>, ()>
                               at /home/lcnr/rust5/library/std/src/panic.rs:137:14
  62:     0x7fcbac04d4ab - rustc_data_structures[54cbabd415372ba8]::sync::par_for_each_in::<&[rustc_span[2e69e5f9003c1337]::def_id::LocalDefId], <rustc_middle[3c3b5f974f7b2fd1]::hir::map::Map>::par_body_owners<rustc_interface[c555082e3b8ef9c2]::passes::analysis::{closure#2}::{closure#0}>::{closure#0}>::{closure#0}
                               at /home/lcnr/rust5/compiler/rustc_data_structures/src/sync.rs:152:33
  63:     0x7fcbac04d4ab - <core[8098989836c52627]::slice::iter::Iter<rustc_span[2e69e5f9003c1337]::def_id::LocalDefId> as core[8098989836c52627]::iter::traits::iterator::Iterator>::for_each::<rustc_data_structures[54cbabd415372ba8]::sync::par_for_each_in<&[rustc_span[2e69e5f9003c1337]::def_id::LocalDefId], <rustc_middle[3c3b5f974f7b2fd1]::hir::map::Map>::par_body_owners<rustc_interface[c555082e3b8ef9c2]::passes::analysis::{closure#2}::{closure#0}>::{closure#0}>::{closure#0}>
                               at /home/lcnr/rust5/library/core/src/slice/iter/macros.rs:211:21
  64:     0x7fcbac04d4ab - rustc_data_structures[54cbabd415372ba8]::sync::par_for_each_in::<&[rustc_span[2e69e5f9003c1337]::def_id::LocalDefId], <rustc_middle[3c3b5f974f7b2fd1]::hir::map::Map>::par_body_owners<rustc_interface[c555082e3b8ef9c2]::passes::analysis::{closure#2}::{closure#0}>::{closure#0}>
                               at /home/lcnr/rust5/compiler/rustc_data_structures/src/sync.rs:151:13
  65:     0x7fcbac0a8797 - <rustc_middle[3c3b5f974f7b2fd1]::hir::map::Map>::par_body_owners::<rustc_interface[c555082e3b8ef9c2]::passes::analysis::{closure#2}::{closure#0}>
                               at /home/lcnr/rust5/compiler/rustc_middle/src/hir/map/mod.rs:490:9
  66:     0x7fcbac0a8797 - rustc_interface[c555082e3b8ef9c2]::passes::analysis::{closure#2}
                               at /home/lcnr/rust5/compiler/rustc_interface/src/passes.rs:907:9
  67:     0x7fcbac0a8797 - <rustc_data_structures[54cbabd415372ba8]::profiling::VerboseTimingGuard>::run::<(), rustc_interface[c555082e3b8ef9c2]::passes::analysis::{closure#2}>
                               at /home/lcnr/rust5/compiler/rustc_session/src/utils.rs:10:9
  68:     0x7fcbac0a8797 - <rustc_session[141b814a06f5fc3e]::session::Session>::time::<(), rustc_interface[c555082e3b8ef9c2]::passes::analysis::{closure#2}>
                               at /home/lcnr/rust5/compiler/rustc_session/src/utils.rs:10:9
  69:     0x7fcbac0a8797 - rustc_interface[c555082e3b8ef9c2]::passes::analysis
                               at /home/lcnr/rust5/compiler/rustc_interface/src/passes.rs:906:5
  70:     0x7fcbae107ab3 - <rustc_query_system[a79fb6d6846d1a09]::query::config::QueryVTable<rustc_query_impl[213a4fce8074fd44]::plumbing::QueryCtxt, (), core[8098989836c52627]::result::Result<(), rustc_errors[a46a9bf6b282e964]::ErrorGuaranteed>>>::compute
                               at /home/lcnr/rust5/compiler/rustc_query_system/src/query/config.rs:45:9
  71:     0x7fcbae107ab3 - rustc_query_system[a79fb6d6846d1a09]::query::plumbing::execute_job::<rustc_query_impl[213a4fce8074fd44]::plumbing::QueryCtxt, (), core[8098989836c52627]::result::Result<(), rustc_errors[a46a9bf6b282e964]::ErrorGuaranteed>>::{closure#0}
                               at /home/lcnr/rust5/compiler/rustc_query_system/src/query/plumbing.rs:415:13
  72:     0x7fcbae107ab3 - stacker[71a8742d4fb21e74]::maybe_grow::<core[8098989836c52627]::result::Result<(), rustc_errors[a46a9bf6b282e964]::ErrorGuaranteed>, rustc_query_system[a79fb6d6846d1a09]::query::plumbing::execute_job<rustc_query_impl[213a4fce8074fd44]::plumbing::QueryCtxt, (), core[8098989836c52627]::result::Result<(), rustc_errors[a46a9bf6b282e964]::ErrorGuaranteed>>::{closure#0}>
                               at /home/lcnr/rust5/compiler/rustc_data_structures/src/stack.rs:17:5
  73:     0x7fcbae107ab3 - rustc_data_structures[54cbabd415372ba8]::stack::ensure_sufficient_stack::<core[8098989836c52627]::result::Result<(), rustc_errors[a46a9bf6b282e964]::ErrorGuaranteed>, rustc_query_system[a79fb6d6846d1a09]::query::plumbing::execute_job<rustc_query_impl[213a4fce8074fd44]::plumbing::QueryCtxt, (), core[8098989836c52627]::result::Result<(), rustc_errors[a46a9bf6b282e964]::ErrorGuaranteed>>::{closure#0}>
                               at /home/lcnr/rust5/compiler/rustc_data_structures/src/stack.rs:17:5
  74:     0x7fcbae107ab3 - <rustc_query_impl[213a4fce8074fd44]::plumbing::QueryCtxt as rustc_query_system[a79fb6d6846d1a09]::query::QueryContext>::start_query::<core[8098989836c52627]::result::Result<(), rustc_errors[a46a9bf6b282e964]::ErrorGuaranteed>, rustc_query_system[a79fb6d6846d1a09]::query::plumbing::execute_job<rustc_query_impl[213a4fce8074fd44]::plumbing::QueryCtxt, (), core[8098989836c52627]::result::Result<(), rustc_errors[a46a9bf6b282e964]::ErrorGuaranteed>>::{closure#0}>::{closure#0}::{closure#0}
                               at /home/lcnr/rust5/compiler/rustc_query_impl/src/plumbing.rs:128:17
  75:     0x7fcbae107ab3 - rustc_middle[3c3b5f974f7b2fd1]::ty::context::tls::enter_context::<<rustc_query_impl[213a4fce8074fd44]::plumbing::QueryCtxt as rustc_query_system[a79fb6d6846d1a09]::query::QueryContext>::start_query<core[8098989836c52627]::result::Result<(), rustc_errors[a46a9bf6b282e964]::ErrorGuaranteed>, rustc_query_system[a79fb6d6846d1a09]::query::plumbing::execute_job<rustc_query_impl[213a4fce8074fd44]::plumbing::QueryCtxt, (), core[8098989836c52627]::result::Result<(), rustc_errors[a46a9bf6b282e964]::ErrorGuaranteed>>::{closure#0}>::{closure#0}::{closure#0}, core[8098989836c52627]::result::Result<(), rustc_errors[a46a9bf6b282e964]::ErrorGuaranteed>>::{closure#0}
                               at /home/lcnr/rust5/compiler/rustc_middle/src/ty/context.rs:1930:50
  76:     0x7fcbae107ab3 - rustc_middle[3c3b5f974f7b2fd1]::ty::context::tls::set_tlv::<rustc_middle[3c3b5f974f7b2fd1]::ty::context::tls::enter_context<<rustc_query_impl[213a4fce8074fd44]::plumbing::QueryCtxt as rustc_query_system[a79fb6d6846d1a09]::query::QueryContext>::start_query<core[8098989836c52627]::result::Result<(), rustc_errors[a46a9bf6b282e964]::ErrorGuaranteed>, rustc_query_system[a79fb6d6846d1a09]::query::plumbing::execute_job<rustc_query_impl[213a4fce8074fd44]::plumbing::QueryCtxt, (), core[8098989836c52627]::result::Result<(), rustc_errors[a46a9bf6b282e964]::ErrorGuaranteed>>::{closure#0}>::{closure#0}::{closure#0}, core[8098989836c52627]::result::Result<(), rustc_errors[a46a9bf6b282e964]::ErrorGuaranteed>>::{closure#0}, core[8098989836c52627]::result::Result<(), rustc_errors[a46a9bf6b282e964]::ErrorGuaranteed>>
                               at /home/lcnr/rust5/compiler/rustc_middle/src/ty/context.rs:1914:9
  77:     0x7fcbae107ab3 - rustc_middle[3c3b5f974f7b2fd1]::ty::context::tls::enter_context::<<rustc_query_impl[213a4fce8074fd44]::plumbing::QueryCtxt as rustc_query_system[a79fb6d6846d1a09]::query::QueryContext>::start_query<core[8098989836c52627]::result::Result<(), rustc_errors[a46a9bf6b282e964]::ErrorGuaranteed>, rustc_query_system[a79fb6d6846d1a09]::query::plumbing::execute_job<rustc_query_impl[213a4fce8074fd44]::plumbing::QueryCtxt, (), core[8098989836c52627]::result::Result<(), rustc_errors[a46a9bf6b282e964]::ErrorGuaranteed>>::{closure#0}>::{closure#0}::{closure#0}, core[8098989836c52627]::result::Result<(), rustc_errors[a46a9bf6b282e964]::ErrorGuaranteed>>
                               at /home/lcnr/rust5/compiler/rustc_query_impl/src/plumbing.rs:127:13
  78:     0x7fcbae107ab3 - <rustc_query_impl[213a4fce8074fd44]::plumbing::QueryCtxt as rustc_query_system[a79fb6d6846d1a09]::query::QueryContext>::start_query::<core[8098989836c52627]::result::Result<(), rustc_errors[a46a9bf6b282e964]::ErrorGuaranteed>, rustc_query_system[a79fb6d6846d1a09]::query::plumbing::execute_job<rustc_query_impl[213a4fce8074fd44]::plumbing::QueryCtxt, (), core[8098989836c52627]::result::Result<(), rustc_errors[a46a9bf6b282e964]::ErrorGuaranteed>>::{closure#0}>::{closure#0}
                               at /home/lcnr/rust5/compiler/rustc_query_impl/src/plumbing.rs:127:13
  79:     0x7fcbae107ab3 - rustc_middle[3c3b5f974f7b2fd1]::ty::context::tls::with_related_context::<<rustc_query_impl[213a4fce8074fd44]::plumbing::QueryCtxt as rustc_query_system[a79fb6d6846d1a09]::query::QueryContext>::start_query<core[8098989836c52627]::result::Result<(), rustc_errors[a46a9bf6b282e964]::ErrorGuaranteed>, rustc_query_system[a79fb6d6846d1a09]::query::plumbing::execute_job<rustc_query_impl[213a4fce8074fd44]::plumbing::QueryCtxt, (), core[8098989836c52627]::result::Result<(), rustc_errors[a46a9bf6b282e964]::ErrorGuaranteed>>::{closure#0}>::{closure#0}, core[8098989836c52627]::result::Result<(), rustc_errors[a46a9bf6b282e964]::ErrorGuaranteed>>::{closure#0}
                               at /home/lcnr/rust5/compiler/rustc_middle/src/ty/context.rs:1974:13
  80:     0x7fcbae107ab3 - rustc_middle[3c3b5f974f7b2fd1]::ty::context::tls::with_context::<rustc_middle[3c3b5f974f7b2fd1]::ty::context::tls::with_related_context<<rustc_query_impl[213a4fce8074fd44]::plumbing::QueryCtxt as rustc_query_system[a79fb6d6846d1a09]::query::QueryContext>::start_query<core[8098989836c52627]::result::Result<(), rustc_errors[a46a9bf6b282e964]::ErrorGuaranteed>, rustc_query_system[a79fb6d6846d1a09]::query::plumbing::execute_job<rustc_query_impl[213a4fce8074fd44]::plumbing::QueryCtxt, (), core[8098989836c52627]::result::Result<(), rustc_errors[a46a9bf6b282e964]::ErrorGuaranteed>>::{closure#0}>::{closure#0}, core[8098989836c52627]::result::Result<(), rustc_errors[a46a9bf6b282e964]::ErrorGuaranteed>>::{closure#0}, core[8098989836c52627]::result::Result<(), rustc_errors[a46a9bf6b282e964]::ErrorGuaranteed>>::{closure#0}
                               at /home/lcnr/rust5/compiler/rustc_middle/src/ty/context.rs:1958:40
  81:     0x7fcbae107ab3 - rustc_middle[3c3b5f974f7b2fd1]::ty::context::tls::with_context_opt::<rustc_middle[3c3b5f974f7b2fd1]::ty::context::tls::with_context<rustc_middle[3c3b5f974f7b2fd1]::ty::context::tls::with_related_context<<rustc_query_impl[213a4fce8074fd44]::plumbing::QueryCtxt as rustc_query_system[a79fb6d6846d1a09]::query::QueryContext>::start_query<core[8098989836c52627]::result::Result<(), rustc_errors[a46a9bf6b282e964]::ErrorGuaranteed>, rustc_query_system[a79fb6d6846d1a09]::query::plumbing::execute_job<rustc_query_impl[213a4fce8074fd44]::plumbing::QueryCtxt, (), core[8098989836c52627]::result::Result<(), rustc_errors[a46a9bf6b282e964]::ErrorGuaranteed>>::{closure#0}>::{closure#0}, core[8098989836c52627]::result::Result<(), rustc_errors[a46a9bf6b282e964]::ErrorGuaranteed>>::{closure#0}, core[8098989836c52627]::result::Result<(), rustc_errors[a46a9bf6b282e964]::ErrorGuaranteed>>::{closure#0}, core[8098989836c52627]::result::Result<(), rustc_errors[a46a9bf6b282e964]::ErrorGuaranteed>>
                               at /home/lcnr/rust5/compiler/rustc_middle/src/ty/context.rs:1947:22
  82:     0x7fcbae107ab3 - rustc_middle[3c3b5f974f7b2fd1]::ty::context::tls::with_context::<rustc_middle[3c3b5f974f7b2fd1]::ty::context::tls::with_related_context<<rustc_query_impl[213a4fce8074fd44]::plumbing::QueryCtxt as rustc_query_system[a79fb6d6846d1a09]::query::QueryContext>::start_query<core[8098989836c52627]::result::Result<(), rustc_errors[a46a9bf6b282e964]::ErrorGuaranteed>, rustc_query_system[a79fb6d6846d1a09]::query::plumbing::execute_job<rustc_query_impl[213a4fce8074fd44]::plumbing::QueryCtxt, (), core[8098989836c52627]::result::Result<(), rustc_errors[a46a9bf6b282e964]::ErrorGuaranteed>>::{closure#0}>::{closure#0}, core[8098989836c52627]::result::Result<(), rustc_errors[a46a9bf6b282e964]::ErrorGuaranteed>>::{closure#0}, core[8098989836c52627]::result::Result<(), rustc_errors[a46a9bf6b282e964]::ErrorGuaranteed>>
                               at /home/lcnr/rust5/compiler/rustc_query_impl/src/plumbing.rs:112:9
  83:     0x7fcbae107ab3 - rustc_middle[3c3b5f974f7b2fd1]::ty::context::tls::with_related_context::<<rustc_query_impl[213a4fce8074fd44]::plumbing::QueryCtxt as rustc_query_system[a79fb6d6846d1a09]::query::QueryContext>::start_query<core[8098989836c52627]::result::Result<(), rustc_errors[a46a9bf6b282e964]::ErrorGuaranteed>, rustc_query_system[a79fb6d6846d1a09]::query::plumbing::execute_job<rustc_query_impl[213a4fce8074fd44]::plumbing::QueryCtxt, (), core[8098989836c52627]::result::Result<(), rustc_errors[a46a9bf6b282e964]::ErrorGuaranteed>>::{closure#0}>::{closure#0}, core[8098989836c52627]::result::Result<(), rustc_errors[a46a9bf6b282e964]::ErrorGuaranteed>>
                               at /home/lcnr/rust5/compiler/rustc_middle/src/ty/context.rs:1971:9
  84:     0x7fcbae107ab3 - <rustc_query_impl[213a4fce8074fd44]::plumbing::QueryCtxt as rustc_query_system[a79fb6d6846d1a09]::query::QueryContext>::start_query::<core[8098989836c52627]::result::Result<(), rustc_errors[a46a9bf6b282e964]::ErrorGuaranteed>, rustc_query_system[a79fb6d6846d1a09]::query::plumbing::execute_job<rustc_query_impl[213a4fce8074fd44]::plumbing::QueryCtxt, (), core[8098989836c52627]::result::Result<(), rustc_errors[a46a9bf6b282e964]::ErrorGuaranteed>>::{closure#0}>
                               at /home/lcnr/rust5/compiler/rustc_query_impl/src/plumbing.rs:112:9
  85:     0x7fcbae107ab3 - rustc_query_system[a79fb6d6846d1a09]::query::plumbing::execute_job::<rustc_query_impl[213a4fce8074fd44]::plumbing::QueryCtxt, (), core[8098989836c52627]::result::Result<(), rustc_errors[a46a9bf6b282e964]::ErrorGuaranteed>>
                               at /home/lcnr/rust5/compiler/rustc_query_system/src/query/plumbing.rs:414:22
  86:     0x7fcbae107ab3 - rustc_query_system[a79fb6d6846d1a09]::query::plumbing::try_execute_query::<rustc_query_impl[213a4fce8074fd44]::plumbing::QueryCtxt, rustc_query_system[a79fb6d6846d1a09]::query::caches::DefaultCache<(), core[8098989836c52627]::result::Result<(), rustc_errors[a46a9bf6b282e964]::ErrorGuaranteed>>>
                               at /home/lcnr/rust5/compiler/rustc_query_system/src/query/plumbing.rs:373:44
  87:     0x7fcbae1d06f0 - rustc_query_system[a79fb6d6846d1a09]::query::plumbing::get_query::<rustc_query_impl[213a4fce8074fd44]::queries::analysis, rustc_query_impl[213a4fce8074fd44]::plumbing::QueryCtxt>
                               at /home/lcnr/rust5/compiler/rustc_query_system/src/query/plumbing.rs:733:36
  88:     0x7fcbadfa6ada - <rustc_query_impl[213a4fce8074fd44]::Queries as rustc_middle[3c3b5f974f7b2fd1]::ty::query::QueryEngine>::analysis::{closure#0}
                               at /home/lcnr/rust5/compiler/rustc_query_impl/src/plumbing.rs:642:17
  89:     0x7fcbadfa6ada - <rustc_query_impl[213a4fce8074fd44]::Queries as rustc_middle[3c3b5f974f7b2fd1]::ty::query::QueryEngine>::analysis
                               at /home/lcnr/rust5/compiler/rustc_query_impl/src/lib.rs:54:1
  90:     0x7fcbabf6a6e9 - <rustc_middle[3c3b5f974f7b2fd1]::ty::query::TyCtxtAt>::analysis
                               at /home/lcnr/rust5/compiler/rustc_driver/src/lib.rs:386:30
  91:     0x7fcbabf6a6e9 - <rustc_middle[3c3b5f974f7b2fd1]::ty::context::TyCtxt>::analysis
                               at /home/lcnr/rust5/compiler/rustc_middle/src/ty/query.rs:242:17
  92:     0x7fcbabf6a6e9 - rustc_driver[16e5abbf97700c74]::run_compiler::{closure#1}::{closure#2}::{closure#3}
                               at /home/lcnr/rust5/compiler/rustc_driver/src/lib.rs:386:30
  93:     0x7fcbabf6a6e9 - <rustc_interface[c555082e3b8ef9c2]::passes::QueryContext>::enter::<rustc_driver[16e5abbf97700c74]::run_compiler::{closure#1}::{closure#2}::{closure#3}, core[8098989836c52627]::result::Result<(), rustc_errors[a46a9bf6b282e964]::ErrorGuaranteed>>::{closure#0}
                               at /home/lcnr/rust5/compiler/rustc_interface/src/passes.rs:770:42
  94:     0x7fcbabf6a6e9 - rustc_middle[3c3b5f974f7b2fd1]::ty::context::tls::enter_context::<<rustc_interface[c555082e3b8ef9c2]::passes::QueryContext>::enter<rustc_driver[16e5abbf97700c74]::run_compiler::{closure#1}::{closure#2}::{closure#3}, core[8098989836c52627]::result::Result<(), rustc_errors[a46a9bf6b282e964]::ErrorGuaranteed>>::{closure#0}, core[8098989836c52627]::result::Result<(), rustc_errors[a46a9bf6b282e964]::ErrorGuaranteed>>::{closure#0}
                               at /home/lcnr/rust5/compiler/rustc_middle/src/ty/context.rs:1930:50
  95:     0x7fcbabf6a6e9 - rustc_middle[3c3b5f974f7b2fd1]::ty::context::tls::set_tlv::<rustc_middle[3c3b5f974f7b2fd1]::ty::context::tls::enter_context<<rustc_interface[c555082e3b8ef9c2]::passes::QueryContext>::enter<rustc_driver[16e5abbf97700c74]::run_compiler::{closure#1}::{closure#2}::{closure#3}, core[8098989836c52627]::result::Result<(), rustc_errors[a46a9bf6b282e964]::ErrorGuaranteed>>::{closure#0}, core[8098989836c52627]::result::Result<(), rustc_errors[a46a9bf6b282e964]::ErrorGuaranteed>>::{closure#0}, core[8098989836c52627]::result::Result<(), rustc_errors[a46a9bf6b282e964]::ErrorGuaranteed>>
                               at /home/lcnr/rust5/compiler/rustc_middle/src/ty/context.rs:1914:9
  96:     0x7fcbabf6a6e9 - rustc_middle[3c3b5f974f7b2fd1]::ty::context::tls::enter_context::<<rustc_interface[c555082e3b8ef9c2]::passes::QueryContext>::enter<rustc_driver[16e5abbf97700c74]::run_compiler::{closure#1}::{closure#2}::{closure#3}, core[8098989836c52627]::result::Result<(), rustc_errors[a46a9bf6b282e964]::ErrorGuaranteed>>::{closure#0}, core[8098989836c52627]::result::Result<(), rustc_errors[a46a9bf6b282e964]::ErrorGuaranteed>>
                               at /home/lcnr/rust5/compiler/rustc_interface/src/passes.rs:770:9
  97:     0x7fcbabf6a6e9 - <rustc_interface[c555082e3b8ef9c2]::passes::QueryContext>::enter::<rustc_driver[16e5abbf97700c74]::run_compiler::{closure#1}::{closure#2}::{closure#3}, core[8098989836c52627]::result::Result<(), rustc_errors[a46a9bf6b282e964]::ErrorGuaranteed>>
                               at /home/lcnr/rust5/compiler/rustc_interface/src/passes.rs:770:9
  98:     0x7fcbabedf6b8 - rustc_driver[16e5abbf97700c74]::run_compiler::{closure#1}::{closure#2}
                               at /home/lcnr/rust5/compiler/rustc_driver/src/lib.rs:385:13
  99:     0x7fcbabedf6b8 - <rustc_interface[c555082e3b8ef9c2]::interface::Compiler>::enter::<rustc_driver[16e5abbf97700c74]::run_compiler::{closure#1}::{closure#2}, core[8098989836c52627]::result::Result<core[8098989836c52627]::option::Option<rustc_interface[c555082e3b8ef9c2]::queries::Linker>, rustc_errors[a46a9bf6b282e964]::ErrorGuaranteed>>
                               at /home/lcnr/rust5/compiler/rustc_interface/src/queries.rs:377:19
 100:     0x7fcbabec23c0 - rustc_driver[16e5abbf97700c74]::run_compiler::{closure#1}
                               at /home/lcnr/rust5/compiler/rustc_driver/src/lib.rs:317:22
 101:     0x7fcbabec23c0 - rustc_interface[c555082e3b8ef9c2]::interface::create_compiler_and_run::<core[8098989836c52627]::result::Result<(), rustc_errors[a46a9bf6b282e964]::ErrorGuaranteed>, rustc_driver[16e5abbf97700c74]::run_compiler::{closure#1}>::{closure#1}
                               at /home/lcnr/rust5/compiler/rustc_interface/src/interface.rs:323:13
 102:     0x7fcbabec23c0 - rustc_span[2e69e5f9003c1337]::with_source_map::<core[8098989836c52627]::result::Result<(), rustc_errors[a46a9bf6b282e964]::ErrorGuaranteed>, rustc_interface[c555082e3b8ef9c2]::interface::create_compiler_and_run<core[8098989836c52627]::result::Result<(), rustc_errors[a46a9bf6b282e964]::ErrorGuaranteed>, rustc_driver[16e5abbf97700c74]::run_compiler::{closure#1}>::{closure#1}>
                               at /home/lcnr/rust5/compiler/rustc_span/src/lib.rs:1003:5
 103:     0x7fcbabf0f03c - rustc_interface[c555082e3b8ef9c2]::interface::create_compiler_and_run::<core[8098989836c52627]::result::Result<(), rustc_errors[a46a9bf6b282e964]::ErrorGuaranteed>, rustc_driver[16e5abbf97700c74]::run_compiler::{closure#1}>
                               at /home/lcnr/rust5/compiler/rustc_interface/src/interface.rs:317:5
 104:     0x7fcbabf99ce2 - rustc_interface[c555082e3b8ef9c2]::interface::run_compiler::<core[8098989836c52627]::result::Result<(), rustc_errors[a46a9bf6b282e964]::ErrorGuaranteed>, rustc_driver[16e5abbf97700c74]::run_compiler::{closure#1}>::{closure#0}
                               at /home/lcnr/rust5/compiler/rustc_interface/src/interface.rs:339:12
 105:     0x7fcbabf99ce2 - <scoped_tls[fbe34b4ee6f2048a]::ScopedKey<rustc_span[2e69e5f9003c1337]::SessionGlobals>>::set::<rustc_interface[c555082e3b8ef9c2]::interface::run_compiler<core[8098989836c52627]::result::Result<(), rustc_errors[a46a9bf6b282e964]::ErrorGuaranteed>, rustc_driver[16e5abbf97700c74]::run_compiler::{closure#1}>::{closure#0}, core[8098989836c52627]::result::Result<(), rustc_errors[a46a9bf6b282e964]::ErrorGuaranteed>>
                               at /home/lcnr/.cargo/registry/src/github.com-1ecc6299db9ec823/scoped-tls-1.0.0/src/lib.rs:137:9
 106:     0x7fcbabf8062f - rustc_span[2e69e5f9003c1337]::create_session_globals_then::<core[8098989836c52627]::result::Result<(), rustc_errors[a46a9bf6b282e964]::ErrorGuaranteed>, rustc_interface[c555082e3b8ef9c2]::interface::run_compiler<core[8098989836c52627]::result::Result<(), rustc_errors[a46a9bf6b282e964]::ErrorGuaranteed>, rustc_driver[16e5abbf97700c74]::run_compiler::{closure#1}>::{closure#0}>
                               at /home/lcnr/rust5/compiler/rustc_span/src/lib.rs:112:5
 107:     0x7fcbabf8062f - rustc_interface[c555082e3b8ef9c2]::util::run_in_thread_pool_with_globals::<rustc_interface[c555082e3b8ef9c2]::interface::run_compiler<core[8098989836c52627]::result::Result<(), rustc_errors[a46a9bf6b282e964]::ErrorGuaranteed>, rustc_driver[16e5abbf97700c74]::run_compiler::{closure#1}>::{closure#0}, core[8098989836c52627]::result::Result<(), rustc_errors[a46a9bf6b282e964]::ErrorGuaranteed>>::{closure#0}
                               at /home/lcnr/rust5/compiler/rustc_interface/src/util.rs:159:32
 108:     0x7fcbabf8062f - std[74ac5f44f4564a1b]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[c555082e3b8ef9c2]::util::run_in_thread_pool_with_globals<rustc_interface[c555082e3b8ef9c2]::interface::run_compiler<core[8098989836c52627]::result::Result<(), rustc_errors[a46a9bf6b282e964]::ErrorGuaranteed>, rustc_driver[16e5abbf97700c74]::run_compiler::{closure#1}>::{closure#0}, core[8098989836c52627]::result::Result<(), rustc_errors[a46a9bf6b282e964]::ErrorGuaranteed>>::{closure#0}, core[8098989836c52627]::result::Result<(), rustc_errors[a46a9bf6b282e964]::ErrorGuaranteed>>
                               at /home/lcnr/rust5/library/std/src/sys_common/backtrace.rs:122:18
 109:     0x7fcbabf82b29 - <std[74ac5f44f4564a1b]::thread::Builder>::spawn_unchecked_::<rustc_interface[c555082e3b8ef9c2]::util::run_in_thread_pool_with_globals<rustc_interface[c555082e3b8ef9c2]::interface::run_compiler<core[8098989836c52627]::result::Result<(), rustc_errors[a46a9bf6b282e964]::ErrorGuaranteed>, rustc_driver[16e5abbf97700c74]::run_compiler::{closure#1}>::{closure#0}, core[8098989836c52627]::result::Result<(), rustc_errors[a46a9bf6b282e964]::ErrorGuaranteed>>::{closure#0}, core[8098989836c52627]::result::Result<(), rustc_errors[a46a9bf6b282e964]::ErrorGuaranteed>>::{closure#1}::{closure#0}
                               at /home/lcnr/rust5/library/std/src/thread/mod.rs:514:17
 110:     0x7fcbabf82b29 - <core[8098989836c52627]::panic::unwind_safe::AssertUnwindSafe<<std[74ac5f44f4564a1b]::thread::Builder>::spawn_unchecked_<rustc_interface[c555082e3b8ef9c2]::util::run_in_thread_pool_with_globals<rustc_interface[c555082e3b8ef9c2]::interface::run_compiler<core[8098989836c52627]::result::Result<(), rustc_errors[a46a9bf6b282e964]::ErrorGuaranteed>, rustc_driver[16e5abbf97700c74]::run_compiler::{closure#1}>::{closure#0}, core[8098989836c52627]::result::Result<(), rustc_errors[a46a9bf6b282e964]::ErrorGuaranteed>>::{closure#0}, core[8098989836c52627]::result::Result<(), rustc_errors[a46a9bf6b282e964]::ErrorGuaranteed>>::{closure#1}::{closure#0}> as core[8098989836c52627]::ops::function::FnOnce<()>>::call_once
                               at /home/lcnr/rust5/library/core/src/panic/unwind_safe.rs:271:9
 111:     0x7fcbabf82b29 - std[74ac5f44f4564a1b]::panicking::try::do_call::<core[8098989836c52627]::panic::unwind_safe::AssertUnwindSafe<<std[74ac5f44f4564a1b]::thread::Builder>::spawn_unchecked_<rustc_interface[c555082e3b8ef9c2]::util::run_in_thread_pool_with_globals<rustc_interface[c555082e3b8ef9c2]::interface::run_compiler<core[8098989836c52627]::result::Result<(), rustc_errors[a46a9bf6b282e964]::ErrorGuaranteed>, rustc_driver[16e5abbf97700c74]::run_compiler::{closure#1}>::{closure#0}, core[8098989836c52627]::result::Result<(), rustc_errors[a46a9bf6b282e964]::ErrorGuaranteed>>::{closure#0}, core[8098989836c52627]::result::Result<(), rustc_errors[a46a9bf6b282e964]::ErrorGuaranteed>>::{closure#1}::{closure#0}>, core[8098989836c52627]::result::Result<(), rustc_errors[a46a9bf6b282e964]::ErrorGuaranteed>>
                               at /home/lcnr/rust5/library/std/src/panicking.rs:492:40
 112:     0x7fcbabf82b29 - std[74ac5f44f4564a1b]::panicking::try::<core[8098989836c52627]::result::Result<(), rustc_errors[a46a9bf6b282e964]::ErrorGuaranteed>, core[8098989836c52627]::panic::unwind_safe::AssertUnwindSafe<<std[74ac5f44f4564a1b]::thread::Builder>::spawn_unchecked_<rustc_interface[c555082e3b8ef9c2]::util::run_in_thread_pool_with_globals<rustc_interface[c555082e3b8ef9c2]::interface::run_compiler<core[8098989836c52627]::result::Result<(), rustc_errors[a46a9bf6b282e964]::ErrorGuaranteed>, rustc_driver[16e5abbf97700c74]::run_compiler::{closure#1}>::{closure#0}, core[8098989836c52627]::result::Result<(), rustc_errors[a46a9bf6b282e964]::ErrorGuaranteed>>::{closure#0}, core[8098989836c52627]::result::Result<(), rustc_errors[a46a9bf6b282e964]::ErrorGuaranteed>>::{closure#1}::{closure#0}>>
                               at /home/lcnr/rust5/library/std/src/panicking.rs:456:19
 113:     0x7fcbabf82b29 - std[74ac5f44f4564a1b]::panic::catch_unwind::<core[8098989836c52627]::panic::unwind_safe::AssertUnwindSafe<<std[74ac5f44f4564a1b]::thread::Builder>::spawn_unchecked_<rustc_interface[c555082e3b8ef9c2]::util::run_in_thread_pool_with_globals<rustc_interface[c555082e3b8ef9c2]::interface::run_compiler<core[8098989836c52627]::result::Result<(), rustc_errors[a46a9bf6b282e964]::ErrorGuaranteed>, rustc_driver[16e5abbf97700c74]::run_compiler::{closure#1}>::{closure#0}, core[8098989836c52627]::result::Result<(), rustc_errors[a46a9bf6b282e964]::ErrorGuaranteed>>::{closure#0}, core[8098989836c52627]::result::Result<(), rustc_errors[a46a9bf6b282e964]::ErrorGuaranteed>>::{closure#1}::{closure#0}>, core[8098989836c52627]::result::Result<(), rustc_errors[a46a9bf6b282e964]::ErrorGuaranteed>>
                               at /home/lcnr/rust5/library/std/src/panic.rs:137:14
 114:     0x7fcbabf82b29 - <std[74ac5f44f4564a1b]::thread::Builder>::spawn_unchecked_::<rustc_interface[c555082e3b8ef9c2]::util::run_in_thread_pool_with_globals<rustc_interface[c555082e3b8ef9c2]::interface::run_compiler<core[8098989836c52627]::result::Result<(), rustc_errors[a46a9bf6b282e964]::ErrorGuaranteed>, rustc_driver[16e5abbf97700c74]::run_compiler::{closure#1}>::{closure#0}, core[8098989836c52627]::result::Result<(), rustc_errors[a46a9bf6b282e964]::ErrorGuaranteed>>::{closure#0}, core[8098989836c52627]::result::Result<(), rustc_errors[a46a9bf6b282e964]::ErrorGuaranteed>>::{closure#1}
                               at /home/lcnr/rust5/library/std/src/thread/mod.rs:513:30
 115:     0x7fcbabf82b29 - <<std[74ac5f44f4564a1b]::thread::Builder>::spawn_unchecked_<rustc_interface[c555082e3b8ef9c2]::util::run_in_thread_pool_with_globals<rustc_interface[c555082e3b8ef9c2]::interface::run_compiler<core[8098989836c52627]::result::Result<(), rustc_errors[a46a9bf6b282e964]::ErrorGuaranteed>, rustc_driver[16e5abbf97700c74]::run_compiler::{closure#1}>::{closure#0}, core[8098989836c52627]::result::Result<(), rustc_errors[a46a9bf6b282e964]::ErrorGuaranteed>>::{closure#0}, core[8098989836c52627]::result::Result<(), rustc_errors[a46a9bf6b282e964]::ErrorGuaranteed>>::{closure#1} as core[8098989836c52627]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
                               at /home/lcnr/rust5/library/core/src/ops/function.rs:248:5
 116:     0x7fcbab4ed415 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h80da83d29e731b9e
                               at /home/lcnr/rust5/library/alloc/src/boxed.rs:1940:9
 117:     0x7fcbab4ed415 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h337a7260390f8316
                               at /home/lcnr/rust5/library/alloc/src/boxed.rs:1940:9
 118:     0x7fcbab4ed415 - std::sys::unix::thread::Thread::new::thread_start::hd575c63c7aa579b8
                               at /home/lcnr/rust5/library/std/src/sys/unix/thread.rs:108:17
 119:     0x7fcbab2afb43 - start_thread
                               at ./nptl/./nptl/pthread_create.c:442:8
 120:     0x7fcbab341a00 - clone3
                               at ./misc/../sysdeps/unix/sysv/linux/x86_64/clone3.S:81
 121:                0x0 - <unknown>

error: internal compiler error: unexpected panic

note: the compiler unexpectedly panicked. this is a bug.

note: we would appreciate a bug report: https://github.com/rust-lang/rust/issues/new?labels=C-bug%2C+I-ICE%2C+T-compiler&template=ice.md

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

note: compiler flags: -Z treat-err-as-bug

query stack during panic:
#0 [mir_borrowck] borrow-checking `main`
#1 [analysis] running analysis passes on this crate
end of query stack
@lcnr lcnr added I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ A-associated-items Area: Associated items (types, constants & functions) A-borrow-checker Area: The borrow checker T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. C-bug Category: This is a bug. labels Sep 20, 2022
@aliemjay
Copy link
Member

aliemjay commented Sep 20, 2022

Debugging leads to #102052, but I'm still surprised that we don't catch this during HIR typeck.

@matthiaskrgr
Copy link
Member

Is this a duplicate of #79590 ? the stackrace looks very similar (also look who claimed that one :P 🙈 )

@lcnr
Copy link
Contributor Author

lcnr commented Sep 21, 2022

^^ not sure, can't tell without looking deeper

@istankovic
Copy link
Contributor

I get a panic with a bit simpler example (2 generic parameters to foo):

struct Ty1;                                                  
                                                             
pub trait Trait<T> {}                                        
                                                             
pub trait WithAssoc1<'a> {                                   
    type Assoc;                                              
}                                                            
                                                             
impl<T> Trait<for<'a> fn(<T as WithAssoc1<'a>>::Assoc)> for T
where                                                        
    T: for<'a> WithAssoc1<'a>                                
{                                                            
}                                                            
                                                             
impl WithAssoc1<'_> for Ty1 {                                
    type Assoc = ();                                         
}                                                            
                                                             
fn foo<T, V>()                                               
where                                                        
    T: for<'a> WithAssoc1<'a>,                               
    T: Trait<V>,                                             
{                                                            
}                                                            
                                                             
fn main() {                                                  
    foo::<Ty1, _>();                                         
}                                                            
thread 'rustc' panicked at compiler/rustc_errors/src/lib.rs:1736:30:
aborting due to `-Z treat-err-as-bug=1`
stack backtrace:
   0:     0x7f7dbb5511d1 - std::backtrace_rs::backtrace::libunwind::trace::he8dc9e634c3d5b69
                               at /rustc/249624b5043013d18c00f0401ca431c1a6baa8cd/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5
   1:     0x7f7dbb5511d1 - std::backtrace_rs::backtrace::trace_unsynchronized::h3112cd3730179fdf
                               at /rustc/249624b5043013d18c00f0401ca431c1a6baa8cd/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
   2:     0x7f7dbb5511d1 - std::backtrace::Backtrace::create::hf3446fe609a99cb1
                               at /rustc/249624b5043013d18c00f0401ca431c1a6baa8cd/library/std/src/backtrace.rs:331:13
   3:     0x7f7dbb551120 - std::backtrace::Backtrace::force_capture::hcbd01f7ab5cdd12d
                               at /rustc/249624b5043013d18c00f0401ca431c1a6baa8cd/library/std/src/backtrace.rs:313:9
   4:     0x7f7dbe0a58dc - std[df43e54be7296dae]::panicking::update_hook::<alloc[a0c5d851eb3ca09f]::boxed::Box<rustc_driver_impl[2bf85641168174bb]::install_ice_hook::{closure#0}>>::{closure#0}
   5:     0x7f7dbb56c338 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h49df07f7cb25728d
                               at /rustc/249624b5043013d18c00f0401ca431c1a6baa8cd/library/alloc/src/boxed.rs:2021:9
   6:     0x7f7dbb56c338 - std::panicking::rust_panic_with_hook::h4b1939882c095f9c
                               at /rustc/249624b5043013d18c00f0401ca431c1a6baa8cd/library/std/src/panicking.rs:735:13
   7:     0x7f7dbb56c059 - std::panicking::begin_panic_handler::{{closure}}::ha8983f1edca62350
                               at /rustc/249624b5043013d18c00f0401ca431c1a6baa8cd/library/std/src/panicking.rs:601:13
   8:     0x7f7dbb569646 - std::sys_common::backtrace::__rust_end_short_backtrace::h14cba478a9ee1fbd
                               at /rustc/249624b5043013d18c00f0401ca431c1a6baa8cd/library/std/src/sys_common/backtrace.rs:170:18
   9:     0x7f7dbb56bdf2 - rust_begin_unwind
                               at /rustc/249624b5043013d18c00f0401ca431c1a6baa8cd/library/std/src/panicking.rs:597:5
  10:     0x7f7dbb5c7b25 - core::panicking::panic_fmt::h6433adef86579fb6
                               at /rustc/249624b5043013d18c00f0401ca431c1a6baa8cd/library/core/src/panicking.rs:72:14
  11:     0x7f7dc07e5f8f - <rustc_errors[70da22a231bf69a3]::HandlerInner>::panic_if_treat_err_as_bug.cold.0
  12:     0x7f7dc00842d7 - <rustc_errors[70da22a231bf69a3]::HandlerInner>::emit_diagnostic::{closure#2}
  13:     0x7f7dc008224d - rustc_interface[af334b81148fb8cb]::callbacks::track_diagnostic
  14:     0x7f7dc0080b0c - <rustc_errors[70da22a231bf69a3]::HandlerInner>::emit_diagnostic
  15:     0x7f7dbde0a711 - <rustc_errors[70da22a231bf69a3]::HandlerInner>::emit_diag_at_span::<rustc_span[bab404b0fd46984d]::span_encoding::Span>
  16:     0x7f7dbde0a8a6 - <rustc_errors[70da22a231bf69a3]::HandlerInner>::span_bug::<rustc_span[bab404b0fd46984d]::span_encoding::Span, alloc[a0c5d851eb3ca09f]::string::String>
  17:     0x7f7dbca73325 - <rustc_errors[70da22a231bf69a3]::Handler>::delay_span_bug::<rustc_span[bab404b0fd46984d]::span_encoding::Span, alloc[a0c5d851eb3ca09f]::string::String>
  18:     0x7f7dbfee5c20 - <rustc_borrowck[81666846afa3851f]::type_check::TypeChecker>::ascribe_user_type
  19:     0x7f7dbfbb3ba2 - rustc_borrowck[81666846afa3851f]::type_check::type_check
  20:     0x7f7dbc9f5144 - rustc_borrowck[81666846afa3851f]::nll::compute_regions
  21:     0x7f7dbff7515e - rustc_borrowck[81666846afa3851f]::do_mir_borrowck
  22:     0x7f7dbff6e517 - rustc_borrowck[81666846afa3851f]::mir_borrowck
  23:     0x7f7dbff6e099 - rustc_query_impl[ad97e9652dfc28d8]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[ad97e9652dfc28d8]::query_impl::mir_borrowck::dynamic_query::{closure#2}::{closure#0}, rustc_middle[f16a63e6dbe53fea]::query::erase::Erased<[u8; 8usize]>>
  24:     0x7f7dbf381e6c - rustc_query_system[74c97372728b1147]::query::plumbing::try_execute_query::<rustc_query_impl[ad97e9652dfc28d8]::DynamicConfig<rustc_query_system[74c97372728b1147]::query::caches::VecCache<rustc_span[bab404b0fd46984d]::def_id::LocalDefId, rustc_middle[f16a63e6dbe53fea]::query::erase::Erased<[u8; 8usize]>>, false, false, false>, rustc_query_impl[ad97e9652dfc28d8]::plumbing::QueryCtxt, false>
  25:     0x7f7dbf381a90 - rustc_query_impl[ad97e9652dfc28d8]::query_impl::mir_borrowck::get_query_non_incr::__rust_end_short_backtrace
  26:     0x7f7dbf826d2c - rustc_interface[af334b81148fb8cb]::passes::analysis
  27:     0x7f7dbf826661 - rustc_query_impl[ad97e9652dfc28d8]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[ad97e9652dfc28d8]::query_impl::analysis::dynamic_query::{closure#2}::{closure#0}, rustc_middle[f16a63e6dbe53fea]::query::erase::Erased<[u8; 1usize]>>
  28:     0x7f7dbfd08de6 - rustc_query_system[74c97372728b1147]::query::plumbing::try_execute_query::<rustc_query_impl[ad97e9652dfc28d8]::DynamicConfig<rustc_query_system[74c97372728b1147]::query::caches::SingleCache<rustc_middle[f16a63e6dbe53fea]::query::erase::Erased<[u8; 1usize]>>, false, false, false>, rustc_query_impl[ad97e9652dfc28d8]::plumbing::QueryCtxt, false>
  29:     0x7f7dbfd08c15 - rustc_query_impl[ad97e9652dfc28d8]::query_impl::analysis::get_query_non_incr::__rust_end_short_backtrace
  30:     0x7f7dbff27caa - std[df43e54be7296dae]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[af334b81148fb8cb]::util::run_in_thread_with_globals<rustc_interface[af334b81148fb8cb]::interface::run_compiler<core[af478687de187ad3]::result::Result<(), rustc_span[bab404b0fd46984d]::ErrorGuaranteed>, rustc_driver_impl[2bf85641168174bb]::run_compiler::{closure#1}>::{closure#0}, core[af478687de187ad3]::result::Result<(), rustc_span[bab404b0fd46984d]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[af478687de187ad3]::result::Result<(), rustc_span[bab404b0fd46984d]::ErrorGuaranteed>>
  31:     0x7f7dbff26fb3 - <<std[df43e54be7296dae]::thread::Builder>::spawn_unchecked_<rustc_interface[af334b81148fb8cb]::util::run_in_thread_with_globals<rustc_interface[af334b81148fb8cb]::interface::run_compiler<core[af478687de187ad3]::result::Result<(), rustc_span[bab404b0fd46984d]::ErrorGuaranteed>, rustc_driver_impl[2bf85641168174bb]::run_compiler::{closure#1}>::{closure#0}, core[af478687de187ad3]::result::Result<(), rustc_span[bab404b0fd46984d]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[af478687de187ad3]::result::Result<(), rustc_span[bab404b0fd46984d]::ErrorGuaranteed>>::{closure#1} as core[af478687de187ad3]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  32:     0x7f7dbb577105 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::hac2e24a72c9237b1
                               at /rustc/249624b5043013d18c00f0401ca431c1a6baa8cd/library/alloc/src/boxed.rs:2007:9
  33:     0x7f7dbb577105 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h0a4ea247e7a2feab
                               at /rustc/249624b5043013d18c00f0401ca431c1a6baa8cd/library/alloc/src/boxed.rs:2007:9
  34:     0x7f7dbb577105 - std::sys::unix::thread::Thread::new::thread_start::ha157bf15852ae2a4
                               at /rustc/249624b5043013d18c00f0401ca431c1a6baa8cd/library/std/src/sys/unix/thread.rs:108:17
  35:     0x7f7dbb30d9eb - <unknown>
  36:     0x7f7dbb3917cc - <unknown>
  37:                0x0 - <unknown>


rustc version: 1.75.0-nightly (249624b50 2023-10-20)
platform: x86_64-unknown-linux-gnu

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

@matthiaskrgr matthiaskrgr added the S-bug-has-test Status: This bug is tracked inside the repo by a `known-bug` test. label Apr 15, 2024
@fmease fmease added the A-higher-ranked Area: Higher-ranked things (e.g., lifetimes, types, trait bounds aka HRTBs) label Sep 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-associated-items Area: Associated items (types, constants & functions) A-borrow-checker Area: The borrow checker A-higher-ranked Area: Higher-ranked things (e.g., lifetimes, types, trait bounds aka HRTBs) C-bug Category: This is a bug. glacier ICE tracked in rust-lang/glacier. I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ S-bug-has-test Status: This bug is tracked inside the repo by a `known-bug` test. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

6 participants