mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-30 04:56:25 +03:00
b1a643e599
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.