thread 'rustc' panicked at compiler/rustc_codegen_ssa/src/back/link.rs:2700:27: index out of bounds: the len is 308 but the index is 308 stack backtrace: 0: 0x105853480 - std::backtrace::Backtrace::create::hd8afb668f6096e19 1: 0x10f0ecdf4 - as core[9e7a2f7b9a3a4c06]::ops::function::Fn<(&dyn for<'a, 'b> core[9e7a2f7b9a3a4c06]::ops::function::Fn<(&'a core[9e7a2f7b9a3a4c06]::panic::panic_info::PanicInfo<'b>,), Output = ()> + core[9e7a2f7b9a3a4c06]::marker::Sync + core[9e7a2f7b9a3a4c06]::marker::Send, &core[9e7a2f7b9a3a4c06]::panic::panic_info::PanicInfo)>>::call 2: 0x10586c1fc - std::panicking::rust_panic_with_hook::hea32a016165e022b 3: 0x10586bc10 - std::panicking::begin_panic_handler::{{closure}}::he55e42119f08366c 4: 0x105869830 - std::sys_common::backtrace::__rust_end_short_backtrace::h2ec39936dd320eff 5: 0x10586b980 - _rust_begin_unwind 6: 0x1058c9260 - core::panicking::panic_fmt::hdd0a8c3eb8088208 7: 0x1058c93f0 - core::panicking::panic_bounds_check::h4e28ad5c5971d664 8: 0x10ee5a68c - rustc_codegen_ssa[b068ff2a868a000c]::back::link::linker_with_args 9: 0x10ee51504 - rustc_codegen_ssa[b068ff2a868a000c]::back::link::link_natively 10: 0x10ee4d78c - rustc_codegen_ssa[b068ff2a868a000c]::back::link::link_binary 11: 0x10edee15c - ::link 12: 0x10f8cc674 - ::link 13: 0x10f0b4e54 - >::set::, rustc_driver_impl[c4bab6df5b4b3fba]::run_compiler::{closure#0}>::{closure#1}, core[9e7a2f7b9a3a4c06]::result::Result<(), rustc_span[fb448f34252b061b]::ErrorGuaranteed>>::{closure#0}, core[9e7a2f7b9a3a4c06]::result::Result<(), rustc_span[fb448f34252b061b]::ErrorGuaranteed>>::{closure#0}::{closure#0}::{closure#0}, core[9e7a2f7b9a3a4c06]::result::Result<(), rustc_span[fb448f34252b061b]::ErrorGuaranteed>> 14: 0x10f0befe8 - rustc_span[fb448f34252b061b]::create_session_globals_then::, rustc_interface[c016e796069c9104]::util::run_in_thread_with_globals, rustc_driver_impl[c4bab6df5b4b3fba]::run_compiler::{closure#0}>::{closure#1}, core[9e7a2f7b9a3a4c06]::result::Result<(), rustc_span[fb448f34252b061b]::ErrorGuaranteed>>::{closure#0}, core[9e7a2f7b9a3a4c06]::result::Result<(), rustc_span[fb448f34252b061b]::ErrorGuaranteed>>::{closure#0}::{closure#0}::{closure#0}> 15: 0x10f0bda14 - std[aa6988fe294f8aab]::sys_common::backtrace::__rust_begin_short_backtrace::, rustc_driver_impl[c4bab6df5b4b3fba]::run_compiler::{closure#0}>::{closure#1}, core[9e7a2f7b9a3a4c06]::result::Result<(), rustc_span[fb448f34252b061b]::ErrorGuaranteed>>::{closure#0}, core[9e7a2f7b9a3a4c06]::result::Result<(), rustc_span[fb448f34252b061b]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[9e7a2f7b9a3a4c06]::result::Result<(), rustc_span[fb448f34252b061b]::ErrorGuaranteed>> 16: 0x10f0be0ac - <::spawn_unchecked_, rustc_driver_impl[c4bab6df5b4b3fba]::run_compiler::{closure#0}>::{closure#1}, core[9e7a2f7b9a3a4c06]::result::Result<(), rustc_span[fb448f34252b061b]::ErrorGuaranteed>>::{closure#0}, core[9e7a2f7b9a3a4c06]::result::Result<(), rustc_span[fb448f34252b061b]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[9e7a2f7b9a3a4c06]::result::Result<(), rustc_span[fb448f34252b061b]::ErrorGuaranteed>>::{closure#2} as core[9e7a2f7b9a3a4c06]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0} 17: 0x105874d18 - std::sys::pal::unix::thread::Thread::new::thread_start::h2c9944774d079220 18: 0x1964baf94 - __pthread_joiner_wake rustc version: 1.80.0-nightly (da159eb33 2024-05-28) platform: aarch64-apple-darwin