about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2018-01-09 07:12:08 +0000
committerbors <bors@rust-lang.org>2018-01-09 07:12:08 +0000
commit2e33c89ff1518359c4bd5fbed1571ea00cb3b146 (patch)
treeffb5f5e710ad1a80d0ccf9a4066e092343ab7b1d /src/rustllvm/RustWrapper.cpp
parent74966b5cb84934737d21bd9001db07bd93fa5d64 (diff)
parentb48d944165dd878b887273898b7e4e4b4163c786 (diff)
downloadrust-2e33c89ff1518359c4bd5fbed1571ea00cb3b146.tar.gz
rust-2e33c89ff1518359c4bd5fbed1571ea00cb3b146.zip
Auto merge of #47231 - ereslibre:clean-emitted-diagnostics, r=nrc
Clean emitted diagnostics when `reset_err_count` is called.

When external tools like `rustfmt` calls to `reset_err_count` for handler
reusing, it will set the error count on the handler to 0, but since
https://github.com/rust-lang/rust/pull/47146 the handler will contain
status that will prevent the error count to be bumped if this handler is
reused.

This caused `rustfmt` idempotency tests to fail:
https://github.com/rust-lang-nursery/rustfmt/issues/2338

Fixes: https://github.com/rust-lang-nursery/rustfmt/issues/2338
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions