thread 'coordinator' panicked at compiler/rustc_codegen_llvm/src/builder/autodiff.rs:128:34: index out of bounds: the len is 2 but the index is 2 stack backtrace: 0: 0x7f3c979d1775 - std::backtrace::Backtrace::create::hcc6ff394d6b955d6 1: 0x7f3c979d16c5 - std::backtrace::Backtrace::force_capture::h07ed7af9e1baa9fd 2: 0x7f3c94191989 - std[c965b0aa6c3056df]::panicking::update_hook::>::{closure#0} 3: 0x7f3c979ee79b - std::panicking::rust_panic_with_hook::h7841a0c9dd31384d 4: 0x7f3c979ee48a - std::panicking::begin_panic_handler::{{closure}}::h83c1a92f8f557062 5: 0x7f3c979ea799 - std::sys::backtrace::__rust_end_short_backtrace::h7938b01b46b63f31 6: 0x7f3c979ee11d - __rustc[b7e3ce0d707010f2]::rust_begin_unwind 7: 0x7f3c94111550 - core::panicking::panic_fmt::hd8c0c8aacdff9232 8: 0x7f3c94111712 - core::panicking::panic_bounds_check::he32f7782c810a92a 9: 0x7f3c94549a25 - rustc_codegen_llvm[bce89ecd7059794]::builder::autodiff::differentiate 10: 0x7f3c9464b5e9 - ::autodiff 11: 0x7f3c945937cf - >::autodiff 12: 0x7f3c9463d5ea - std[c965b0aa6c3056df]::sys::backtrace::__rust_begin_short_backtrace::<::spawn_named_thread::{closure#5}, core[53647cb28d9a8e2]::result::Result>::{closure#0}, core[53647cb28d9a8e2]::result::Result> 13: 0x7f3c94642467 - <::spawn_unchecked_<::spawn_named_thread::{closure#5}, core[53647cb28d9a8e2]::result::Result>::{closure#0}, core[53647cb28d9a8e2]::result::Result>::{closure#1} as core[53647cb28d9a8e2]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0} 14: 0x7f3c979f2e27 - std::sys::pal::unix::thread::Thread::new::thread_start::h208e5045c7868bf5 15: 0x7f3c936a3579 - start_thread at ./nptl/pthread_create.c:448:8 16: 0x7f3c9371d858 - __GI___clone3 at /builddir/glibc-2.41/misc/../sysdeps/unix/sysv/linux/x86_64/clone3.S:78:0 17: 0x0 - rustc version: 1.90.0-nightly (c8780fff6 2025-07-11) platform: x86_64-unknown-linux-gnuthread 'rustc' panicked at /home/sabrina/.local/src/enzyme-rust/compiler/rustc_codegen_ssa/src/back/write.rs:2048:17: /home/sabrina/.local/src/enzyme-rust/compiler/rustc_codegen_ssa/src/back/write.rs:2048:17: panic during codegen/LLVM phase stack backtrace: 0: 0x7f3c979d1775 - std::backtrace::Backtrace::create::hcc6ff394d6b955d6 1: 0x7f3c979d16c5 - std::backtrace::Backtrace::force_capture::h07ed7af9e1baa9fd 2: 0x7f3c94191989 - std[c965b0aa6c3056df]::panicking::update_hook::>::{closure#0} 3: 0x7f3c979ee79b - std::panicking::rust_panic_with_hook::h7841a0c9dd31384d 4: 0x7f3c97442a31 - std[c965b0aa6c3056df]::panicking::begin_panic::::{closure#0} 5: 0x7f3c97442246 - std[c965b0aa6c3056df]::sys::backtrace::__rust_end_short_backtrace::::{closure#0}, !> 6: 0x7f3c940d9c25 - std[c965b0aa6c3056df]::panicking::begin_panic:: 7: 0x7f3c973f3733 - rustc_middle[e08a5b757b72e5be]::util::bug::opt_span_bug_fmt::::{closure#0} 8: 0x7f3c973f0fee - rustc_middle[e08a5b757b72e5be]::ty::context::tls::with_opt::::{closure#0}, !>::{closure#0} 9: 0x7f3c973f0fab - rustc_middle[e08a5b757b72e5be]::ty::context::tls::with_context_opt::::{closure#0}, !>::{closure#0}, !> 10: 0x7f3c940bb7c2 - rustc_middle[e08a5b757b72e5be]::util::bug::bug_fmt 11: 0x7f3c9464cb85 - ::join_codegen 12: 0x7f3c944325dd - ::time::<(rustc_codegen_ssa[7df531b5a2ead9db]::CodegenResults, indexmap[f276a117077b3f49]::map::IndexMap>), ::link::{closure#0}> 13: 0x7f3c943bdcf8 - ::link 14: 0x7f3c94154c1d - rustc_interface[c3cc7460e4a4ff2]::interface::run_compiler::<(), rustc_driver_impl[9cf905ad5fc2f633]::run_compiler::{closure#0}>::{closure#1} 15: 0x7f3c9414aeec - >::set::::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}::{closure#0}, ()> 16: 0x7f3c941a6fff - std[c965b0aa6c3056df]::sys::backtrace::__rust_begin_short_backtrace::::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()> 17: 0x7f3c941559d6 - <::spawn_unchecked_::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()>::{closure#1} as core[53647cb28d9a8e2]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0} 18: 0x7f3c979f2e27 - std::sys::pal::unix::thread::Thread::new::thread_start::h208e5045c7868bf5 19: 0x7f3c936a3579 - start_thread at ./nptl/pthread_create.c:448:8 20: 0x7f3c9371d858 - __GI___clone3 at /builddir/glibc-2.41/misc/../sysdeps/unix/sysv/linux/x86_64/clone3.S:78:0 21: 0x0 -