about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2017-01-14 19:47:23 +0000
committerbors <bors@rust-lang.org>2017-01-14 19:47:23 +0000
commit93e70ecb7fbe05caa74dfb2bf3c29315edc2b3e6 (patch)
treef9aa4f5b8c775467d717fe39371f36850c3a3b46 /src/libstd
parent2f9dedb528d40a46c47c9970b30cc3e2fdd1e0bb (diff)
parente97f104da64d047c919fc2fccf720efd46f30261 (diff)
downloadrust-93e70ecb7fbe05caa74dfb2bf3c29315edc2b3e6.tar.gz
rust-93e70ecb7fbe05caa74dfb2bf3c29315edc2b3e6.zip
Auto merge of #38992 - nagisa:i128-minvallit, r=eddyb
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
Diffstat (limited to 'src/libstd')
0 files changed, 0 insertions, 0 deletions