diff options
| author | bors <bors@rust-lang.org> | 2014-08-05 17:21:23 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-08-05 17:21:23 +0000 |
| commit | 6da38890f1f734799dc06460edf26c560db59a8e (patch) | |
| tree | 5dea8a018e59172d058fea6963c40453c2bcb5b2 /src/rustllvm/PassWrapper.cpp | |
| parent | ce83301f8c64f77c876ecfed65962b7dc407f093 (diff) | |
| parent | 0dc215741b34236c310e409c437600ba0165c97c (diff) | |
| download | rust-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
