mirror of
https://github.com/rust-lang/rust.git
synced 2025-11-06 08:01:00 +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
For more information about how rustc works, see the rustc dev guide.