diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2021-08-22 20:52:51 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-08-22 20:52:51 +0200 |
| commit | 3b1e7b1fc9853497140f7f5371882234f0295893 (patch) | |
| tree | ac00ffb1283c9807767e2dd2ebac82f4bd6b64eb /compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp | |
| parent | 2627db6a3cc4115cc3ff7a1597eb44347acb0c54 (diff) | |
| parent | 4c0ff4db80d2c6cb4dc204f65f34ce2246e27bfe (diff) | |
| download | rust-3b1e7b1fc9853497140f7f5371882234f0295893.tar.gz rust-3b1e7b1fc9853497140f7f5371882234f0295893.zip | |
Rollup merge of #87166 - de-vri-es:show-discriminant-before-overflow, r=jackh726
Show discriminant before overflow in diagnostic for duplicate values. This PR adds the value before overflow for explicit discriminant values in the error for duplicate discriminant values. I found it rather confusing to see only the overflowed value. It only does this for literals, since overflows in const evaluated arithmetic are already a hard error. This is my first PR to the compiler, so please let me know if the implementation can be improved :) Before:  After: 
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
