rust/src/librustc_const_math
Simonas Kazlauskas e97f104da6 Fix two const-eval issues related to i128 negation
First issue here was the fact that we’d only allow negating integers in i64 range in case the
integer was not infered yes. While this is not the direct cause of the issue, its still good to fix
it.

The real issue here is the code handling specifically the `min_value` literals. While I128_OVERFLOW
has the expected value (0x8000_..._0000), match using this value as a pattern is handled
incorrectly by the stage1 compiler (it seems to be handled correctly, by the stage2 compiler). So
what we do here is extract this pattern into an explicit `==` until the next snapshot.

Fixes #38987
2017-01-11 19:38:44 +02:00
..
Cargo.toml Such large. Very 128. Much bits. 2016-12-30 15:15:44 +01:00
err.rs Such large. Very 128. Much bits. 2016-12-30 15:15:44 +01:00
float.rs rustc_const_eval: work around double rounding. 2016-06-05 19:18:28 +03:00
int.rs Fix two const-eval issues related to i128 negation 2017-01-11 19:38:44 +02:00
is.rs Such large. Very 128. Much bits. 2016-12-30 15:15:44 +01:00
lib.rs Make members of {std,core}::{i128,u128} unstable 2017-01-06 03:53:55 +01:00
us.rs Such large. Very 128. Much bits. 2016-12-30 15:15:44 +01:00