diff options
| author | kennytm <kennytm@gmail.com> | 2018-03-06 16:25:30 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-03-06 16:25:30 +0800 |
| commit | 813ac2c36b9b5ed788a36418a3a192782f5fb9ef (patch) | |
| tree | bd7922336d395548a9a4cc281aa533c08fe7b5ba /src/rustllvm/RustWrapper.cpp | |
| parent | 43de95ca5b177bdb61a2ea8d8206a3234e75eff6 (diff) | |
| parent | fc33b2567cac0ae453807f4118872ab81a16ddf7 (diff) | |
| download | rust-813ac2c36b9b5ed788a36418a3a192782f5fb9ef.tar.gz rust-813ac2c36b9b5ed788a36418a3a192782f5fb9ef.zip | |
Rollup merge of #48432 - flip1995:lit_diag, r=oli-obk
Suggest type for overflowing bin/hex-literals Fixes #48073 For hexadecimal and binary literals, which overflow, it gives an additional note to the warning message, like in this [comment](https://github.com/rust-lang/rust/issues/48073#issuecomment-365370113). Additionally it will suggest a type (`X < Y`): - `iX`: if literal fits in `uX` => `uX`, else => `iY` - `-iX` => `iY` - `uX` => `uY` Exceptions: `isize`, `usize`. I don't think you can make a good suggestion here. The programmer has to figure it out on it's own in this case. r? @oli-obk
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
