rustc 1.88.0-nightly (25cdf1f67 2025-04-28)
binary: rustc
commit-hash: 25cdf1f67463c9365d8d83778c933ec7480e940b
commit-date: 2025-04-28
host: x86_64-unknown-linux-gnu
release: 1.88.0-nightly
LLVM version: 20.1.2
thread 'rustc' panicked at compiler/rustc_codegen_llvm/src/debuginfo/metadata/enums/native.rs:201:68:
index out of bounds: the len is 1 but the index is 1
stack backtrace:
0: 0x796006a642e5 - std::backtrace::Backtrace::create::h5b5d29f0fcbef4c5
1: 0x796004ef3855 - std::backtrace::Backtrace::force_capture::h46ea152eb057a4f7
2: 0x796003f86011 - std[96024a80e4ce12a0]::panicking::update_hook::<alloc[703cfcb04acfdfda]::boxed::Box<rustc_driver_impl[a2bbb3d7e654019c]::install_ice_hook::{closure#1}>>::{closure#0}
3: 0x796004f0d933 - std::panicking::rust_panic_with_hook::h7afddb00f409503c
4: 0x796004f0d62a - std::panicking::begin_panic_handler::{{closure}}::h11311e14e26011d8
5: 0x796004f098d9 - std::sys::backtrace::__rust_end_short_backtrace::h4a69b8a8bf83181b
6: 0x796004f0d2ed - __rustc[ae73a5f87904751]::rust_begin_unwind
7: 0x79600188d0d0 - core::panicking::panic_fmt::he7bfe01c5f8a6b92
8: 0x7960033d8005 - core::panicking::panic_bounds_check::h60b2f61c06b46463
9: 0x796003dd9633 - <core[6d7144d1d4266374]::iter::adapters::map::Map<core[6d7144d1d4266374]::iter::adapters::map::Map<core[6d7144d1d4266374]::ops::range::Range<usize>, <rustc_index[6fcb69c322e18028]::slice::IndexSlice<rustc_abi[16b420aafa014dd]::layout::ty::VariantIdx, rustc_abi[16b420aafa014dd]::LayoutData<rustc_abi[16b420aafa014dd]::layout::ty::FieldIdx, rustc_abi[16b420aafa014dd]::layout::ty::VariantIdx>>>::indices::{closure#0}>, rustc_codegen_llvm[4025aff5dfb5e881]::debuginfo::metadata::enums::native::build_coroutine_di_node::{closure#0}::{closure#0}> as core[6d7144d1d4266374]::iter::traits::iterator::Iterator>::next
10: 0x796003e0681f - rustc_codegen_llvm[4025aff5dfb5e881]::debuginfo::metadata::enums::native::build_coroutine_di_node
11: 0x796005d23bfd - rustc_codegen_llvm[4025aff5dfb5e881]::debuginfo::metadata::type_di_node
12: 0x7960062b9372 - <rustc_codegen_llvm[4025aff5dfb5e881]::context::GenericCx<rustc_codegen_llvm[4025aff5dfb5e881]::context::FullCx> as rustc_codegen_ssa[8010b3f9fa421608]::traits::debuginfo::DebugInfoCodegenMethods>::dbg_scope_fn
13: 0x796006645576 - rustc_codegen_ssa[8010b3f9fa421608]::mir::codegen_mir::<rustc_codegen_llvm[4025aff5dfb5e881]::builder::GenericBuilder<rustc_codegen_llvm[4025aff5dfb5e881]::context::FullCx>>
14: 0x796006643d45 - rustc_codegen_llvm[4025aff5dfb5e881]::base::compile_codegen_unit::module_codegen
15: 0x7960067dc4ec - <rustc_codegen_llvm[4025aff5dfb5e881]::LlvmCodegenBackend as rustc_codegen_ssa[8010b3f9fa421608]::traits::backend::ExtraBackendMethods>::compile_codegen_unit
16: 0x7960067de2dc - <rustc_codegen_llvm[4025aff5dfb5e881]::LlvmCodegenBackend as rustc_codegen_ssa[8010b3f9fa421608]::traits::backend::CodegenBackend>::codegen_crate
17: 0x79600658b29d - <rustc_interface[269edf8a537b00a5]::queries::Linker>::codegen_and_build_linker
18: 0x79600658f46f - rustc_interface[269edf8a537b00a5]::passes::create_and_enter_global_ctxt::<core[6d7144d1d4266374]::option::Option<rustc_interface[269edf8a537b00a5]::queries::Linker>, rustc_driver_impl[a2bbb3d7e654019c]::run_compiler::{closure#0}::{closure#2}>::{closure#2}::{closure#0}
19: 0x7960066eceb9 - rustc_interface[269edf8a537b00a5]::interface::run_compiler::<(), rustc_driver_impl[a2bbb3d7e654019c]::run_compiler::{closure#0}>::{closure#1}
20: 0x796006501728 - std[96024a80e4ce12a0]::sys::backtrace::__rust_begin_short_backtrace::<rustc_interface[269edf8a537b00a5]::util::run_in_thread_with_globals<rustc_interface[269edf8a537b00a5]::util::run_in_thread_pool_with_globals<rustc_interface[269edf8a537b00a5]::interface::run_compiler<(), rustc_driver_impl[a2bbb3d7e654019c]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()>
21: 0x796006501b74 - <<std[96024a80e4ce12a0]::thread::Builder>::spawn_unchecked_<rustc_interface[269edf8a537b00a5]::util::run_in_thread_with_globals<rustc_interface[269edf8a537b00a5]::util::run_in_thread_pool_with_globals<rustc_interface[269edf8a537b00a5]::interface::run_compiler<(), rustc_driver_impl[a2bbb3d7e654019c]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()>::{closure#1} as core[6d7144d1d4266374]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
22: 0x796006502f77 - std::sys::pal::unix::thread::Thread::new::thread_start::h7eeb46109c9d7745
23: 0x7960004a3708 - <unknown>
24: 0x796000527aac - <unknown>
25: 0x0 - <unknown>
rustc version: 1.88.0-nightly (25cdf1f67 2025-04-28)
platform: x86_64-unknown-linux-gnu
query stack during panic:
end of query stack
Code
Meta
rustc --version --verbose:Error output
Backtrace