mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-21 20:37:59 +00:00

fix ICE when promoted has layout size overflow Turns out there is no reason to distinguish `tainted_by_errors` and `can_be_spurious` here, we can just track whether we allow this even in "infallible" constants. Fixes https://github.com/rust-lang/rust/issues/125476