diff options
| author | Yuki Okushi <jtitor@2k36.org> | 2021-08-07 01:46:32 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-08-07 01:46:32 +0900 |
| commit | 3b0e797ee6678175d1df9a01e944312b348d05b0 (patch) | |
| tree | ab80020ed98ac5e68b40ab64927126b943b4ccab /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp | |
| parent | 352ad622656ee3a8d8362cb92f5b608a13bc14f5 (diff) | |
| parent | 5ff06fb77f906b65b6a5301e84acc82a246af2b0 (diff) | |
| download | rust-3b0e797ee6678175d1df9a01e944312b348d05b0.tar.gz rust-3b0e797ee6678175d1df9a01e944312b348d05b0.zip | |
Rollup merge of #87761 - rusticstuff:rustc_error_overflow, r=Mark-Simulacrum
Fix overflow in rustc happening if the `err_count()` is reduced in a stage. This can happen if stashed diagnostics are removed or replaced with fewer errors. The semantics stay the same if built without overflow checks. Fixes #84219. Background: I came across this independently by running `RUSTFLAGS="-C overflow-checks=on" ./x.py test`. Fixing this will allow us to move on and find further overflow errors with testing or fuzzing.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
