Repository: rust
Issue: ICE: borrowck for user-type with inferred higher ranked type
Labels: I-ICE,A-associated-items,A-borrow-checker,T-compiler,C-bug,glacier,S-bug-has-test,A-higher-ranked

```Rust
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:

```rust
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
```