Update to origin 0.19.0.
Fails with
inlinable function call in a function with debug info must have a !dbg location
call void @_Unwind_Resume(ptr %197) #15
rustc-LLVM ERROR: Broken module found, compilation aborted!
error: could not compile `unwinding` (lib)
Probably a compiler bug.
Does updating unwinding-rs work?
It's already using unwinding v0.2.2, which is the latest version.
https://github.com/rust-lang/rust/issues/101121 has an identical error message but was supposedly fixed over a year ago already.
With the latest nightly Rust, it now passes on x86-64 and i686, but it still fails on riscv64.
I can't reproduce the aarch64 failure locally.
Edit: I can't reproduce it on x86_64 cross compiling to aarch64, but I can reproduce it on aarch64 natively.
I was able to reproduce crash independently of c-ward, but only when incr comp is disabled. I opened https://github.com/nbdd0121/unwinding/issues/34 to track it on the unwinding side.
Adding these [profile.dev.package.unwinding] workarounds to all users isn't great, but I think it's the best option for now.