bors 45113eb6a4 Auto merge of #1325 - RalfJung:float_to_int_unchecked, r=RalfJung
implement float_to_int_unchecked

@hanna-kruppe would be great if you could have a look at this.

`float.rs` tests legal casts. `test_cast` checks that both `as` casts and unchecked casts work (i.e., these are not saturating). The `compile-fail` tests should ensure that illegal casts via the intrinsic are detected as such.

Fixes https://github.com/rust-lang/miri/issues/1264
2020-04-18 08:13:24 +00:00
..
2019-09-29 11:43:50 -04:00
2020-03-30 10:23:16 +02:00
2020-03-23 23:53:54 +01:00
2020-01-25 13:48:26 -06:00
2019-11-25 15:08:47 +01:00
2019-11-07 09:17:40 +01:00
2019-09-20 08:53:35 +02:00
2020-03-27 08:43:08 -04:00
2020-03-06 08:21:53 -05:00
2019-11-25 15:08:47 +01:00
2020-04-02 11:45:17 +02:00
2020-01-19 10:03:18 -06:00
2020-01-19 10:03:18 -06:00
2019-06-30 15:31:14 +01:00
2019-11-08 12:43:26 +01:00
2019-08-04 16:44:32 -04:00
2020-03-22 08:55:39 +01:00
2019-08-18 11:34:09 +02:00
2019-08-18 11:34:09 +02:00
2020-01-19 10:03:18 -06:00
2020-04-05 12:09:31 -05:00
2019-06-02 22:16:02 +02:00
2020-04-15 13:13:17 +02:00