diff options
| author | Robin Kruppe <robin.kruppe@gmail.com> | 2017-10-09 02:14:00 +0200 |
|---|---|---|
| committer | Robin Kruppe <robin.kruppe@gmail.com> | 2017-11-07 20:13:19 +0100 |
| commit | 0d6b52c2f3d442d3edfea31bcc439127a4757e5e (patch) | |
| tree | 340f0188cb0c4953d2f1bfa10e5a2ad46cf4a039 /src/test/incremental/thinlto | |
| parent | 7ade24f67201531778e7674b4b63ebf1a23c9643 (diff) | |
| download | rust-0d6b52c2f3d442d3edfea31bcc439127a4757e5e.tar.gz rust-0d6b52c2f3d442d3edfea31bcc439127a4757e5e.zip | |
Saturating casts between integers and floats (both directions).
This affects regular code generation as well as constant evaluation in trans, but not the HIR constant evaluator because that one returns an error for overflowing casts and NaN-to-int casts. That error is conservatively correct and we should be careful to not accept more code in constant expressions. The changes to code generation are guarded by a new -Z flag, to be able to evaluate the performance impact. The trans constant evaluation changes are unconditional because they have no run time impact and don't affect type checking either.
Diffstat (limited to 'src/test/incremental/thinlto')
0 files changed, 0 insertions, 0 deletions
