Skip to content

[ICE]: arg len already exists #152331

@matthiaskrgr

Description

@matthiaskrgr

auto-reduced (treereduce-rust):

fn main() {
    h2(|_: (), _: (), _: (), x: &_| {});
}

fn h2<F>(_: F)
where
    F: for<'t0> Fn(&(), Box<dyn Fn(&())>, &'t0 (), fn(&(), &())),
{
}
original code

original:

//! Diagnostics test to check that higher-ranked lifetimes are properly named when being pretty
//! printed in diagnostics.
//!
//! Issue: <https://github.com/rust-lang/rust/issues/44887>
//! PR: <https://github.com/rust-lang/rust/pull/44888>

fn main() {
    f1(|_: (), _: ()| {}); //~ ERROR type mismatch
    f2(|_: (), _: ()| {}); //~ ERROR type mismatch
    f3(|_: (), _: ()| {}); //~ ERROR type mismatch
    f4(|x: &_| {}); //~ ERROR type mismatch
    f5(|_: (), _: ()| {}); //~ ERROR type mismatch
    g1(|_: (), _: ()| {}); //~ ERROR type mismatch
    g2(|_: (), _: ()| {}); //~ ERROR type mismatch
    g3(|_: (), _: ()| {}); //~ ERROR type mismatch
    g4(|_: (), _: ()| {}); //~ ERROR type mismatch
    h1(|_: (), _: (), _: (), _: ()| {}); //~ ERROR type mismatch
    h2(|_: (), _: (), _: (), x: &_| {}); //~ ERROR type mismatch
}

// Basic
fn f1<F>(_: F) where F: Fn(&(), &()) {}
fn f2<F>(_: F) where F: for<'a> Fn(&'a (), &()) {}
fn f3<'a, F>(_: F) where F: Fn(&'a (), &()) {}
fn f4<F>(_: F) where F: for<'r> Fn(&(), &'r ()) {}
fn f5<F>(_: F) where F: for<'r> Fn(&'r (), &'r ()) {}

// Nested
fn g1<F>(_: F) where F: Fn(&(), Box<dyn Fn(&())>) {}
fn g2<F>(_: F) where F: Fn(&(), fn(&())) {}
fn g3<F>(_: F) where F: for<'s> Fn(&'s (), Box<dyn Fn(&())>) {}
fn g4<F>(_: F) where F: Fn(&(), for<'r> fn(&'r ())) {}

// Mixed
fn h1<F>(_: F) where F: Fn(&(), Box<dyn Fn(&())>, &(), fn(&(), &())) {}
fn h2<F>(_: F) where F: for<'t0> Fn(&(), Box<dyn Fn(&())>, &'t0 (), fn(&(), &())) {}

Version information

rustc 1.95.0-nightly (13c38730d 2026-02-08)
binary: rustc
commit-hash: 13c38730d981289cc7ae4cc109fd7756bf83ee67
commit-date: 2026-02-08
host: x86_64-unknown-linux-gnu
release: 1.95.0-nightly
LLVM version: 22.1.0

Possibly related line of code:

}
pub(crate) fn arg(&mut self, name: impl Into<DiagArgName>, arg: impl IntoDiagArg) {
let name = name.into();
let value = arg.into_diag_arg(&mut self.long_ty_path);
// This assertion is to avoid subdiagnostics overwriting an existing diagnostic arg.
debug_assert!(
!self.args.contains_key(&name) || self.args.get(&name) == Some(&value),
"arg {} already exists",
name
);
self.args.insert(name, value);
}

Command:
/home/matthias/.rustup/toolchains/alt-master/bin/rustc

Program output


thread 'rustc' (3801664) panicked at /rustc-dev/13c38730d981289cc7ae4cc109fd7756bf83ee67/compiler/rustc_errors/src/diagnostic.rs:359:9:
arg len already exists
stack backtrace:
   0:     0x7fca7b8e44d0 - std[64b2b1c9aa015027]::backtrace_rs::backtrace::libunwind::trace
                               at /rustc/13c38730d981289cc7ae4cc109fd7756bf83ee67/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9
   1:     0x7fca7b8e44d0 - std[64b2b1c9aa015027]::backtrace_rs::backtrace::trace_unsynchronized::<std[64b2b1c9aa015027]::sys::backtrace::_print_fmt::{closure#1}>
                               at /rustc/13c38730d981289cc7ae4cc109fd7756bf83ee67/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14
   2:     0x7fca7b8e44d0 - std[64b2b1c9aa015027]::sys::backtrace::_print_fmt
                               at /rustc/13c38730d981289cc7ae4cc109fd7756bf83ee67/library/std/src/sys/backtrace.rs:74:9
   3:     0x7fca7b8e44d0 - <<std[64b2b1c9aa015027]::sys::backtrace::BacktraceLock>::print::DisplayBacktrace as core[2d39e5c12c705ebb]::fmt::Display>::fmt
                               at /rustc/13c38730d981289cc7ae4cc109fd7756bf83ee67/library/std/src/sys/backtrace.rs:44:26
   4:     0x7fca76f41c1e - <core[2d39e5c12c705ebb]::fmt::rt::Argument>::fmt
                               at /rustc/13c38730d981289cc7ae4cc109fd7756bf83ee67/library/core/src/fmt/rt.rs:152:76
   5:     0x7fca76f41c1e - core[2d39e5c12c705ebb]::fmt::write
   6:     0x7fca7b8fc94c - std[64b2b1c9aa015027]::io::default_write_fmt::<std[64b2b1c9aa015027]::sys::stdio::unix::Stderr>
                               at /rustc/13c38730d981289cc7ae4cc109fd7756bf83ee67/library/std/src/io/mod.rs:639:11
   7:     0x7fca7b8fc94c - <std[64b2b1c9aa015027]::sys::stdio::unix::Stderr as std[64b2b1c9aa015027]::io::Write>::write_fmt
                               at /rustc/13c38730d981289cc7ae4cc109fd7756bf83ee67/library/std/src/io/mod.rs:1994:13
   8:     0x7fca7b8a8ff6 - <std[64b2b1c9aa015027]::sys::backtrace::BacktraceLock>::print
                               at /rustc/13c38730d981289cc7ae4cc109fd7756bf83ee67/library/std/src/sys/backtrace.rs:47:9
   9:     0x7fca7b8a8ff6 - std[64b2b1c9aa015027]::panicking::default_hook::{closure#0}
                               at /rustc/13c38730d981289cc7ae4cc109fd7756bf83ee67/library/std/src/panicking.rs:292:27
  10:     0x7fca7b8d3161 - std[64b2b1c9aa015027]::panicking::default_hook
                               at /rustc/13c38730d981289cc7ae4cc109fd7756bf83ee67/library/std/src/panicking.rs:319:9
  11:     0x7fca7833e346 - <alloc[21b5fb6b1b472667]::boxed::Box<dyn for<'a, 'b> core[2d39e5c12c705ebb]::ops::function::Fn<(&'a std[64b2b1c9aa015027]::panic::PanicHookInfo<'b>,), Output = ()> + core[2d39e5c12c705ebb]::marker::Sync + core[2d39e5c12c705ebb]::marker::Send> as core[2d39e5c12c705ebb]::ops::function::Fn<(&std[64b2b1c9aa015027]::panic::PanicHookInfo,)>>::call
                               at /rustc-dev/13c38730d981289cc7ae4cc109fd7756bf83ee67/library/alloc/src/boxed.rs:2220:9
  12:     0x7fca7833e346 - rustc_driver_impl[ecb1fe8f07c57781]::install_ice_hook::{closure#1}
                               at /rustc-dev/13c38730d981289cc7ae4cc109fd7756bf83ee67/compiler/rustc_driver_impl/src/lib.rs:1484:17
  13:     0x7fca7833e346 - <alloc[21b5fb6b1b472667]::boxed::Box<rustc_driver_impl[ecb1fe8f07c57781]::install_ice_hook::{closure#1}> as core[2d39e5c12c705ebb]::ops::function::Fn<(&dyn for<'a, 'b> core[2d39e5c12c705ebb]::ops::function::Fn<(&'a std[64b2b1c9aa015027]::panic::PanicHookInfo<'b>,), Output = ()> + core[2d39e5c12c705ebb]::marker::Sync + core[2d39e5c12c705ebb]::marker::Send, &std[64b2b1c9aa015027]::panic::PanicHookInfo)>>::call
                               at /rustc-dev/13c38730d981289cc7ae4cc109fd7756bf83ee67/library/alloc/src/boxed.rs:2220:9
  14:     0x7fca7833e346 - std[64b2b1c9aa015027]::panicking::update_hook::<alloc[21b5fb6b1b472667]::boxed::Box<rustc_driver_impl[ecb1fe8f07c57781]::install_ice_hook::{closure#1}>>::{closure#0}
                               at /rustc-dev/13c38730d981289cc7ae4cc109fd7756bf83ee67/library/std/src/panicking.rs:235:47
  15:     0x7fca7b8d34fa - <alloc[21b5fb6b1b472667]::boxed::Box<dyn for<'a, 'b> core[2d39e5c12c705ebb]::ops::function::Fn<(&'a std[64b2b1c9aa015027]::panic::PanicHookInfo<'b>,), Output = ()> + core[2d39e5c12c705ebb]::marker::Sync + core[2d39e5c12c705ebb]::marker::Send> as core[2d39e5c12c705ebb]::ops::function::Fn<(&std[64b2b1c9aa015027]::panic::PanicHookInfo,)>>::call
                               at /rustc/13c38730d981289cc7ae4cc109fd7756bf83ee67/library/alloc/src/boxed.rs:2220:9
  16:     0x7fca7b8d34fa - std[64b2b1c9aa015027]::panicking::panic_with_hook
                               at /rustc/13c38730d981289cc7ae4cc109fd7756bf83ee67/library/std/src/panicking.rs:833:13
  17:     0x7fca7b8a90b8 - std[64b2b1c9aa015027]::panicking::panic_handler::{closure#0}
                               at /rustc/13c38730d981289cc7ae4cc109fd7756bf83ee67/library/std/src/panicking.rs:698:13
  18:     0x7fca7b894b59 - std[64b2b1c9aa015027]::sys::backtrace::__rust_end_short_backtrace::<std[64b2b1c9aa015027]::panicking::panic_handler::{closure#0}, !>
                               at /rustc/13c38730d981289cc7ae4cc109fd7756bf83ee67/library/std/src/sys/backtrace.rs:182:18
  19:     0x7fca7b8ab00d - __rustc[25666c693a360600]::rust_begin_unwind
                               at /rustc/13c38730d981289cc7ae4cc109fd7756bf83ee67/library/std/src/panicking.rs:689:5
  20:     0x7fca76f4264c - core[2d39e5c12c705ebb]::panicking::panic_fmt
                               at /rustc/13c38730d981289cc7ae4cc109fd7756bf83ee67/library/core/src/panicking.rs:80:14
  21:     0x7fca7b0de4e8 - <rustc_errors[c2b79d19253b1bd4]::diagnostic::DiagInner>::arg::<&str, usize>
                               at /rustc-dev/13c38730d981289cc7ae4cc109fd7756bf83ee67/compiler/rustc_errors/src/diagnostic.rs:359:9
  22:     0x7fca7b0de4e8 - <rustc_errors[c2b79d19253b1bd4]::diagnostic::Diag>::arg::<&str, usize>
                               at /rustc-dev/13c38730d981289cc7ae4cc109fd7756bf83ee67/compiler/rustc_errors/src/diagnostic.rs:1255:26
  23:     0x7fca7b19ff4b - <rustc_trait_selection[981dc4f06b848783]::errors::AdjustSignatureBorrow as rustc_errors[c2b79d19253b1bd4]::diagnostic::Subdiagnostic>::add_to_diag::<rustc_span[5b13d0a724d2c192]::ErrorGuaranteed>
                               at /rustc-dev/13c38730d981289cc7ae4cc109fd7756bf83ee67/compiler/rustc_trait_selection/src/errors.rs:169:22
  24:     0x7fca7b379bd4 - <rustc_errors[c2b79d19253b1bd4]::diagnostic::Diag>::subdiagnostic::<rustc_trait_selection[981dc4f06b848783]::errors::AdjustSignatureBorrow>
                               at /rustc-dev/13c38730d981289cc7ae4cc109fd7756bf83ee67/compiler/rustc_errors/src/diagnostic.rs:1194:23
  25:     0x7fca7b379bd4 - rustc_trait_selection[981dc4f06b848783]::error_reporting::traits::suggestions::hint_missing_borrow
                               at /rustc-dev/13c38730d981289cc7ae4cc109fd7756bf83ee67/compiler/rustc_trait_selection/src/error_reporting/traits/suggestions.rs:5435:13
  26:     0x7fca7b379bd4 - <rustc_trait_selection[981dc4f06b848783]::error_reporting::TypeErrCtxt>::report_closure_arg_mismatch
                               at /rustc-dev/13c38730d981289cc7ae4cc109fd7756bf83ee67/compiler/rustc_trait_selection/src/error_reporting/traits/suggestions.rs:2087:13
  27:     0x7fca7b2a5376 - <rustc_trait_selection[981dc4f06b848783]::error_reporting::TypeErrCtxt>::report_signature_mismatch_error
                               at /rustc-dev/13c38730d981289cc7ae4cc109fd7756bf83ee67/compiler/rustc_trait_selection/src/error_reporting/traits/fulfillment_errors.rs:3300:17
  28:     0x7fca7b2a5376 - <rustc_trait_selection[981dc4f06b848783]::error_reporting::TypeErrCtxt>::report_selection_error
                               at /rustc-dev/13c38730d981289cc7ae4cc109fd7756bf83ee67/compiler/rustc_trait_selection/src/error_reporting/traits/fulfillment_errors.rs:712:28
  29:     0x7fca7b312103 - <rustc_trait_selection[981dc4f06b848783]::error_reporting::TypeErrCtxt>::report_fulfillment_error
                               at /rustc-dev/13c38730d981289cc7ae4cc109fd7756bf83ee67/compiler/rustc_trait_selection/src/error_reporting/traits/mod.rs:306:71
  30:     0x7fca7b312103 - <rustc_trait_selection[981dc4f06b848783]::error_reporting::TypeErrCtxt>::report_fulfillment_errors
                               at /rustc-dev/13c38730d981289cc7ae4cc109fd7756bf83ee67/compiler/rustc_trait_selection/src/error_reporting/traits/mod.rs:259:41
  31:     0x7fca78c7a88f - <rustc_hir_typeck[d279b0886461d6fe]::fn_ctxt::FnCtxt>::select_obligations_where_possible::<<rustc_hir_typeck[d279b0886461d6fe]::fn_ctxt::FnCtxt>::type_inference_fallback::{closure#0}>
                               at /rustc-dev/13c38730d981289cc7ae4cc109fd7756bf83ee67/compiler/rustc_hir_typeck/src/fn_ctxt/_impl.rs:688:29
  32:     0x7fca78c7a88f - <rustc_hir_typeck[d279b0886461d6fe]::fn_ctxt::FnCtxt>::type_inference_fallback
                               at /rustc-dev/13c38730d981289cc7ae4cc109fd7756bf83ee67/compiler/rustc_hir_typeck/src/fallback.rs:43:14
  33:     0x7fca78c7a88f - rustc_hir_typeck[d279b0886461d6fe]::typeck_with_inspect::{closure#0}
                               at /rustc-dev/13c38730d981289cc7ae4cc109fd7756bf83ee67/compiler/rustc_hir_typeck/src/lib.rs:232:9
  34:     0x7fca78c9f4ec - rustc_hir_typeck[d279b0886461d6fe]::typeck_with_inspect
                               at /rustc-dev/13c38730d981289cc7ae4cc109fd7756bf83ee67/compiler/rustc_hir_typeck/src/lib.rs:103:1
  35:     0x7fca7a8bf89f - rustc_query_impl[d22e6f0bf5601a23]::query_impl::typeck::compute_fn::__rust_begin_short_backtrace
                               at /rustc-dev/13c38730d981289cc7ae4cc109fd7756bf83ee67/compiler/rustc_query_impl/src/plumbing.rs:290:9
  36:     0x7fca7a6f6c55 - <rustc_query_impl[d22e6f0bf5601a23]::SemiDynamicQueryDispatcher<rustc_data_structures[2e7263bb15eb1022]::vec_cache::VecCache<rustc_hir_id[e6d3f9673b591e6d]::OwnerId, rustc_middle[dced8702efbfad36]::query::erase::ErasedData<[u8; 8usize]>, rustc_query_system[42b0665e8e4da0bf]::dep_graph::graph::DepNodeIndex>, {rustc_query_impl[d22e6f0bf5601a23]::QueryFlags { is_anon: false, is_depth_limit: false, is_feedable: false }}> as rustc_query_system[42b0665e8e4da0bf]::query::dispatcher::QueryDispatcher>::compute
                               at /rustc-dev/13c38730d981289cc7ae4cc109fd7756bf83ee67/compiler/rustc_query_impl/src/lib.rs:128:9
  37:     0x7fca7a6f6c55 - rustc_query_system[42b0665e8e4da0bf]::query::plumbing::execute_job_non_incr::<rustc_query_impl[d22e6f0bf5601a23]::SemiDynamicQueryDispatcher<rustc_data_structures[2e7263bb15eb1022]::vec_cache::VecCache<rustc_hir_id[e6d3f9673b591e6d]::OwnerId, rustc_middle[dced8702efbfad36]::query::erase::ErasedData<[u8; 8usize]>, rustc_query_system[42b0665e8e4da0bf]::dep_graph::graph::DepNodeIndex>, {rustc_query_impl[d22e6f0bf5601a23]::QueryFlags { is_anon: false, is_depth_limit: false, is_feedable: false }}>>::{closure#0}
                               at /rustc-dev/13c38730d981289cc7ae4cc109fd7756bf83ee67/compiler/rustc_query_system/src/query/plumbing.rs:520:72
  38:     0x7fca7a6f6c55 - rustc_middle[dced8702efbfad36]::ty::context::tls::enter_context::<rustc_query_system[42b0665e8e4da0bf]::query::plumbing::execute_job_non_incr<rustc_query_impl[d22e6f0bf5601a23]::SemiDynamicQueryDispatcher<rustc_data_structures[2e7263bb15eb1022]::vec_cache::VecCache<rustc_hir_id[e6d3f9673b591e6d]::OwnerId, rustc_middle[dced8702efbfad36]::query::erase::ErasedData<[u8; 8usize]>, rustc_query_system[42b0665e8e4da0bf]::dep_graph::graph::DepNodeIndex>, {rustc_query_impl[d22e6f0bf5601a23]::QueryFlags { is_anon: false, is_depth_limit: false, is_feedable: false }}>>::{closure#0}, rustc_middle[dced8702efbfad36]::query::erase::ErasedData<[u8; 8usize]>>::{closure#0}
                               at /rustc-dev/13c38730d981289cc7ae4cc109fd7756bf83ee67/compiler/rustc_middle/src/ty/context/tls.rs:60:9
  39:     0x7fca7a6f6c55 - <std[64b2b1c9aa015027]::thread::local::LocalKey<core[2d39e5c12c705ebb]::cell::Cell<*const ()>>>::try_with::<rustc_middle[dced8702efbfad36]::ty::context::tls::enter_context<rustc_query_system[42b0665e8e4da0bf]::query::plumbing::execute_job_non_incr<rustc_query_impl[d22e6f0bf5601a23]::SemiDynamicQueryDispatcher<rustc_data_structures[2e7263bb15eb1022]::vec_cache::VecCache<rustc_hir_id[e6d3f9673b591e6d]::OwnerId, rustc_middle[dced8702efbfad36]::query::erase::ErasedData<[u8; 8usize]>, rustc_query_system[42b0665e8e4da0bf]::dep_graph::graph::DepNodeIndex>, {rustc_query_impl[d22e6f0bf5601a23]::QueryFlags { is_anon: false, is_depth_limit: false, is_feedable: false }}>>::{closure#0}, rustc_middle[dced8702efbfad36]::query::erase::ErasedData<[u8; 8usize]>>::{closure#0}, rustc_middle[dced8702efbfad36]::query::erase::ErasedData<[u8; 8usize]>>
                               at /rustc-dev/13c38730d981289cc7ae4cc109fd7756bf83ee67/library/std/src/thread/local.rs:513:12
  40:     0x7fca7a6f6c55 - <std[64b2b1c9aa015027]::thread::local::LocalKey<core[2d39e5c12c705ebb]::cell::Cell<*const ()>>>::with::<rustc_middle[dced8702efbfad36]::ty::context::tls::enter_context<rustc_query_system[42b0665e8e4da0bf]::query::plumbing::execute_job_non_incr<rustc_query_impl[d22e6f0bf5601a23]::SemiDynamicQueryDispatcher<rustc_data_structures[2e7263bb15eb1022]::vec_cache::VecCache<rustc_hir_id[e6d3f9673b591e6d]::OwnerId, rustc_middle[dced8702efbfad36]::query::erase::ErasedData<[u8; 8usize]>, rustc_query_system[42b0665e8e4da0bf]::dep_graph::graph::DepNodeIndex>, {rustc_query_impl[d22e6f0bf5601a23]::QueryFlags { is_anon: false, is_depth_limit: false, is_feedable: false }}>>::{closure#0}, rustc_middle[dced8702efbfad36]::query::erase::ErasedData<[u8; 8usize]>>::{closure#0}, rustc_middle[dced8702efbfad36]::query::erase::ErasedData<[u8; 8usize]>>
                               at /rustc-dev/13c38730d981289cc7ae4cc109fd7756bf83ee67/library/std/src/thread/local.rs:477:20
  41:     0x7fca7a6f6c55 - rustc_middle[dced8702efbfad36]::ty::context::tls::enter_context::<rustc_query_system[42b0665e8e4da0bf]::query::plumbing::execute_job_non_incr<rustc_query_impl[d22e6f0bf5601a23]::SemiDynamicQueryDispatcher<rustc_data_structures[2e7263bb15eb1022]::vec_cache::VecCache<rustc_hir_id[e6d3f9673b591e6d]::OwnerId, rustc_middle[dced8702efbfad36]::query::erase::ErasedData<[u8; 8usize]>, rustc_query_system[42b0665e8e4da0bf]::dep_graph::graph::DepNodeIndex>, {rustc_query_impl[d22e6f0bf5601a23]::QueryFlags { is_anon: false, is_depth_limit: false, is_feedable: false }}>>::{closure#0}, rustc_middle[dced8702efbfad36]::query::erase::ErasedData<[u8; 8usize]>>
                               at /rustc-dev/13c38730d981289cc7ae4cc109fd7756bf83ee67/compiler/rustc_middle/src/ty/context/tls.rs:57:9
  42:     0x7fca7a6f6c55 - <rustc_query_impl[d22e6f0bf5601a23]::plumbing::QueryCtxt as rustc_query_system[42b0665e8e4da0bf]::query::QueryContext>::start_query::<rustc_middle[dced8702efbfad36]::query::erase::ErasedData<[u8; 8usize]>, rustc_query_system[42b0665e8e4da0bf]::query::plumbing::execute_job_non_incr<rustc_query_impl[d22e6f0bf5601a23]::SemiDynamicQueryDispatcher<rustc_data_structures[2e7263bb15eb1022]::vec_cache::VecCache<rustc_hir_id[e6d3f9673b591e6d]::OwnerId, rustc_middle[dced8702efbfad36]::query::erase::ErasedData<[u8; 8usize]>, rustc_query_system[42b0665e8e4da0bf]::dep_graph::graph::DepNodeIndex>, {rustc_query_impl[d22e6f0bf5601a23]::QueryFlags { is_anon: false, is_depth_limit: false, is_feedable: false }}>>::{closure#0}>::{closure#0}
                               at /rustc-dev/13c38730d981289cc7ae4cc109fd7756bf83ee67/compiler/rustc_query_impl/src/plumbing.rs:178:13
  43:     0x7fca7a6f6c55 - rustc_middle[dced8702efbfad36]::ty::context::tls::with_related_context::<<rustc_query_impl[d22e6f0bf5601a23]::plumbing::QueryCtxt as rustc_query_system[42b0665e8e4da0bf]::query::QueryContext>::start_query<rustc_middle[dced8702efbfad36]::query::erase::ErasedData<[u8; 8usize]>, rustc_query_system[42b0665e8e4da0bf]::query::plumbing::execute_job_non_incr<rustc_query_impl[d22e6f0bf5601a23]::SemiDynamicQueryDispatcher<rustc_data_structures[2e7263bb15eb1022]::vec_cache::VecCache<rustc_hir_id[e6d3f9673b591e6d]::OwnerId, rustc_middle[dced8702efbfad36]::query::erase::ErasedData<[u8; 8usize]>, rustc_query_system[42b0665e8e4da0bf]::dep_graph::graph::DepNodeIndex>, {rustc_query_impl[d22e6f0bf5601a23]::QueryFlags { is_anon: false, is_depth_limit: false, is_feedable: false }}>>::{closure#0}>::{closure#0}, rustc_middle[dced8702efbfad36]::query::erase::ErasedData<[u8; 8usize]>>::{closure#0}
                               at /rustc-dev/13c38730d981289cc7ae4cc109fd7756bf83ee67/compiler/rustc_middle/src/ty/context/tls.rs:112:9
  44:     0x7fca7a6f6c55 - rustc_middle[dced8702efbfad36]::ty::context::tls::with_context::<rustc_middle[dced8702efbfad36]::ty::context::tls::with_related_context<<rustc_query_impl[d22e6f0bf5601a23]::plumbing::QueryCtxt as rustc_query_system[42b0665e8e4da0bf]::query::QueryContext>::start_query<rustc_middle[dced8702efbfad36]::query::erase::ErasedData<[u8; 8usize]>, rustc_query_system[42b0665e8e4da0bf]::query::plumbing::execute_job_non_incr<rustc_query_impl[d22e6f0bf5601a23]::SemiDynamicQueryDispatcher<rustc_data_structures[2e7263bb15eb1022]::vec_cache::VecCache<rustc_hir_id[e6d3f9673b591e6d]::OwnerId, rustc_middle[dced8702efbfad36]::query::erase::ErasedData<[u8; 8usize]>, rustc_query_system[42b0665e8e4da0bf]::dep_graph::graph::DepNodeIndex>, {rustc_query_impl[d22e6f0bf5601a23]::QueryFlags { is_anon: false, is_depth_limit: false, is_feedable: false }}>>::{closure#0}>::{closure#0}, rustc_middle[dced8702efbfad36]::query::erase::ErasedData<[u8; 8usize]>>::{closure#0}, rustc_middle[dced8702efbfad36]::query::erase::ErasedData<[u8; 8usize]>>::{closure#0}
                               at /rustc-dev/13c38730d981289cc7ae4cc109fd7756bf83ee67/compiler/rustc_middle/src/ty/context/tls.rs:90:36
 
      
 --> /tmp/icemaker_global_tempdir.8dujOsQtIDBk/rustc_testrunner_tmpdir_reporting.aRT3ohbeJYzX/mvce.rs:4:26
  |
4 |     h2(|_: (), _: (), _: (), x: &_| {});
  |                          ^^

error: internal compiler error: `_` overridden by `_` for HirId(DefId(0:3 ~ mvce[ba04]::main).21) in DefId(0:3 ~ mvce[ba04]::main)
 --> /tmp/icemaker_global_tempdir.8dujOsQtIDBk/rustc_testrunner_tmpdir_reporting.aRT3ohbeJYzX/mvce.rs:4:34
  |
4 |     h2(|_: (), _: (), _: (), x: &_| {});
  |                                  ^
  |
note: delayed at /rustc-dev/13c38730d981289cc7ae4cc109fd7756bf83ee67/compiler/rustc_hir_typeck/src/fn_ctxt/_impl.rs:188:28
         0: <rustc_errors::DiagCtxtInner>::emit_diagnostic
                   at /rustc-dev/13c38730d981289cc7ae4cc109fd7756bf83ee67/compiler/rustc_errors/src/lib.rs:1262:41
         1: <rustc_errors::DiagCtxtHandle>::emit_diagnostic
                   at /rustc-dev/13c38730d981289cc7ae4cc109fd7756bf83ee67/compiler/rustc_errors/src/lib.rs:857:33
         2: <rustc_errors::diagnostic::Diag>::emit_producing_error_guaranteed
                   at /rustc-dev/13c38730d981289cc7ae4cc109fd7756bf83ee67/compiler/rustc_errors/src/diagnostic.rs:1352:29
         3: <rustc_span::ErrorGuaranteed as rustc_errors::diagnostic::EmissionGuarantee>::emit_producing_guarantee
                   at /rustc-dev/13c38730d981289cc7ae4cc109fd7756bf83ee67/compiler/rustc_errors/src/diagnostic.rs:42:14
         4: <rustc_errors::diagnostic::Diag>::emit
                   at /rustc-dev/13c38730d981289cc7ae4cc109fd7756bf83ee67/compiler/rustc_errors/src/diagnostic.rs:1359:9
         5: <rustc_errors::DiagCtxtHandle>::span_delayed_bug::<rustc_span::span_encoding::Span, alloc::string::String>
                   at /rustc-dev/13c38730d981289cc7ae4cc109fd7756bf83ee67/compiler/rustc_errors/src/lib.rs:1077:82
         6: <rustc_hir_typeck::fn_ctxt::FnCtxt>::write_ty
                   at /rustc-dev/13c38730d981289cc7ae4cc109fd7756bf83ee67/compiler/rustc_hir_typeck/src/fn_ctxt/_impl.rs:188:28
         7: <dyn rustc_hir_analysis::hir_ty_lowering::HirTyLowerer>::lower_ty::{closure#0}
                   at /rustc-dev/13c38730d981289cc7ae4cc109fd7756bf83ee67/compiler/rustc_hir_analysis/src/hir_ty_lowering/mod.rs:3028:14
         8: <dyn rustc_hir_analysis::hir_ty_lowering::HirTyLowerer>::lower_ty
                   at /rustc-dev/13c38730d981289cc7ae4cc109fd7756bf83ee67/compiler/rustc_hir_analysis/src/hir_ty_lowering/mod.rs:2874:5
         9: <dyn rustc_hir_analysis::hir_ty_lowering::HirTyLowerer>::lower_ty::{closure#0}
                   at /rustc-dev/13c38730d981289cc7ae4cc109fd7756bf83ee67/compiler/rustc_hir_analysis/src/hir_ty_lowering/mod.rs:2885:30
        10: <dyn rustc_hir_analysis::hir_ty_lowering::HirTyLowerer>::lower_ty
                   at /rustc-dev/13c38730d981289cc7ae4cc109fd7756bf83ee67/compiler/rustc_hir_analysis/src/hir_ty_lowering/mod.rs:2874:5
        11: <rustc_hir_typeck::fn_ctxt::FnCtxt>::supplied_sig_of_closure::{closure#0}::{closure#0}
                   at /rustc-dev/13c38730d981289cc7ae4cc109fd7756bf83ee67/compiler/rustc_hir_typeck/src/closure.rs:916:69
        12: <&mut <rustc_hir_typeck::fn_ctxt::FnCtxt>::supplied_sig_of_closure::{closure#0}::{closure#0} as core::ops::function::FnOnce<(&rustc_hir::hir::Ty,)>>::call_once
                   at /rustc-dev/13c38730d981289cc7ae4cc109fd7756bf83ee67/library/core/src/ops/function.rs:310:21
        13: <core::option::Option<&rustc_hir::hir::Ty>>::map::<rustc_middle::ty::Ty, &mut <rustc_hir_typeck::fn_ctxt::FnCtxt>::supplied_sig_of_closure::{closure#0}::{closure#0}>
                   at /rustc-dev/13c38730d981289cc7ae4cc109fd7756bf83ee67/library/core/src/option.rs:1165:29
        14: <core::iter::adapters::map::Map<core::slice::iter::Iter<rustc_hir::hir::Ty>, <rustc_hir_typeck::fn_ctxt::FnCtxt>::supplied_sig_of_closure::{closure#0}::{closure#0}> as core::iter::traits::iterator::Iterator>::next
                   at /rustc-dev/13c38730d981289cc7ae4cc109fd7756bf83ee67/library/core/src/iter/adapters/map.rs:107:26
        15: <<core::iter::adapters::map::Map<core::slice::iter::Iter<rustc_hir::hir::Ty>, <rustc_hir_typeck::fn_ctxt::FnCtxt>::supplied_sig_of_closure::{closure#0}::{closure#0}> as core::iter::traits::iterator::Iterator>::next as core::ops::function::FnOnce<(&mut core::iter::adapters::map::Map<core::slice::iter::Iter<rustc_hir::hir::Ty>, <rustc_hir_typeck::fn_ctxt::FnCtxt>::supplied_sig_of_closure::{closure#0}::{closure#0}>,)>>::call_once
                   at /rustc-dev/13c38730d981289cc7ae4cc109fd7756bf83ee67/library/core/src/ops/function.rs:250:5
        16: core::iter::adapters::chain::and_then_or_clear::<core::iter::adapters::map::Map<core::slice::iter::Iter<rustc_hir::hir::Ty>, <rustc_hir_typeck::fn_ctxt::FnCtxt>::supplied_sig_of_closure::{closure#0}::{closure#0}>, rustc_middle::ty::Ty, <core::iter::adapters::map::Map<core::slice::iter::Iter<rustc_hir::hir::Ty>, <rustc_hir_typeck::fn_ctxt::FnCtxt>::supplied_sig_of_closure::{closure#0}::{closure#0}> as core::iter::traits::iterator::Iterator>::next>
                   at /rustc-dev/13c38730d981289cc7ae4cc109fd7756bf83ee67/library/core/src/iter/adapters/chain.rs:332:13
        17: <core::iter::adapters::chain::Chain<core::iter::adapters::map::Map<core::slice::iter::Iter<rustc_hir::hir::Ty>, <rustc_hir_typeck::fn_ctxt::FnCtxt>::supplied_sig_of_closure::{closure#0}::{closure#0}>, core::iter::sources::once::Once<rustc_middle::ty::Ty>> as core::iter::traits::iterator::Iterator>::next
                   at /rustc-dev/13c38730d981289cc7ae4cc109fd7756bf83ee67/library/core/src/iter/adapters/chain.rs:82:9
        18: <rustc_middle::ty::Ty as rustc_type_ir::interner::CollectAndApply<rustc_middle::ty::Ty, rustc_type_ir::ty_kind::FnSig<rustc_middle::ty::context::TyCtxt>>>::collect_and_apply::<core::iter::adapters::chain::Chain<core::iter::adapters::map::Map<core::slice::iter::Iter<rustc_hir::hir::Ty>, <rustc_hir_typeck::fn_ctxt::FnCtxt>::supplied_sig_of_closure::{closure#0}::{closure#0}>, core::iter::sources::once::Once<rustc_middle::ty::Ty>>, <rustc_middle::ty::context::TyCtxt>::mk_fn_sig<core::iter::adapters::map::Map<core::slice::iter::Iter<rustc_hir::hir::Ty>, <rustc_hir_typeck::fn_ctxt::FnCtxt>::supplied_sig_of_closure::{closure#0}::{closure#0}>, rustc_middle::ty::Ty>::{closure#0}>
                   at /rustc-dev/13c38730d981289cc7ae4cc109fd7756bf83ee67/compiler/rustc_type_ir/src/interner.rs:462:29
        19: <rustc_middle::ty::context::TyCtxt>::mk_fn_sig::<core::iter::adapters::map::Map<core::slice::iter::Iter<rustc_hir::hir::Ty>, <rustc_hir_typeck::fn_ctxt::FnCtxt>::supplied_sig_of_closure::{closure#0}::{closure#0}>, rustc_middle::ty::Ty>
                   at /rustc-dev/13c38730d981289cc7ae4cc109fd7756bf83ee67/compiler/rustc_middle/src/ty/context.rs:3170:9
        20: <rustc_hir_typeck::fn_ctxt::FnCtxt>::supplied_sig_of_closure::{closure#0}
                   at /rustc-dev/13c38730d981289cc7ae4cc109fd7756bf83ee67/compiler/rustc_hir_typeck/src/closure.rs:961:22
        21: <rustc_hir_typeck::fn_ctxt::FnCtxt>::supplied_sig_of_closure
                   at /rustc-dev/13c38730d981289cc7ae4cc109fd7756bf83ee67/compiler/rustc_hir_typeck/src/closure.rs:900:5
        22: <rustc_hir_typeck::fn_ctxt::FnCtxt>::sig_of_closure_no_expectation
                   at /rustc-dev/13c38730d981289cc7ae4cc109fd7756bf83ee67/compiler/rustc_hir_typeck/src/closure.rs:667:30
        23: <rustc_hir_typeck::fn_ctxt::FnCtxt>::sig_of_closure_with_expectation
                   at /rustc-dev/13c38730d981289cc7ae4cc109fd7756bf83ee67/compiler/rustc_hir_typeck/src/closure.rs:773:28
        24: <rustc_hir_typeck::fn_ctxt::FnCtxt>::sig_of_closure
                   at /rustc-dev/13c38730d981289cc7ae4cc109fd7756bf83ee67/compiler/rustc_hir_typeck/src/closure.rs:652:18
        25: <rustc_hir_typeck::fn_ctxt::FnCtxt>::check_expr_closure
                   at /rustc-dev/13c38730d981289cc7ae4cc109fd7756bf83ee67/compiler/rustc_hir_typeck/src/closure.rs:70:18
        26: <rustc_hir_typeck::fn_ctxt::FnCtxt>::check_expr_kind
                   at /rustc-dev/13c38730d981289cc7ae4cc109fd7756bf83ee67/compiler/rustc_hir_typeck/src/expr.rs:386:48
        27: <rustc_hir_typeck::fn_ctxt::FnCtxt>::check_expr_with_expectation_and_args::{closure#0}
                   at /rustc-dev/13c38730d981289cc7ae4cc109fd7756bf83ee67/compiler/rustc_hir_typeck/src/expr.rs:291:23
        28: stacker::maybe_grow::<rustc_middle::ty::Ty, <rustc_hir_typeck::fn_ctxt::FnCtxt>::check_expr_with_expectation_and_args::{closure#0}>
                   at /rust/deps/stacker-0.1.21/src/lib.rs:57:9
        29: rustc_data_structures::stack::ensure_sufficient_stack::<rustc_middle::ty::Ty, <rustc_hir_typeck::fn_ctxt::FnCtxt>::check_expr_with_expectation_and_args::{closure#0}>
                   at /rustc-dev/13c38730d981289cc7ae4cc109fd7756bf83ee67/compiler/rustc_data_structures/src/stack.rs:21:5
        30: <rustc_hir_typeck::fn_ctxt::FnCtxt>::check_expr_with_expectation_and_args
                   at /rustc-dev/13c38730d981289cc7ae4cc109fd7756bf83ee67/compiler/rustc_hir_typeck/src/expr.rs:286:18
        31: <rustc_hir_typeck::fn_ctxt::FnCtxt>::check_expr_with_expectation
                   at /rustc-dev/13c38730d981289cc7ae4cc109fd7756bf83ee67/compiler/rustc_hir_typeck/src/expr.rs:231:14
        32: <rustc_hir_typeck::fn_ctxt::FnCtxt>::check_argument_types::{closure#1}
                   at /rustc-dev/13c38730d981289cc7ae4cc109fd7756bf83ee67/compiler/rustc_hir_typeck/src/fn_ctxt/checks.rs:378:35
        33: <rustc_hir_typeck::fn_ctxt::FnCtxt>::check_argument_types
                   at /rustc-dev/13c38730d981289cc7ae4cc109fd7756bf83ee67/compiler/rustc_hir_typeck/src/fn_ctxt/checks.rs:475:34
        34: <rustc_hir_typeck::fn_ctxt::FnCtxt>::confirm_builtin_call
                   at /rustc-dev/13c38730d981289cc7ae4cc109fd7756bf83ee67/compiler/rustc_hir_typeck/src/callee.rs:571:14
        35: <rustc_hir_typeck::fn_ctxt::FnCtxt>::check_expr_call
                   at /rustc-dev/13c38730d981289cc7ae4cc109fd7756bf83ee67/compiler/rustc_hir_typeck/src/callee.rs:131:22
        36: <rustc_hir_typeck::fn_ctxt::FnCtxt>::check_expr_kind
                   at /rustc-dev/13c38730d981289cc7ae4cc109fd7756bf83ee67/compiler/rustc_hir_typeck/src/expr.rs:388:50
        37: <rustc_hir_typeck::fn_ctxt::FnCtxt>::check_expr_with_expectation_and_args::{closure#0}
                   at /rustc-dev/13c38730d981289cc7ae4cc109fd7756bf83ee67/compiler/rustc_hir_typeck/src/expr.rs:291:23
        38: stacker::maybe_grow::<rustc_middle::ty::Ty, <rustc_hir_typeck::fn_ctxt::FnCtxt>::check_expr_with_expectation_and_args::{closure#0}>
                   at /rust/deps/stacker-0.1.21/src/lib.rs:57:9
        39: rustc_data_structures::stack::ensure_sufficient_stack::<rustc_middle::ty::Ty, <rustc_hir_typeck::fn_ctxt::FnCtxt>::check_expr_with_expectation_and_args::{closure#0}>
                   at /rustc-dev/13c38730d981289cc7ae4cc109fd7756bf83ee67/compiler/rustc_data_structures/src/stack.rs:21:5
        40: <rustc_hir_typeck::fn_ctxt::FnCtxt>::check_expr_with_expectation_and_args
                   at /rustc-dev/13c38730d981289cc7ae4cc109fd7756bf83ee67/compiler/rustc_hir_typeck/src/expr.rs:286:18
        41: <rustc_hir_typeck::fn_ctxt::FnCtxt>::check_expr_with_expectation
                   at /rustc-dev/13c38730d981289cc7ae4cc109fd7756bf83ee67/compiler/rustc_hir_typeck/src/expr.rs:231:14
        42: <rustc_hir_typeck::fn_ctxt::FnCtxt>::check_expr
                   at /rustc-dev/13c38730d981289cc7ae4cc109fd7756bf83ee67/compiler/rustc_hir_typeck/src/expr.rs:210:14
        43: <rustc_hir_typeck::fn_ctxt::FnCtxt>::check_stmt
                   at /rustc-dev/13c38730d981289cc7ae4cc109fd7756bf83ee67/compiler/rustc_hir_typeck/src/fn_ctxt/checks.rs:994:31
        44: <rustc_hir_typeck::fn_ctxt::FnCtxt>::check_expr_block::{closure#0}
                   at /rustc-dev/13c38730d981289cc7ae4cc109fd7756bf83ee67/compiler/rustc_hir_typeck/src/fn_ctxt/checks.rs:1043:22
        45: <rustc_hir_typeck::fn_ctxt::FnCtxt>::with_breakable_ctxt::<<rustc_hir_typeck::fn_ctxt::FnCtxt>::check_expr_block::{closure#0}, ()>
                   at /rustc-dev/13c38730d981289cc7ae4cc109fd7756bf83ee67/compiler/rustc_hir_typeck/src/fn_ctxt/_impl.rs:1539:22
        46: <rustc_hir_typeck::fn_ctxt::FnCtxt>::check_expr_block
                   at /rustc-dev/13c38730d981289cc7ae4cc109fd7756bf83ee67/compiler/rustc_hir_typeck/src/fn_ctxt/checks.rs:1041:31
        47: <rustc_hir_typeck::fn_ctxt::FnCtxt>::check_expr_kind
                   at /rustc-dev/13c38730d981289cc7ae4cc109fd7756bf83ee67/compiler/rustc_hir_typeck/src/expr.rs:387:46
        48: <rustc_hir_typeck::fn_ctxt::FnCtxt>::check_expr_with_expectation_and_args::{closure#0}
                   at /rustc-dev/13c38730d981289cc7ae4cc109fd7756bf83ee67/compiler/rustc_hir_typeck/src/expr.rs:291:23
        49: stacker::maybe_grow::<rustc_middle::ty::Ty, <rustc_hir_typeck::fn_ctxt::FnCtxt>::check_expr_with_expectation_and_args::{closure#0}>
                   at /rust/deps/stacker-0.1.21/src/lib.rs:57:9
        50: rustc_data_structures::stack::ensure_sufficient_stack::<rustc_middle::ty::Ty, <rustc_hir_typeck::fn_ctxt::FnCtxt>::check_expr_with_expectation_and_args::{closure#0}>
                   at /rustc-dev/13c38730d981289cc7ae4cc109fd7756bf83ee67/compiler/rustc_data_structures/src/stack.rs:21:5
        51: <rustc_hir_typeck::fn_ctxt::FnCtxt>::check_expr_with_expectation_and_args
                   at /rustc-dev/13c38730d981289cc7ae4cc109fd7756bf83ee67/compiler/rustc_hir_typeck/src/expr.rs:286:18
        52: <rustc_hir_typeck::fn_ctxt::FnCtxt>::check_expr_with_expectation
                   at /rustc-dev/13c38730d981289cc7ae4cc109fd7756bf83ee67/compiler/rustc_hir_typeck/src/expr.rs:231:14
        53: <rustc_hir_typeck::fn_ctxt::FnCtxt>::check_expr_with_hint
                   at /rustc-dev/13c38730d981289cc7ae4cc109fd7756bf83ee67/compiler/rustc_hir_typeck/src/expr.rs:186:14
        54: <rustc_hir_typeck::fn_ctxt::FnCtxt>::check_return_or_body_tail
                   at /rustc-dev/13c38730d981289cc7ae4cc109fd7756bf83ee67/compiler/rustc_hir_typeck/src/expr.rs:968:35
        55: rustc_hir_typeck::check::check_fn
                   at /rustc-dev/13c38730d981289cc7ae4cc109fd7756bf83ee67/compiler/rustc_hir_typeck/src/check.rs:130:9
        56: rustc_hir_typeck::typeck_with_inspect::{closure#0}
                   at /rustc-dev/13c38730d981289cc7ae4cc109fd7756bf83ee67/compiler/rustc_hir_typeck/src/lib.rs:178:9
        57: rustc_hir_typeck::typeck_with_inspect
                   at /rustc-dev/13c38730d981289cc7ae4cc109fd7756bf83ee67/compiler/rustc_hir_typeck/src/lib.rs:103:1
        58: rustc_query_impl::query_impl::typeck::compute_fn::__rust_begin_short_backtrace
                   at /rustc-dev/13c38730d981289cc7ae4cc109fd7756bf83ee67/compiler/rustc_query_impl/src/plumbing.rs:290:9
        59: <rustc_query_impl::SemiDynamicQueryDispatcher<rustc_data_structures::vec_cache::VecCache<rustc_hir_id::OwnerId, rustc_middle::query::erase::ErasedData<[u8; 8]>, rustc_query_system::dep_graph::graph::DepNodeIndex>, {rustc_query_impl::QueryFlags { is_anon: false, is_depth_limit: false, is_feedable: false }}> as rustc_query_system::query::dispatcher::QueryDispatcher>::compute
                   at /rustc-dev/13c38730d981289cc7ae4cc109fd7756bf83ee67/compiler/rustc_query_impl/src/lib.rs:128:9
        60: rustc_query_system::query::plumbing::execute_job_non_incr::<rustc_query_impl::SemiDynamicQueryDispatcher<rustc_data_structures::vec_cache::VecCache<rustc_hir_id::OwnerId, rustc_middle::query::erase::ErasedData<[u8; 8]>, rustc_query_system::dep_graph::graph::DepNodeIndex>, {rustc_query_impl::QueryFlags { is_anon: false, is_depth_limit: false, is_feedable: false }}>>::{closure#0}
                   at /rustc-dev/13c38730d981289cc7ae4cc109fd7756bf83ee67/compiler/rustc_query_system/src/query/plumbing.rs:520:72
        61: rustc_middle::ty::context::tls::enter_context::<rustc_query_system::query::plumbing::execute_job_non_incr<rustc_query_impl::SemiDynamicQueryDispatcher<rustc_data_structures::vec_cache::VecCache<rustc_hir_id::OwnerId, rustc_middle::query::erase::ErasedData<[u8; 8]>, rustc_query_system::dep_graph::graph::DepNodeIndex>, {rustc_query_impl::QueryFlags { is_anon: false, is_depth_limit: false, is_feedable: false }}>>::{closure#0}, rustc_middle::query::erase::ErasedData<[u8; 8]>>::{closure#0}
                   at /rustc-dev/13c38730d981289cc7ae4cc109fd7756bf83ee67/compiler/rustc_middle/src/ty/context/tls.rs:60:9
        62: <std::thread::local::LocalKey<core::cell::Cell<*const ()>>>::try_with::<rustc_middle::ty::context::tls::enter_context<rustc_query_system::query::plumbing::execute_job_non_incr<rustc_query_impl::SemiDynamicQueryDispatcher<rustc_data_structures::vec_cache::VecCache<rustc_hir_id::OwnerId, rustc_middle::query::erase::ErasedData<[u8; 8]>, rustc_query_system::dep_graph::graph::DepNodeIndex>, {rustc_query_impl::QueryFlags { is_anon: false, is_depth_limit: false, is_feedable: false }}>>::{closure#0}, rustc_middle::query::erase::ErasedData<[u8; 8]>>::{closure#0}, rustc_middle::query::erase::ErasedData<[u8; 8]>>
                   at /rustc-dev/13c38730d981289cc7ae4cc109fd7756bf83ee67/library/std/src/thread/local.rs:513:12
        63: <std::thread::local::LocalKey<core::cell::Cell<*const ()>>>::with::<rustc_middle::ty::context::tls::enter_context<rustc_query_system::query::plumbing::execute_job_non_incr<rustc_query_impl::SemiDynamicQueryDispatcher<rustc_data_structures::vec_cache::VecCache<rustc_hir_id::OwnerId, rustc_middle::query::erase::ErasedData<[u8; 8]>, rustc_query_system::dep_graph::graph::DepNodeIndex>, {rustc_query_impl::QueryFlags { is_anon: false, is_depth_limit: false, is_feedable: false }}>>::{closure#0}, rustc_middle::query::erase::ErasedData<[u8; 8]>>::{closure#0}, rustc_middle::query::erase::ErasedData<[u8; 8]>>
                   at /rustc-dev/13c38730d981289cc7ae4cc109fd7756bf83ee67/library/std/src/thread/local.rs:477:20
        64: rustc_middle::ty::context::tls::enter_context::<rustc_query_system::query::plumbing::execute_job_non_incr<rustc_query_impl::SemiDynamicQueryDispatcher<rustc_data_structures::vec_cache::VecCache<rustc_hir_id::OwnerId, rustc_middle::query::erase::ErasedData<[u8; 8]>, rustc_query_system::dep_graph::graph::DepNodeIndex>, {rustc_query_impl::QueryFlags { is_anon: false, is_depth_limit: false, is_feedable: false }}>>::{closure#0}, rustc_middle::query::erase::ErasedData<[u8; 8]>>
                   at /rustc-dev/13c38730d981289cc7ae4cc109fd7756bf83ee67/compiler/rustc_middle/src/ty/context/tls.rs:57:9
        65: <rustc_query_impl::plumbing::QueryCtxt as rustc_query_system::query::QueryContext>::start_query::<rustc_middle::query::erase::ErasedData<[u8; 8]>, rustc_query_system::query::plumbing::execute_job_non_incr<rustc_query_impl::SemiDynamicQueryDispatcher<rustc_data_structures::vec_cache::VecCache<rustc_hir_id::OwnerId, rustc_middle::query::erase::ErasedData<[u8; 8]>, rustc_query_system::dep_graph::graph::DepNodeIndex>, {rustc_query_impl::QueryFlags { is_anon: false, is_depth_limit: false, is_feedable: false }}>>::{closure#0}>::{closure#0}
                   at /rustc-dev/13c38730d981289cc7ae4cc109fd7756bf83ee67/compiler/rustc_query_impl/src/plumbing.rs:178:13
 

.....

       157: <unknown>
      
 --> /tmp/icemaker_global_tempdir.8dujOsQtIDBk/rustc_testrunner_tmpdir_reporting.aRT3ohbeJYzX/mvce.rs:4:33
  |
4 |     h2(|_: (), _: (), _: (), x: &_| {});
  |                                 ^^

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

note: please make sure that you have updated to the latest nightly

note: rustc 1.95.0-nightly (13c38730d 2026-02-08) running on x86_64-unknown-linux-gnu

query stack during panic:
end of query stack

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.requires-debug-assertionsThis issue requires a build of rustc or tooling with debug-assertions in some way

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions