mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-01 15:50:05 +03:00
14d608f1d8
Define UB in float-to-int casts to saturate This closes #10184 by defining the behavior there to saturate infinities and values exceeding the integral range (on the lower or upper end). `NaN` is sent to zero.