thread 'rustc' panicked at compiler/rustc_const_eval/src/interpret/validity.rs:1035:17: Box stack backtrace: 0: 0x7f624bf3edf5 - std::backtrace_rs::backtrace::libunwind::trace::h90edf881e325b8a6 at /rustc/debd22da66cfa97c74040ebf68e420672ac8560e/library/std/src/../../backtrace/src/backtrace/libunwind.rs:116:5 1: 0x7f624bf3edf5 - std::backtrace_rs::backtrace::trace_unsynchronized::h50a92732fba3c474 at /rustc/debd22da66cfa97c74040ebf68e420672ac8560e/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 2: 0x7f624bf3edf5 - std::backtrace::Backtrace::create::he8f1866b659d60fe at /rustc/debd22da66cfa97c74040ebf68e420672ac8560e/library/std/src/backtrace.rs:331:13 3: 0x7f624bf3ed45 - std::backtrace::Backtrace::force_capture::h0ae0a04b4f80a856 at /rustc/debd22da66cfa97c74040ebf68e420672ac8560e/library/std/src/backtrace.rs:312:9 4: 0x7f6248543e26 - std[9d83bd0e50f0e1cd]::panicking::update_hook::>::{closure#0} 5: 0x7f624bf59c0b - as core::ops::function::Fn>::call::hc73dfd93ee0f7266 at /rustc/debd22da66cfa97c74040ebf68e420672ac8560e/library/alloc/src/boxed.rs:2077:9 6: 0x7f624bf59c0b - std::panicking::rust_panic_with_hook::h2209cb47b146c46d at /rustc/debd22da66cfa97c74040ebf68e420672ac8560e/library/std/src/panicking.rs:799:13 7: 0x7f6248573e14 - std[9d83bd0e50f0e1cd]::panicking::begin_panic::::{closure#0} 8: 0x7f6248570bc6 - std[9d83bd0e50f0e1cd]::sys_common::backtrace::__rust_end_short_backtrace::::{closure#0}, !> 9: 0x7f62485708a6 - std[9d83bd0e50f0e1cd]::panicking::begin_panic:: 10: 0x7f624857d451 - ::emit_producing_guarantee 11: 0x7f6248a6948c - rustc_middle[1fe6d5e38895052f]::util::bug::opt_span_bug_fmt::::{closure#0} 12: 0x7f6248a4c38a - rustc_middle[1fe6d5e38895052f]::ty::context::tls::with_opt::::{closure#0}, !>::{closure#0} 13: 0x7f6248a4c20b - rustc_middle[1fe6d5e38895052f]::ty::context::tls::with_context_opt::::{closure#0}, !>::{closure#0}, !> 14: 0x7f6246dde5a0 - rustc_middle[1fe6d5e38895052f]::util::bug::bug_fmt 15: 0x7f624794f0ae - rustc_const_eval[5dfe4a01ced9aa65]::const_eval::eval_queries::eval_to_allocation_raw_provider 16: 0x7f6249fb2176 - rustc_query_impl[1766610d02d5b99c]::plumbing::__rust_begin_short_backtrace::> 17: 0x7f6249fb2aaf - )>>::call_once 18: 0x7f6249fb2a31 - , rustc_middle[1fe6d5e38895052f]::query::erase::Erased<[u8; 24usize]>>, false, false, false>, rustc_query_impl[1766610d02d5b99c]::plumbing::QueryCtxt>::{closure#2}::{closure#2} as core[2eaa0139eedd536f]::ops::function::FnOnce<((rustc_query_impl[1766610d02d5b99c]::plumbing::QueryCtxt, rustc_query_impl[1766610d02d5b99c]::DynamicConfig, rustc_middle[1fe6d5e38895052f]::query::erase::Erased<[u8; 24usize]>>, false, false, false>), rustc_middle[1fe6d5e38895052f]::ty::ParamEnvAnd)>>::call_once 19: 0x7f6249fb0348 - rustc_query_system[b83bd47e643a06b7]::query::plumbing::try_execute_query::, rustc_middle[1fe6d5e38895052f]::query::erase::Erased<[u8; 24usize]>>, false, false, false>, rustc_query_impl[1766610d02d5b99c]::plumbing::QueryCtxt, true> 20: 0x7f6249fafac0 - rustc_query_impl[1766610d02d5b99c]::query_impl::eval_to_allocation_raw::get_query_incr::__rust_end_short_backtrace 21: 0x7f6249fb2cd8 - rustc_const_eval[5dfe4a01ced9aa65]::const_eval::eval_queries::eval_to_const_value_raw_provider 22: 0x7f6249fb2af6 - rustc_query_impl[1766610d02d5b99c]::plumbing::__rust_begin_short_backtrace::> 23: 0x7f6249fb2a6f - )>>::call_once 24: 0x7f6249fb2a31 - , rustc_middle[1fe6d5e38895052f]::query::erase::Erased<[u8; 24usize]>>, false, false, false>, rustc_query_impl[1766610d02d5b99c]::plumbing::QueryCtxt>::{closure#2}::{closure#2} as core[2eaa0139eedd536f]::ops::function::FnOnce<((rustc_query_impl[1766610d02d5b99c]::plumbing::QueryCtxt, rustc_query_impl[1766610d02d5b99c]::DynamicConfig, rustc_middle[1fe6d5e38895052f]::query::erase::Erased<[u8; 24usize]>>, false, false, false>), rustc_middle[1fe6d5e38895052f]::ty::ParamEnvAnd)>>::call_once 25: 0x7f6249fb0348 - rustc_query_system[b83bd47e643a06b7]::query::plumbing::try_execute_query::, rustc_middle[1fe6d5e38895052f]::query::erase::Erased<[u8; 24usize]>>, false, false, false>, rustc_query_impl[1766610d02d5b99c]::plumbing::QueryCtxt, true> 26: 0x7f6249fafbf6 - rustc_query_impl[1766610d02d5b99c]::query_impl::eval_to_const_value_raw::get_query_incr::__rust_end_short_backtrace 27: 0x7f6249bbfc5f - ::par_body_owners::::{closure#0} 28: 0x7f6249bbe0b1 - rustc_hir_analysis[eda2ca149d9b7cb8]::check_crate 29: 0x7f624a38d4be - rustc_interface[ae16de42642863e5]::passes::analysis 30: 0x7f624a38d01b - rustc_query_impl[1766610d02d5b99c]::plumbing::__rust_begin_short_backtrace::> 31: 0x7f624a94ac8e - rustc_query_system[b83bd47e643a06b7]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[1766610d02d5b99c]::plumbing::QueryCtxt, true> 32: 0x7f624a94a8ba - rustc_query_impl[1766610d02d5b99c]::query_impl::analysis::get_query_incr::__rust_end_short_backtrace 33: 0x7f624a5fbcdc - rustc_interface[ae16de42642863e5]::interface::run_compiler::, rustc_driver_impl[c903d310d0b65222]::run_compiler::{closure#0}>::{closure#1} 34: 0x7f624a5de4c9 - std[9d83bd0e50f0e1cd]::sys_common::backtrace::__rust_begin_short_backtrace::, rustc_driver_impl[c903d310d0b65222]::run_compiler::{closure#0}>::{closure#1}, core[2eaa0139eedd536f]::result::Result<(), rustc_span[dae7ad9294c1830]::ErrorGuaranteed>>::{closure#0}, core[2eaa0139eedd536f]::result::Result<(), rustc_span[dae7ad9294c1830]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[2eaa0139eedd536f]::result::Result<(), rustc_span[dae7ad9294c1830]::ErrorGuaranteed>> 35: 0x7f624a5de272 - <::spawn_unchecked_, rustc_driver_impl[c903d310d0b65222]::run_compiler::{closure#0}>::{closure#1}, core[2eaa0139eedd536f]::result::Result<(), rustc_span[dae7ad9294c1830]::ErrorGuaranteed>>::{closure#0}, core[2eaa0139eedd536f]::result::Result<(), rustc_span[dae7ad9294c1830]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[2eaa0139eedd536f]::result::Result<(), rustc_span[dae7ad9294c1830]::ErrorGuaranteed>>::{closure#2} as core[2eaa0139eedd536f]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0} 36: 0x7f624bf63bfb - as core::ops::function::FnOnce>::call_once::hd6f696d9a5b925df at /rustc/debd22da66cfa97c74040ebf68e420672ac8560e/library/alloc/src/boxed.rs:2063:9 37: 0x7f624bf63bfb - as core::ops::function::FnOnce>::call_once::h94ad61c1e5c5a0cd at /rustc/debd22da66cfa97c74040ebf68e420672ac8560e/library/alloc/src/boxed.rs:2063:9 38: 0x7f624bf63bfb - std::sys::pal::unix::thread::Thread::new::thread_start::h1856dc47c9451b83 at /rustc/debd22da66cfa97c74040ebf68e420672ac8560e/library/std/src/sys/pal/unix/thread.rs:108:17 39: 0x7f62452a20e4 - start_thread 40: 0x7f624532477c - clone3 41: 0x0 - rustc version: 1.80.0-nightly (debd22da6 2024-05-29) platform: x86_64-unknown-linux-gnu query stack during panic: #0 [eval_to_allocation_raw] const-evaluating + checking `tests::S2` #1 [eval_to_const_value_raw] simplifying constant for the type system `tests::S2` #2 [analysis] running analysis passes on this crate end of query stack