]> git.lizzy.rs Git - rust.git/commit
auto merge of #15709 : hirschenberger/rust/issue-14269, r=cmr
authorbors <bors@rust-lang.org>
Tue, 5 Aug 2014 17:21:23 +0000 (17:21 +0000)
committerbors <bors@rust-lang.org>
Tue, 5 Aug 2014 17:21:23 +0000 (17:21 +0000)
commit6da38890f1f734799dc06460edf26c560db59a8e
tree5dea8a018e59172d058fea6963c40453c2bcb5b2
parentce83301f8c64f77c876ecfed65962b7dc407f093
parent0dc215741b34236c310e409c437600ba0165c97c
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