Git Product home page Git Product logo

Comments (4)

BoxyUwU avatar BoxyUwU commented on September 27, 2024

This is probably just caused by the fact that we have no way of evaluating ConstKind::Expr

from rust.

GrigorenkoPV avatar GrigorenkoPV commented on September 27, 2024

Regression in nightly-2023-04-21
(39c6804...8bdcc62)

nightly-2023-01-10 cc47b06...3020239

from rust.

pacak avatar pacak commented on September 27, 2024

A bit smaller

#![feature(generic_const_exprs)]

trait PrimRec<const N: usize, const O: usize> {
    fn eval(&self) -> [usize; O];
}

fn concat<const M: usize, const N: usize>(_: [usize; M], _: [usize; N]) -> [usize; M + N] {
    [0; M + N]
}

struct Compose<const N: usize, const O: usize>;

impl<const N: usize, const O: usize> PrimRec<N, O> for Compose<N, O> {
    fn eval(&self) -> [usize; O] {
        [0; O]
    }
}

struct Rec<const N: usize, const O: usize>();

impl<const N: usize, const O: usize> PrimRec<{ N + 1 }, O> for Rec<N, O> {
    fn eval(&self) -> [usize; O] {
        concat(self.eval(), [0; N + 1]);
        [0; O]
    }
}

pub fn b() -> [usize; 1] {
    let add: Rec<1, 1, Compose<3, 1>> = Rec(Compose);
    add.eval()
}

from rust.

theemathas avatar theemathas commented on September 27, 2024

@pacak's code doesn't cause an ICE for me.

Here's my minimized code that causes the ICE:

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

fn can_double<const N: usize>(x: [(); N])
where
    [(); N * 2]:,
{
    x[0];
    unimplemented!()
}

fn foo<const N: usize>()
where
    [(); (N + 1) * 2]:,
{
    can_double([(); { N + 1 }]);
    // Adding an explicit constant generic causes the ICE to go away
    // can_double::<{N + 1}>([(); { N + 1 }]);
}

fn main() {
    foo::<1>();
}
Error output
   Compiling playground v0.0.1 (/playground)
error: internal compiler error: compiler/rustc_monomorphize/src/collector.rs:703:50: collection encountered polymorphic constant: Ty(usize, (Add: (1_usize: usize), (1_usize: usize)))
 --> src/main.rs:8:5
  |
8 |     x[0];
  |     ^^^^

thread 'rustc' panicked at compiler/rustc_monomorphize/src/collector.rs:703:50:
Box<dyn Any>
stack backtrace:
   0:     0x7ff2bcd19915 - std::backtrace_rs::backtrace::libunwind::trace::hbd82a583e4f26fdd
                               at /rustc/d8a38b00024cd7156dea4ce8fd8ae113a2745e7f/library/std/src/../../backtrace/src/backtrace/libunwind.rs:116:5
   1:     0x7ff2bcd19915 - std::backtrace_rs::backtrace::trace_unsynchronized::habc2fad340bf99ae
                               at /rustc/d8a38b00024cd7156dea4ce8fd8ae113a2745e7f/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
   2:     0x7ff2bcd19915 - std::sys::backtrace::_print_fmt::h89b7d2a10146c395
                               at /rustc/d8a38b00024cd7156dea4ce8fd8ae113a2745e7f/library/std/src/sys/backtrace.rs:68:5
   3:     0x7ff2bcd19915 - <std::sys::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h0c93516475f50c3a
                               at /rustc/d8a38b00024cd7156dea4ce8fd8ae113a2745e7f/library/std/src/sys/backtrace.rs:44:22
   4:     0x7ff2bcd6a4bb - core::fmt::rt::Argument::fmt::h41acc358ea8b8acf
                               at /rustc/d8a38b00024cd7156dea4ce8fd8ae113a2745e7f/library/core/src/fmt/rt.rs:165:63
   5:     0x7ff2bcd6a4bb - core::fmt::write::hf6eeaa81bb552677
                               at /rustc/d8a38b00024cd7156dea4ce8fd8ae113a2745e7f/library/core/src/fmt/mod.rs:1168:21
   6:     0x7ff2bcd0e5af - std::io::Write::write_fmt::hac861e2844721d50
                               at /rustc/d8a38b00024cd7156dea4ce8fd8ae113a2745e7f/library/std/src/io/mod.rs:1835:15
   7:     0x7ff2bcd196ee - std::sys::backtrace::_print::h6229f864442f9359
                               at /rustc/d8a38b00024cd7156dea4ce8fd8ae113a2745e7f/library/std/src/sys/backtrace.rs:47:5
   8:     0x7ff2bcd196ee - std::sys::backtrace::print::h9a44e31d3b18ae2d
                               at /rustc/d8a38b00024cd7156dea4ce8fd8ae113a2745e7f/library/std/src/sys/backtrace.rs:34:9
   9:     0x7ff2bcd1c129 - std::panicking::default_hook::{{closure}}::h20f8661b4d66374d
  10:     0x7ff2bcd1becc - std::panicking::default_hook::h59184e6792221498
                               at /rustc/d8a38b00024cd7156dea4ce8fd8ae113a2745e7f/library/std/src/panicking.rs:292:9
  11:     0x7ff2c00f4070 - std[3ddfefbe1cb24c03]::panicking::update_hook::<alloc[421c29b07d9759be]::boxed::Box<rustc_driver_impl[5444b1bc0927b6c7]::install_ice_hook::{closure#0}>>::{closure#0}
  12:     0x7ff2bcd1ca4f - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h56b5dc1f0f840fa9
                               at /rustc/d8a38b00024cd7156dea4ce8fd8ae113a2745e7f/library/alloc/src/boxed.rs:2076:9
  13:     0x7ff2bcd1ca4f - std::panicking::rust_panic_with_hook::heace302572eb89dc
                               at /rustc/d8a38b00024cd7156dea4ce8fd8ae113a2745e7f/library/std/src/panicking.rs:804:13
  14:     0x7ff2c01244f1 - std[3ddfefbe1cb24c03]::panicking::begin_panic::<rustc_errors[eb3610661e632294]::ExplicitBug>::{closure#0}
  15:     0x7ff2c0120e26 - std[3ddfefbe1cb24c03]::sys::backtrace::__rust_end_short_backtrace::<std[3ddfefbe1cb24c03]::panicking::begin_panic<rustc_errors[eb3610661e632294]::ExplicitBug>::{closure#0}, !>
  16:     0x7ff2c011c0b6 - std[3ddfefbe1cb24c03]::panicking::begin_panic::<rustc_errors[eb3610661e632294]::ExplicitBug>
  17:     0x7ff2c012d791 - <rustc_errors[eb3610661e632294]::diagnostic::BugAbort as rustc_errors[eb3610661e632294]::diagnostic::EmissionGuarantee>::emit_producing_guarantee
  18:     0x7ff2c08a0b68 - <rustc_errors[eb3610661e632294]::DiagCtxtHandle>::span_bug::<rustc_span[4eb217dce8cff183]::span_encoding::Span, alloc[421c29b07d9759be]::string::String>
  19:     0x7ff2c08ac65d - rustc_middle[af6aec1290961532]::util::bug::opt_span_bug_fmt::<rustc_span[4eb217dce8cff183]::span_encoding::Span>::{closure#0}
  20:     0x7ff2c08ac68a - rustc_middle[af6aec1290961532]::ty::context::tls::with_opt::<rustc_middle[af6aec1290961532]::util::bug::opt_span_bug_fmt<rustc_span[4eb217dce8cff183]::span_encoding::Span>::{closure#0}, !>::{closure#0}
  21:     0x7ff2c08a80db - rustc_middle[af6aec1290961532]::ty::context::tls::with_context_opt::<rustc_middle[af6aec1290961532]::ty::context::tls::with_opt<rustc_middle[af6aec1290961532]::util::bug::opt_span_bug_fmt<rustc_span[4eb217dce8cff183]::span_encoding::Span>::{closure#0}, !>::{closure#0}, !>
  22:     0x7ff2c08a75b7 - rustc_middle[af6aec1290961532]::util::bug::span_bug_fmt::<rustc_span[4eb217dce8cff183]::span_encoding::Span>
  23:     0x7ff2c2422785 - rustc_monomorphize[a5e864777eed011c]::collector::collect_items_rec::{closure#0}
  24:     0x7ff2c1618d4a - rustc_monomorphize[a5e864777eed011c]::collector::collect_items_rec
  25:     0x7ff2c16194d1 - rustc_monomorphize[a5e864777eed011c]::collector::collect_items_rec
  26:     0x7ff2c16194d1 - rustc_monomorphize[a5e864777eed011c]::collector::collect_items_rec
  27:     0x7ff2c1b34879 - rustc_monomorphize[a5e864777eed011c]::partitioning::collect_and_partition_mono_items
  28:     0x7ff2c23ebaa4 - rustc_query_impl[7edf4ed5070a390c]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[7edf4ed5070a390c]::query_impl::collect_and_partition_mono_items::dynamic_query::{closure#2}::{closure#0}, rustc_middle[af6aec1290961532]::query::erase::Erased<[u8; 24usize]>>
  29:     0x7ff2c23eba89 - <rustc_query_impl[7edf4ed5070a390c]::query_impl::collect_and_partition_mono_items::dynamic_query::{closure#2} as core[5462992d5ab3101d]::ops::function::FnOnce<(rustc_middle[af6aec1290961532]::ty::context::TyCtxt, ())>>::call_once
  30:     0x7ff2c23eb648 - rustc_query_system[d8e6f8beb48e4d6e]::query::plumbing::try_execute_query::<rustc_query_impl[7edf4ed5070a390c]::DynamicConfig<rustc_query_system[d8e6f8beb48e4d6e]::query::caches::SingleCache<rustc_middle[af6aec1290961532]::query::erase::Erased<[u8; 24usize]>>, false, false, false>, rustc_query_impl[7edf4ed5070a390c]::plumbing::QueryCtxt, false>
  31:     0x7ff2c23eb361 - rustc_query_impl[7edf4ed5070a390c]::query_impl::collect_and_partition_mono_items::get_query_non_incr::__rust_end_short_backtrace
  32:     0x7ff2c254e9d4 - rustc_codegen_ssa[24d0c4fb75869fe7]::base::codegen_crate::<rustc_codegen_llvm[92ee7380647a03c4]::LlvmCodegenBackend>
  33:     0x7ff2c244c5c2 - <rustc_codegen_llvm[92ee7380647a03c4]::LlvmCodegenBackend as rustc_codegen_ssa[24d0c4fb75869fe7]::traits::backend::CodegenBackend>::codegen_crate
  34:     0x7ff2c244bf45 - rustc_interface[2eb39444b88eb871]::passes::start_codegen
  35:     0x7ff2c244b5da - <rustc_interface[2eb39444b88eb871]::queries::Queries>::codegen_and_build_linker
  36:     0x7ff2c228b0f2 - rustc_interface[2eb39444b88eb871]::interface::run_compiler::<core[5462992d5ab3101d]::result::Result<(), rustc_span[4eb217dce8cff183]::ErrorGuaranteed>, rustc_driver_impl[5444b1bc0927b6c7]::run_compiler::{closure#0}>::{closure#1}
  37:     0x7ff2c227b327 - std[3ddfefbe1cb24c03]::sys::backtrace::__rust_begin_short_backtrace::<rustc_interface[2eb39444b88eb871]::util::run_in_thread_with_globals<rustc_interface[2eb39444b88eb871]::util::run_in_thread_pool_with_globals<rustc_interface[2eb39444b88eb871]::interface::run_compiler<core[5462992d5ab3101d]::result::Result<(), rustc_span[4eb217dce8cff183]::ErrorGuaranteed>, rustc_driver_impl[5444b1bc0927b6c7]::run_compiler::{closure#0}>::{closure#1}, core[5462992d5ab3101d]::result::Result<(), rustc_span[4eb217dce8cff183]::ErrorGuaranteed>>::{closure#0}, core[5462992d5ab3101d]::result::Result<(), rustc_span[4eb217dce8cff183]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[5462992d5ab3101d]::result::Result<(), rustc_span[4eb217dce8cff183]::ErrorGuaranteed>>
  38:     0x7ff2c227b0ea - <<std[3ddfefbe1cb24c03]::thread::Builder>::spawn_unchecked_<rustc_interface[2eb39444b88eb871]::util::run_in_thread_with_globals<rustc_interface[2eb39444b88eb871]::util::run_in_thread_pool_with_globals<rustc_interface[2eb39444b88eb871]::interface::run_compiler<core[5462992d5ab3101d]::result::Result<(), rustc_span[4eb217dce8cff183]::ErrorGuaranteed>, rustc_driver_impl[5444b1bc0927b6c7]::run_compiler::{closure#0}>::{closure#1}, core[5462992d5ab3101d]::result::Result<(), rustc_span[4eb217dce8cff183]::ErrorGuaranteed>>::{closure#0}, core[5462992d5ab3101d]::result::Result<(), rustc_span[4eb217dce8cff183]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[5462992d5ab3101d]::result::Result<(), rustc_span[4eb217dce8cff183]::ErrorGuaranteed>>::{closure#2} as core[5462992d5ab3101d]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  39:     0x7ff2bcd268cb - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::hc134ecaff2ab5c22
                               at /rustc/d8a38b00024cd7156dea4ce8fd8ae113a2745e7f/library/alloc/src/boxed.rs:2062:9
  40:     0x7ff2bcd268cb - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h324a3195842effe4
                               at /rustc/d8a38b00024cd7156dea4ce8fd8ae113a2745e7f/library/alloc/src/boxed.rs:2062:9
  41:     0x7ff2bcd268cb - std::sys::pal::unix::thread::Thread::new::thread_start::hc024fbe6956acc0b
                               at /rustc/d8a38b00024cd7156dea4ce8fd8ae113a2745e7f/library/std/src/sys/pal/unix/thread.rs:108:17
  42:     0x7ff2bcc34609 - start_thread
  43:     0x7ff2bcb57353 - clone
  44:                0x0 - <unknown>

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: please attach the file at `/playground/rustc-ice-2024-06-20T04_52_55-411.txt` to your bug report

note: compiler flags: --crate-type bin -C embed-bitcode=no -C codegen-units=1 -C debuginfo=2

note: some of the compiler flags provided by cargo are hidden

query stack during panic:
#0 [collect_and_partition_mono_items] collect_and_partition_mono_items
end of query stack
error: could not compile `playground` (bin "playground")

Additionally, removing the x[0] causes a different ICE. (fn_abi_of_instance(can_double::<1 + 1>, []) failed: Layout(Unknown([(); (Add: (1_usize: usize), (1_usize: usize))])))

Code with `x[0]` removed
#![feature(generic_const_exprs)]
#![allow(incomplete_features)]

fn can_double<const N: usize>(_: [(); N])
where
    [(); N * 2]:,
{
    unimplemented!()
}

fn foo<const N: usize>()
where
    [(); (N + 1) * 2]:,
{
    can_double([(); { N + 1 }]);
    // Adding an explicit constant generic causes the ICE to go away
    // can_double::<{N + 1}>([(); { N + 1 }]);
}

fn main() {
    foo::<1>();
}
Error output
   Compiling playground v0.0.1 (/playground)
error: internal compiler error: compiler/rustc_codegen_llvm/src/context.rs:1099:21: `fn_abi_of_instance(can_double::<1 + 1>, [])` failed: Layout(Unknown([(); (Add: (1_usize: usize), (1_usize: usize))]))
 --> src/main.rs:4:1
  |
4 | / fn can_double<const N: usize>(_: [(); N])
5 | | where
6 | |     [(); N * 2]:,
  | |_________________^

thread 'rustc' panicked at compiler/rustc_codegen_llvm/src/context.rs:1099:21:
Box<dyn Any>
stack backtrace:
   0:     0x7ff6d8d2d915 - std::backtrace_rs::backtrace::libunwind::trace::hbd82a583e4f26fdd
                               at /rustc/d8a38b00024cd7156dea4ce8fd8ae113a2745e7f/library/std/src/../../backtrace/src/backtrace/libunwind.rs:116:5
   1:     0x7ff6d8d2d915 - std::backtrace_rs::backtrace::trace_unsynchronized::habc2fad340bf99ae
                               at /rustc/d8a38b00024cd7156dea4ce8fd8ae113a2745e7f/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
   2:     0x7ff6d8d2d915 - std::sys::backtrace::_print_fmt::h89b7d2a10146c395
                               at /rustc/d8a38b00024cd7156dea4ce8fd8ae113a2745e7f/library/std/src/sys/backtrace.rs:68:5
   3:     0x7ff6d8d2d915 - <std::sys::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h0c93516475f50c3a
                               at /rustc/d8a38b00024cd7156dea4ce8fd8ae113a2745e7f/library/std/src/sys/backtrace.rs:44:22
   4:     0x7ff6d8d7e4bb - core::fmt::rt::Argument::fmt::h41acc358ea8b8acf
                               at /rustc/d8a38b00024cd7156dea4ce8fd8ae113a2745e7f/library/core/src/fmt/rt.rs:165:63
   5:     0x7ff6d8d7e4bb - core::fmt::write::hf6eeaa81bb552677
                               at /rustc/d8a38b00024cd7156dea4ce8fd8ae113a2745e7f/library/core/src/fmt/mod.rs:1168:21
   6:     0x7ff6d8d225af - std::io::Write::write_fmt::hac861e2844721d50
                               at /rustc/d8a38b00024cd7156dea4ce8fd8ae113a2745e7f/library/std/src/io/mod.rs:1835:15
   7:     0x7ff6d8d2d6ee - std::sys::backtrace::_print::h6229f864442f9359
                               at /rustc/d8a38b00024cd7156dea4ce8fd8ae113a2745e7f/library/std/src/sys/backtrace.rs:47:5
   8:     0x7ff6d8d2d6ee - std::sys::backtrace::print::h9a44e31d3b18ae2d
                               at /rustc/d8a38b00024cd7156dea4ce8fd8ae113a2745e7f/library/std/src/sys/backtrace.rs:34:9
   9:     0x7ff6d8d30129 - std::panicking::default_hook::{{closure}}::h20f8661b4d66374d
  10:     0x7ff6d8d2fecc - std::panicking::default_hook::h59184e6792221498
                               at /rustc/d8a38b00024cd7156dea4ce8fd8ae113a2745e7f/library/std/src/panicking.rs:292:9
  11:     0x7ff6dc108070 - std[3ddfefbe1cb24c03]::panicking::update_hook::<alloc[421c29b07d9759be]::boxed::Box<rustc_driver_impl[5444b1bc0927b6c7]::install_ice_hook::{closure#0}>>::{closure#0}
  12:     0x7ff6d8d30a4f - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h56b5dc1f0f840fa9
                               at /rustc/d8a38b00024cd7156dea4ce8fd8ae113a2745e7f/library/alloc/src/boxed.rs:2076:9
  13:     0x7ff6d8d30a4f - std::panicking::rust_panic_with_hook::heace302572eb89dc
                               at /rustc/d8a38b00024cd7156dea4ce8fd8ae113a2745e7f/library/std/src/panicking.rs:804:13
  14:     0x7ff6dc1384f1 - std[3ddfefbe1cb24c03]::panicking::begin_panic::<rustc_errors[eb3610661e632294]::ExplicitBug>::{closure#0}
  15:     0x7ff6dc134e26 - std[3ddfefbe1cb24c03]::sys::backtrace::__rust_end_short_backtrace::<std[3ddfefbe1cb24c03]::panicking::begin_panic<rustc_errors[eb3610661e632294]::ExplicitBug>::{closure#0}, !>
  16:     0x7ff6dc1300b6 - std[3ddfefbe1cb24c03]::panicking::begin_panic::<rustc_errors[eb3610661e632294]::ExplicitBug>
  17:     0x7ff6dc141791 - <rustc_errors[eb3610661e632294]::diagnostic::BugAbort as rustc_errors[eb3610661e632294]::diagnostic::EmissionGuarantee>::emit_producing_guarantee
  18:     0x7ff6dbf6f638 - <rustc_errors[eb3610661e632294]::DiagCtxtHandle>::span_bug::<rustc_span[4eb217dce8cff183]::span_encoding::Span, alloc[421c29b07d9759be]::string::String>
  19:     0x7ff6dbf8c96d - rustc_middle[af6aec1290961532]::util::bug::opt_span_bug_fmt::<rustc_span[4eb217dce8cff183]::span_encoding::Span>::{closure#0}
  20:     0x7ff6dbf8cb9a - rustc_middle[af6aec1290961532]::ty::context::tls::with_opt::<rustc_middle[af6aec1290961532]::util::bug::opt_span_bug_fmt<rustc_span[4eb217dce8cff183]::span_encoding::Span>::{closure#0}, !>::{closure#0}
  21:     0x7ff6dbf8412b - rustc_middle[af6aec1290961532]::ty::context::tls::with_context_opt::<rustc_middle[af6aec1290961532]::ty::context::tls::with_opt<rustc_middle[af6aec1290961532]::util::bug::opt_span_bug_fmt<rustc_span[4eb217dce8cff183]::span_encoding::Span>::{closure#0}, !>::{closure#0}, !>
  22:     0x7ff6dbf83ba7 - rustc_middle[af6aec1290961532]::util::bug::span_bug_fmt::<rustc_span[4eb217dce8cff183]::span_encoding::Span>
  23:     0x7ff6dbfb3284 - <rustc_codegen_llvm[92ee7380647a03c4]::context::CodegenCx as rustc_middle[af6aec1290961532]::ty::layout::FnAbiOfHelpers>::handle_fn_abi_err
  24:     0x7ff6dbf8eaf3 - <rustc_codegen_llvm[92ee7380647a03c4]::context::CodegenCx as rustc_middle[af6aec1290961532]::ty::layout::FnAbiOf>::fn_abi_of_instance::{closure#0}
  25:     0x7ff6da512cbe - <rustc_codegen_llvm[92ee7380647a03c4]::context::CodegenCx as rustc_codegen_ssa[24d0c4fb75869fe7]::traits::declare::PreDefineMethods>::predefine_fn
  26:     0x7ff6de35f0d9 - rustc_codegen_llvm[92ee7380647a03c4]::base::compile_codegen_unit::module_codegen
  27:     0x7ff6de35b416 - <rustc_codegen_llvm[92ee7380647a03c4]::LlvmCodegenBackend as rustc_codegen_ssa[24d0c4fb75869fe7]::traits::backend::ExtraBackendMethods>::compile_codegen_unit
  28:     0x7ff6de562f87 - rustc_codegen_ssa[24d0c4fb75869fe7]::base::codegen_crate::<rustc_codegen_llvm[92ee7380647a03c4]::LlvmCodegenBackend>
  29:     0x7ff6de4605c2 - <rustc_codegen_llvm[92ee7380647a03c4]::LlvmCodegenBackend as rustc_codegen_ssa[24d0c4fb75869fe7]::traits::backend::CodegenBackend>::codegen_crate
  30:     0x7ff6de45ff45 - rustc_interface[2eb39444b88eb871]::passes::start_codegen
  31:     0x7ff6de45f5da - <rustc_interface[2eb39444b88eb871]::queries::Queries>::codegen_and_build_linker
  32:     0x7ff6de29f0f2 - rustc_interface[2eb39444b88eb871]::interface::run_compiler::<core[5462992d5ab3101d]::result::Result<(), rustc_span[4eb217dce8cff183]::ErrorGuaranteed>, rustc_driver_impl[5444b1bc0927b6c7]::run_compiler::{closure#0}>::{closure#1}
  33:     0x7ff6de28f327 - std[3ddfefbe1cb24c03]::sys::backtrace::__rust_begin_short_backtrace::<rustc_interface[2eb39444b88eb871]::util::run_in_thread_with_globals<rustc_interface[2eb39444b88eb871]::util::run_in_thread_pool_with_globals<rustc_interface[2eb39444b88eb871]::interface::run_compiler<core[5462992d5ab3101d]::result::Result<(), rustc_span[4eb217dce8cff183]::ErrorGuaranteed>, rustc_driver_impl[5444b1bc0927b6c7]::run_compiler::{closure#0}>::{closure#1}, core[5462992d5ab3101d]::result::Result<(), rustc_span[4eb217dce8cff183]::ErrorGuaranteed>>::{closure#0}, core[5462992d5ab3101d]::result::Result<(), rustc_span[4eb217dce8cff183]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[5462992d5ab3101d]::result::Result<(), rustc_span[4eb217dce8cff183]::ErrorGuaranteed>>
  34:     0x7ff6de28f0ea - <<std[3ddfefbe1cb24c03]::thread::Builder>::spawn_unchecked_<rustc_interface[2eb39444b88eb871]::util::run_in_thread_with_globals<rustc_interface[2eb39444b88eb871]::util::run_in_thread_pool_with_globals<rustc_interface[2eb39444b88eb871]::interface::run_compiler<core[5462992d5ab3101d]::result::Result<(), rustc_span[4eb217dce8cff183]::ErrorGuaranteed>, rustc_driver_impl[5444b1bc0927b6c7]::run_compiler::{closure#0}>::{closure#1}, core[5462992d5ab3101d]::result::Result<(), rustc_span[4eb217dce8cff183]::ErrorGuaranteed>>::{closure#0}, core[5462992d5ab3101d]::result::Result<(), rustc_span[4eb217dce8cff183]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[5462992d5ab3101d]::result::Result<(), rustc_span[4eb217dce8cff183]::ErrorGuaranteed>>::{closure#2} as core[5462992d5ab3101d]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  35:     0x7ff6d8d3a8cb - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::hc134ecaff2ab5c22
                               at /rustc/d8a38b00024cd7156dea4ce8fd8ae113a2745e7f/library/alloc/src/boxed.rs:2062:9
  36:     0x7ff6d8d3a8cb - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h324a3195842effe4
                               at /rustc/d8a38b00024cd7156dea4ce8fd8ae113a2745e7f/library/alloc/src/boxed.rs:2062:9
  37:     0x7ff6d8d3a8cb - std::sys::pal::unix::thread::Thread::new::thread_start::hc024fbe6956acc0b
                               at /rustc/d8a38b00024cd7156dea4ce8fd8ae113a2745e7f/library/std/src/sys/pal/unix/thread.rs:108:17
  38:     0x7ff6d8c48609 - start_thread
  39:     0x7ff6d8b6b353 - clone
  40:                0x0 - <unknown>

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: please attach the file at `/playground/rustc-ice-2024-06-20T04_56_04-89.txt` to your bug report

note: compiler flags: --crate-type bin -C embed-bitcode=no -C codegen-units=1 -C debuginfo=2

note: some of the compiler flags provided by cargo are hidden

query stack during panic:
end of query stack
error: could not compile `playground` (bin "playground")

from rust.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.