Skip to content

ICE: predicates_of.rs: no entry found for key #119275

New issue

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

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

Already on GitHub? # to your account

Closed
matthiaskrgr opened this issue Dec 24, 2023 · 1 comment · Fixed by #122863
Closed

ICE: predicates_of.rs: no entry found for key #119275

matthiaskrgr opened this issue Dec 24, 2023 · 1 comment · Fixed by #122863
Labels
C-bug Category: This is a bug. E-needs-test Call for participation: An issue has been fixed and does not reproduce, but no test has been added. F-generic_const_exprs `#![feature(generic_const_exprs)]` F-non_lifetime_binders `#![feature(non_lifetime_binders)]` I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ S-has-mcve Status: A Minimal Complete and Verifiable Example has been found for this issue T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Comments

@matthiaskrgr
Copy link
Member

auto-reduced (treereduce-rust):

#![feature(generic_const_exprs)]

fn bug<const N: Nat>(&self)
where
    for<const N: usize = 3, T = u32> [(); COT::BYTES]:,
{
}

original:

//~^ ERROR expected value, found type parameter `T`
// see comment on `tests/ui/const-generics/late-bound-vars/simple.rs`

#![feature(generic_const_exprs)]
#![allow(do_one_stuff)]

fn bug<const N: Nat>(&self, other: &UnionDerive)
where
    for<const N: usize=3, T=u32> [(); COT::BYTES]:
{}

fn foo()
    where
        [(); std::mem::size_of::<Self::Assoc>()]: ,
    {
        Self::AssocInstance == [(); std::mem::size_of::<Self::Assoc>()];
        //~^ Error: mismatched types
    }

Version information

rustc 1.77.0-nightly (cf6427373 2023-12-24)
binary: rustc
commit-hash: cf6427373b8b6d4b8efed2087fb9df5149e69e67
commit-date: 2023-12-24
host: x86_64-unknown-linux-gnu
release: 1.77.0-nightly
LLVM version: 17.0.6

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

Program output

error: `self` parameter is only allowed in associated functions
 --> /tmp/icemaker_global_tempdir.AUy1jkrGRJ1J/rustc_testrunner_tmpdir_reporting.rSMIO4fbDdBQ/mvce.rs:3:22
  |
3 | fn bug<const N: Nat>(&self)
  |                      ^^^^^ not semantically valid as function parameter
  |
  = note: associated functions are those in `impl` or `trait` definitions

error[E0412]: cannot find type `Nat` in this scope
 --> /tmp/icemaker_global_tempdir.AUy1jkrGRJ1J/rustc_testrunner_tmpdir_reporting.rSMIO4fbDdBQ/mvce.rs:3:17
  |
3 | fn bug<const N: Nat>(&self)
  |                 ^^^ not found in this scope

error[E0658]: only lifetime parameters can be used in this context
 --> /tmp/icemaker_global_tempdir.AUy1jkrGRJ1J/rustc_testrunner_tmpdir_reporting.rSMIO4fbDdBQ/mvce.rs:5:15
  |
5 |     for<const N: usize = 3, T = u32> [(); COT::BYTES]:,
  |               ^             ^
  |
  = note: see issue #108185 <https://github.com/rust-lang/rust/issues/108185> for more information
  = help: add `#![feature(non_lifetime_binders)]` to the crate attributes to enable

warning: the feature `generic_const_exprs` is incomplete and may not be safe to use and/or cause compiler crashes
 --> /tmp/icemaker_global_tempdir.AUy1jkrGRJ1J/rustc_testrunner_tmpdir_reporting.rSMIO4fbDdBQ/mvce.rs:1:12
  |
1 | #![feature(generic_const_exprs)]
  |            ^^^^^^^^^^^^^^^^^^^
  |
  = note: see issue #76560 <https://github.com/rust-lang/rust/issues/76560> for more information
  = note: `#[warn(incomplete_features)]` on by default

error[E0601]: `main` function not found in crate `mvce`
 --> /tmp/icemaker_global_tempdir.AUy1jkrGRJ1J/rustc_testrunner_tmpdir_reporting.rSMIO4fbDdBQ/mvce.rs:7:2
  |
7 | }
  |  ^ consider adding a `main` function to `/tmp/icemaker_global_tempdir.AUy1jkrGRJ1J/rustc_testrunner_tmpdir_reporting.rSMIO4fbDdBQ/mvce.rs`

error[E0433]: failed to resolve: use of undeclared type `COT`
 --> /tmp/icemaker_global_tempdir.AUy1jkrGRJ1J/rustc_testrunner_tmpdir_reporting.rSMIO4fbDdBQ/mvce.rs:5:43
  |
5 |     for<const N: usize = 3, T = u32> [(); COT::BYTES]:,
  |                                           ^^^ use of undeclared type `COT`

thread 'rustc' panicked at compiler/rustc_hir_analysis/src/collect/predicates_of.rs:543:63:
no entry found for key
stack backtrace:
   0:     0x7f5a803fd6f6 - std::backtrace_rs::backtrace::libunwind::trace::h2df8f9660ecbfbb8
                               at /rustc/cf6427373b8b6d4b8efed2087fb9df5149e69e67/library/std/src/../../backtrace/src/backtrace/libunwind.rs:104:5
   1:     0x7f5a803fd6f6 - std::backtrace_rs::backtrace::trace_unsynchronized::h3dfda5c841f34135
                               at /rustc/cf6427373b8b6d4b8efed2087fb9df5149e69e67/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
   2:     0x7f5a803fd6f6 - std::sys_common::backtrace::_print_fmt::h1566197678cf7f77
                               at /rustc/cf6427373b8b6d4b8efed2087fb9df5149e69e67/library/std/src/sys_common/backtrace.rs:68:5
   3:     0x7f5a803fd6f6 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::he9641684f15c91b5
                               at /rustc/cf6427373b8b6d4b8efed2087fb9df5149e69e67/library/std/src/sys_common/backtrace.rs:44:22
   4:     0x7f5a8044ff40 - core::fmt::rt::Argument::fmt::h3f14f2302d260e3c
                               at /rustc/cf6427373b8b6d4b8efed2087fb9df5149e69e67/library/core/src/fmt/rt.rs:142:9
   5:     0x7f5a8044ff40 - core::fmt::write::h33dcdf8f1bed97f0
                               at /rustc/cf6427373b8b6d4b8efed2087fb9df5149e69e67/library/core/src/fmt/mod.rs:1120:17
   6:     0x7f5a803f14af - std::io::Write::write_fmt::he47c2dac715a911e
                               at /rustc/cf6427373b8b6d4b8efed2087fb9df5149e69e67/library/std/src/io/mod.rs:1810:15
   7:     0x7f5a803fd4d4 - std::sys_common::backtrace::_print::haaf0fffcc2dbc055
                               at /rustc/cf6427373b8b6d4b8efed2087fb9df5149e69e67/library/std/src/sys_common/backtrace.rs:47:5
   8:     0x7f5a803fd4d4 - std::sys_common::backtrace::print::hce17663b3c8fab7c
                               at /rustc/cf6427373b8b6d4b8efed2087fb9df5149e69e67/library/std/src/sys_common/backtrace.rs:34:9
   9:     0x7f5a80400267 - std::panicking::default_hook::{{closure}}::hef18ec08d6f5a83f
  10:     0x7f5a803fffc9 - std::panicking::default_hook::h443dc0b1acbc2ca1
                               at /rustc/cf6427373b8b6d4b8efed2087fb9df5149e69e67/library/std/src/panicking.rs:292:9
  11:     0x7f5a7d15cb5c - std[53b00ee56307c8d9]::panicking::update_hook::<alloc[e6113a8cd7d0e007]::boxed::Box<rustc_driver_impl[a515e2f3625a014]::install_ice_hook::{closure#0}>>::{closure#0}
  12:     0x7f5a804009b6 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::hbb328bee335e16b4
                               at /rustc/cf6427373b8b6d4b8efed2087fb9df5149e69e67/library/alloc/src/boxed.rs:2029:9
  13:     0x7f5a804009b6 - std::panicking::rust_panic_with_hook::h149d61167f037fda
                               at /rustc/cf6427373b8b6d4b8efed2087fb9df5149e69e67/library/std/src/panicking.rs:783:13
  14:     0x7f5a80400702 - std::panicking::begin_panic_handler::{{closure}}::ha4af7b0b51960b50
                               at /rustc/cf6427373b8b6d4b8efed2087fb9df5149e69e67/library/std/src/panicking.rs:657:13
  15:     0x7f5a803fdbf6 - std::sys_common::backtrace::__rust_end_short_backtrace::h22ec3fc978589b7d
                               at /rustc/cf6427373b8b6d4b8efed2087fb9df5149e69e67/library/std/src/sys_common/backtrace.rs:171:18
  16:     0x7f5a80400460 - rust_begin_unwind
                               at /rustc/cf6427373b8b6d4b8efed2087fb9df5149e69e67/library/std/src/panicking.rs:645:5
  17:     0x7f5a8044c645 - core::panicking::panic_fmt::h33831d9bd6e28a64
                               at /rustc/cf6427373b8b6d4b8efed2087fb9df5149e69e67/library/core/src/panicking.rs:72:14
  18:     0x7f5a8044c3f3 - core::panicking::panic_display::hd71e8dcf36fb2b1a
                               at /rustc/cf6427373b8b6d4b8efed2087fb9df5149e69e67/library/core/src/panicking.rs:196:5
  19:     0x7f5a8044c3f3 - core::panicking::panic_str::habc106871a97a2a0
                               at /rustc/cf6427373b8b6d4b8efed2087fb9df5149e69e67/library/core/src/panicking.rs:171:5
  20:     0x7f5a8044c3f3 - core::option::expect_failed::hb5ff920cf63ac6d4
                               at /rustc/cf6427373b8b6d4b8efed2087fb9df5149e69e67/library/core/src/option.rs:1980:5
  21:     0x7f5a7d26a9f5 - <core[5b4ee21ebe1aec85]::iter::adapters::cloned::Cloned<core[5b4ee21ebe1aec85]::iter::adapters::filter::Filter<core[5b4ee21ebe1aec85]::slice::iter::Iter<(rustc_middle[31e3f561a0c946c5]::ty::Clause, rustc_span[f5b302c54ef9060b]::span_encoding::Span)>, rustc_hir_analysis[bafc4c9086b2fee7]::collect::predicates_of::explicit_predicates_of::{closure#2}>> as core[5b4ee21ebe1aec85]::iter::traits::iterator::Iterator>::next
  22:     0x7f5a7d20b6ef - rustc_arena[a6e3e48d66904fa5]::outline::<<rustc_arena[a6e3e48d66904fa5]::DroplessArena>::alloc_from_iter<(rustc_middle[31e3f561a0c946c5]::ty::Clause, rustc_span[f5b302c54ef9060b]::span_encoding::Span), core[5b4ee21ebe1aec85]::iter::adapters::cloned::Cloned<core[5b4ee21ebe1aec85]::iter::adapters::filter::Filter<core[5b4ee21ebe1aec85]::slice::iter::Iter<(rustc_middle[31e3f561a0c946c5]::ty::Clause, rustc_span[f5b302c54ef9060b]::span_encoding::Span)>, rustc_hir_analysis[bafc4c9086b2fee7]::collect::predicates_of::explicit_predicates_of::{closure#2}>>>::{closure#0}, &mut [(rustc_middle[31e3f561a0c946c5]::ty::Clause, rustc_span[f5b302c54ef9060b]::span_encoding::Span)]>
  23:     0x7f5a7ea15e17 - rustc_query_impl[f5580f8fec7de75e]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[f5580f8fec7de75e]::query_impl::explicit_predicates_of::dynamic_query::{closure#2}::{closure#0}, rustc_middle[31e3f561a0c946c5]::query::erase::Erased<[u8; 24usize]>>
  24:     0x7f5a7e50467e - rustc_query_system[62899876b0b3287e]::query::plumbing::try_execute_query::<rustc_query_impl[f5580f8fec7de75e]::DynamicConfig<rustc_query_system[62899876b0b3287e]::query::caches::DefaultCache<rustc_span[f5b302c54ef9060b]::def_id::DefId, rustc_middle[31e3f561a0c946c5]::query::erase::Erased<[u8; 24usize]>>, false, false, false>, rustc_query_impl[f5580f8fec7de75e]::plumbing::QueryCtxt, false>
  25:     0x7f5a7e504320 - rustc_query_impl[f5580f8fec7de75e]::query_impl::explicit_predicates_of::get_query_non_incr::__rust_end_short_backtrace
  26:     0x7f5a7e5051d8 - rustc_hir_analysis[bafc4c9086b2fee7]::collect::predicates_defined_on
  27:     0x7f5a7e505095 - rustc_query_impl[f5580f8fec7de75e]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[f5580f8fec7de75e]::query_impl::predicates_defined_on::dynamic_query::{closure#2}::{closure#0}, rustc_middle[31e3f561a0c946c5]::query::erase::Erased<[u8; 24usize]>>
  28:     0x7f5a7e504653 - rustc_query_system[62899876b0b3287e]::query::plumbing::try_execute_query::<rustc_query_impl[f5580f8fec7de75e]::DynamicConfig<rustc_query_system[62899876b0b3287e]::query::caches::DefaultCache<rustc_span[f5b302c54ef9060b]::def_id::DefId, rustc_middle[31e3f561a0c946c5]::query::erase::Erased<[u8; 24usize]>>, false, false, false>, rustc_query_impl[f5580f8fec7de75e]::plumbing::QueryCtxt, false>
  29:     0x7f5a7e504160 - rustc_query_impl[f5580f8fec7de75e]::query_impl::predicates_defined_on::get_query_non_incr::__rust_end_short_backtrace
  30:     0x7f5a7e50315b - rustc_hir_analysis[bafc4c9086b2fee7]::collect::predicates_of::predicates_of
  31:     0x7f5a7e503013 - rustc_query_impl[f5580f8fec7de75e]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[f5580f8fec7de75e]::query_impl::predicates_of::dynamic_query::{closure#2}::{closure#0}, rustc_middle[31e3f561a0c946c5]::query::erase::Erased<[u8; 24usize]>>
  32:     0x7f5a7e504626 - rustc_query_system[62899876b0b3287e]::query::plumbing::try_execute_query::<rustc_query_impl[f5580f8fec7de75e]::DynamicConfig<rustc_query_system[62899876b0b3287e]::query::caches::DefaultCache<rustc_span[f5b302c54ef9060b]::def_id::DefId, rustc_middle[31e3f561a0c946c5]::query::erase::Erased<[u8; 24usize]>>, false, false, false>, rustc_query_impl[f5580f8fec7de75e]::plumbing::QueryCtxt, false>
  33:     0x7f5a7e50423e - rustc_query_impl[f5580f8fec7de75e]::query_impl::predicates_of::get_query_non_incr::__rust_end_short_backtrace
  34:     0x7f5a7e9f2c17 - rustc_ty_utils[626d69ea2a15dcb]::ty::param_env
  35:     0x7f5a7e9f2107 - rustc_query_impl[f5580f8fec7de75e]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[f5580f8fec7de75e]::query_impl::param_env::dynamic_query::{closure#2}::{closure#0}, rustc_middle[31e3f561a0c946c5]::query::erase::Erased<[u8; 8usize]>>
  36:     0x7f5a7e490c94 - rustc_query_system[62899876b0b3287e]::query::plumbing::try_execute_query::<rustc_query_impl[f5580f8fec7de75e]::DynamicConfig<rustc_query_system[62899876b0b3287e]::query::caches::DefaultCache<rustc_span[f5b302c54ef9060b]::def_id::DefId, rustc_middle[31e3f561a0c946c5]::query::erase::Erased<[u8; 8usize]>>, false, false, false>, rustc_query_impl[f5580f8fec7de75e]::plumbing::QueryCtxt, false>
  37:     0x7f5a7e4907a1 - rustc_query_impl[f5580f8fec7de75e]::query_impl::param_env::get_query_non_incr::__rust_end_short_backtrace
  38:     0x7f5a7e734329 - rustc_middle[31e3f561a0c946c5]::query::plumbing::query_get_at::<rustc_query_system[62899876b0b3287e]::query::caches::DefaultCache<rustc_span[f5b302c54ef9060b]::def_id::DefId, rustc_middle[31e3f561a0c946c5]::query::erase::Erased<[u8; 8usize]>>>
  39:     0x7f5a7e72b6fe - rustc_hir_typeck[1fdbbb9070b6fec3]::typeck
  40:     0x7f5a7e72b587 - rustc_query_impl[f5580f8fec7de75e]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[f5580f8fec7de75e]::query_impl::typeck::dynamic_query::{closure#2}::{closure#0}, rustc_middle[31e3f561a0c946c5]::query::erase::Erased<[u8; 8usize]>>
  41:     0x7f5a7e5f8403 - rustc_query_system[62899876b0b3287e]::query::plumbing::try_execute_query::<rustc_query_impl[f5580f8fec7de75e]::DynamicConfig<rustc_query_system[62899876b0b3287e]::query::caches::VecCache<rustc_span[f5b302c54ef9060b]::def_id::LocalDefId, rustc_middle[31e3f561a0c946c5]::query::erase::Erased<[u8; 8usize]>>, false, false, false>, rustc_query_impl[f5580f8fec7de75e]::plumbing::QueryCtxt, false>
  42:     0x7f5a7e5f8090 - rustc_query_impl[f5580f8fec7de75e]::query_impl::typeck::get_query_non_incr::__rust_end_short_backtrace
  43:     0x7f5a7e5f930d - rustc_query_impl[f5580f8fec7de75e]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[f5580f8fec7de75e]::query_impl::used_trait_imports::dynamic_query::{closure#2}::{closure#0}, rustc_middle[31e3f561a0c946c5]::query::erase::Erased<[u8; 8usize]>>
  44:     0x7f5a7e5f8403 - rustc_query_system[62899876b0b3287e]::query::plumbing::try_execute_query::<rustc_query_impl[f5580f8fec7de75e]::DynamicConfig<rustc_query_system[62899876b0b3287e]::query::caches::VecCache<rustc_span[f5b302c54ef9060b]::def_id::LocalDefId, rustc_middle[31e3f561a0c946c5]::query::erase::Erased<[u8; 8usize]>>, false, false, false>, rustc_query_impl[f5580f8fec7de75e]::plumbing::QueryCtxt, false>
  45:     0x7f5a7e5f7250 - rustc_query_impl[f5580f8fec7de75e]::query_impl::used_trait_imports::get_query_non_incr::__rust_end_short_backtrace
  46:     0x7f5a7e5f7385 - rustc_hir_analysis[bafc4c9086b2fee7]::check_unused::check_unused_traits
  47:     0x7f5a7e5f7277 - rustc_query_impl[f5580f8fec7de75e]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[f5580f8fec7de75e]::query_impl::check_unused_traits::dynamic_query::{closure#2}::{closure#0}, rustc_middle[31e3f561a0c946c5]::query::erase::Erased<[u8; 0usize]>>
  48:     0x7f5a7f2527ad - rustc_query_system[62899876b0b3287e]::query::plumbing::try_execute_query::<rustc_query_impl[f5580f8fec7de75e]::DynamicConfig<rustc_query_system[62899876b0b3287e]::query::caches::SingleCache<rustc_middle[31e3f561a0c946c5]::query::erase::Erased<[u8; 0usize]>>, false, false, false>, rustc_query_impl[f5580f8fec7de75e]::plumbing::QueryCtxt, false>
  49:     0x7f5a7f252489 - rustc_query_impl[f5580f8fec7de75e]::query_impl::check_unused_traits::get_query_non_incr::__rust_end_short_backtrace
  50:     0x7f5a7ee819e3 - rustc_hir_analysis[bafc4c9086b2fee7]::check_crate
  51:     0x7f5a7ec1e5e9 - rustc_interface[bd66f4fa46f746b1]::passes::analysis
  52:     0x7f5a7ec1e21d - rustc_query_impl[f5580f8fec7de75e]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[f5580f8fec7de75e]::query_impl::analysis::dynamic_query::{closure#2}::{closure#0}, rustc_middle[31e3f561a0c946c5]::query::erase::Erased<[u8; 1usize]>>
  53:     0x7f5a7f3c9a40 - rustc_query_system[62899876b0b3287e]::query::plumbing::try_execute_query::<rustc_query_impl[f5580f8fec7de75e]::DynamicConfig<rustc_query_system[62899876b0b3287e]::query::caches::SingleCache<rustc_middle[31e3f561a0c946c5]::query::erase::Erased<[u8; 1usize]>>, false, false, false>, rustc_query_impl[f5580f8fec7de75e]::plumbing::QueryCtxt, false>
  54:     0x7f5a7f3c9847 - rustc_query_impl[f5580f8fec7de75e]::query_impl::analysis::get_query_non_incr::__rust_end_short_backtrace
  55:     0x7f5a7f155bd2 - rustc_interface[bd66f4fa46f746b1]::interface::run_compiler::<core[5b4ee21ebe1aec85]::result::Result<(), rustc_span[f5b302c54ef9060b]::ErrorGuaranteed>, rustc_driver_impl[a515e2f3625a014]::run_compiler::{closure#0}>::{closure#0}
  56:     0x7f5a7f3e5146 - std[53b00ee56307c8d9]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[bd66f4fa46f746b1]::util::run_in_thread_with_globals<rustc_interface[bd66f4fa46f746b1]::util::run_in_thread_pool_with_globals<rustc_interface[bd66f4fa46f746b1]::interface::run_compiler<core[5b4ee21ebe1aec85]::result::Result<(), rustc_span[f5b302c54ef9060b]::ErrorGuaranteed>, rustc_driver_impl[a515e2f3625a014]::run_compiler::{closure#0}>::{closure#0}, core[5b4ee21ebe1aec85]::result::Result<(), rustc_span[f5b302c54ef9060b]::ErrorGuaranteed>>::{closure#0}, core[5b4ee21ebe1aec85]::result::Result<(), rustc_span[f5b302c54ef9060b]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[5b4ee21ebe1aec85]::result::Result<(), rustc_span[f5b302c54ef9060b]::ErrorGuaranteed>>
  57:     0x7f5a7f3e4f73 - <<std[53b00ee56307c8d9]::thread::Builder>::spawn_unchecked_<rustc_interface[bd66f4fa46f746b1]::util::run_in_thread_with_globals<rustc_interface[bd66f4fa46f746b1]::util::run_in_thread_pool_with_globals<rustc_interface[bd66f4fa46f746b1]::interface::run_compiler<core[5b4ee21ebe1aec85]::result::Result<(), rustc_span[f5b302c54ef9060b]::ErrorGuaranteed>, rustc_driver_impl[a515e2f3625a014]::run_compiler::{closure#0}>::{closure#0}, core[5b4ee21ebe1aec85]::result::Result<(), rustc_span[f5b302c54ef9060b]::ErrorGuaranteed>>::{closure#0}, core[5b4ee21ebe1aec85]::result::Result<(), rustc_span[f5b302c54ef9060b]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[5b4ee21ebe1aec85]::result::Result<(), rustc_span[f5b302c54ef9060b]::ErrorGuaranteed>>::{closure#1} as core[5b4ee21ebe1aec85]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  58:     0x7f5a8040a8e5 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::hcf12dd404666fb67
                               at /rustc/cf6427373b8b6d4b8efed2087fb9df5149e69e67/library/alloc/src/boxed.rs:2015:9
  59:     0x7f5a8040a8e5 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h7d300110ecc80b23
                               at /rustc/cf6427373b8b6d4b8efed2087fb9df5149e69e67/library/alloc/src/boxed.rs:2015:9
  60:     0x7f5a8040a8e5 - std::sys::unix::thread::Thread::new::thread_start::hbf9dee335531cfc2
                               at /rustc/cf6427373b8b6d4b8efed2087fb9df5149e69e67/library/std/src/sys/unix/thread.rs:108:17
  61:     0x7f5a7a2aa9eb - <unknown>
  62:     0x7f5a7a32e7cc - <unknown>
  63:                0x0 - <unknown>

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

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

note: rustc 1.77.0-nightly (cf6427373 2023-12-24) running on x86_64-unknown-linux-gnu

query stack during panic:
#0 [explicit_predicates_of] computing explicit predicates of `bug::{constant#1}`
#1 [predicates_defined_on] computing predicates of `bug::{constant#1}`
#2 [predicates_of] computing predicates of `bug::{constant#1}`
#3 [param_env] computing normalized predicates of `bug::{constant#1}`
#4 [typeck] type-checking `bug::{constant#1}`
#5 [used_trait_imports] finding used_trait_imports `bug::{constant#1}`
#6 [check_unused_traits] checking unused trait imports in crate
#7 [analysis] running analysis passes on this crate
end of query stack
error: aborting due to 5 previous errors; 1 warning emitted

Some errors have detailed explanations: E0412, E0433, E0601, E0658.
For more information about an error, try `rustc --explain E0412`.

@matthiaskrgr matthiaskrgr added I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. C-bug Category: This is a bug. F-generic_const_exprs `#![feature(generic_const_exprs)]` F-non_lifetime_binders `#![feature(non_lifetime_binders)]` labels Dec 24, 2023
@rustbot rustbot added the needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. label Dec 24, 2023
@matthiaskrgr
Copy link
Member Author

Regression in nightly-2023-02-18

found 8 bors merge commits in the specified range
commit[0] 2023-02-16: Auto merge of #108127 - matthiaskrgr:rollup-kpzfc6j, r=matthiaskrgr
commit[1] 2023-02-16: Auto merge of #107833 - Zoxc:arena-query-clean, r=cjgillot
commit[2] 2023-02-17: Auto merge of #108145 - matthiaskrgr:rollup-bgadak1, r=matthiaskrgr
commit[3] 2023-02-17: Auto merge of #107753 - kylematsuda:type-of, r=BoxyUwU
commit[4] 2023-02-17: Auto merge of #108058 - Zoxc:query-ctxtx-byval, r=cjgillot
commit[5] 2023-02-17: Auto merge of #107965 - BoxyUwU:add_const_arg_has_type_predicate, r=compiler-errors
commit[6] 2023-02-17: Auto merge of #108159 - matthiaskrgr:rollup-5k2j7cx, r=matthiaskrgr
commit[7] 2023-02-17: Auto merge of #108075 - WaffleLapkin:de-arena-allocates-you-OwO, r=Nilstrieb

proly #107965

@matthiaskrgr matthiaskrgr added the E-needs-test Call for participation: An issue has been fixed and does not reproduce, but no test has been added. label Jan 3, 2024
@jieyouxu jieyouxu added S-has-mcve Status: A Minimal Complete and Verifiable Example has been found for this issue and removed needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. labels Feb 15, 2024
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this issue Mar 22, 2024
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this issue Mar 22, 2024
rust-timer added a commit to rust-lang-ci/rust that referenced this issue Mar 22, 2024
Rollup merge of rust-lang#122863 - matthiaskrgr:teest, r=lcnr

add more ice tests

fixes rust-lang#119275
fixes rust-lang#113017
fixes rust-lang#112824
fixes rust-lang#112823
fixes rust-lang#121472
fixes rust-lang#110696
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
C-bug Category: This is a bug. E-needs-test Call for participation: An issue has been fixed and does not reproduce, but no test has been added. F-generic_const_exprs `#![feature(generic_const_exprs)]` F-non_lifetime_binders `#![feature(non_lifetime_binders)]` I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ S-has-mcve Status: A Minimal Complete and Verifiable Example has been found for this issue T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants