panic_bounds_check: use caller_location, like PanicFnLangItem by RalfJung · Pull Request #69850 · rust-lang/rust (original) (raw)
The PanicFnLangItem
got switched to using #[caller_location]
at some point, but PanicBoundsCheckFnLangItem
was kept in the old style. For consistency, switch that one over to use #[caller_location]
as well.
This is also helpful for Miri as it means the assert_panic
machine hook never needs to know the current Span
.