about summary refs log tree commit diff
path: root/src/rustllvm/PassWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2014-08-05 17:21:23 +0000
committerbors <bors@rust-lang.org>2014-08-05 17:21:23 +0000
commit6da38890f1f734799dc06460edf26c560db59a8e (patch)
tree5dea8a018e59172d058fea6963c40453c2bcb5b2 /src/rustllvm/PassWrapper.cpp
parentce83301f8c64f77c876ecfed65962b7dc407f093 (diff)
parent0dc215741b34236c310e409c437600ba0165c97c (diff)
downloadrust-6da38890f1f734799dc06460edf26c560db59a8e.tar.gz
rust-6da38890f1f734799dc06460edf26c560db59a8e.zip
auto merge of #15709 : hirschenberger/rust/issue-14269, r=cmr
Fixes missing overflow lint for i64 #14269

The `type_overflow` lint, doesn't catch the overflow for `i64` because the overflow happens earlier in the parse phase when the `u64` as biggest possible int gets casted to `i64` , without checking the for
overflows.
We can't lint in the parse phase, so we emit a compiler error, as we do for overflowing `u64`

Perhaps a consistent behaviour would be to emit a parse error for *all*  overflowing integer types.

See #14269
Diffstat (limited to 'src/rustllvm/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions