Don't ICE when an extern static is too big for the current architecture by asquared31415 · Pull Request #93850 · rust-lang/rust (original) (raw)
Fixes #93760
Emit an error instead of ICEing when an extern
static's size overflows the allowed maximum for the target.
Changes the error message in the existing delay_span_bug
call to the true layout error, first for debugging purposes, but opted to leave in to potentially assist future developers as it was being reached in unexpected ways already.