rust/src/librustc_errors
Rafael Fernández López b48d944165
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
2018-01-08 17:36:21 +01:00
..
Cargo.toml When attempting to write str with single quote suggest double quotes 2017-12-14 22:51:42 -08:00
diagnostic.rs Only bump error count when we are sure that the diagnostic is not a repetition. 2018-01-03 00:42:12 +01:00
diagnostic_builder.rs Only bump error count when we are sure that the diagnostic is not a repetition. 2018-01-03 00:42:12 +01:00
emitter.rs When attempting to write str with single quote suggest double quotes 2017-12-14 22:51:42 -08:00
lib.rs Clean emitted diagnostics when reset_err_count is called. 2018-01-08 17:36:21 +01:00
lock.rs run rustfmt on librustc_errors folder 2016-10-18 23:13:02 +05:30
registry.rs run rustfmt on librustc_errors folder 2016-10-18 23:13:02 +05:30
snippet.rs Rollup merge of #46052 - oli-obk:rendered_diagnostics_in_json, r=petrochenkov 2017-11-22 01:12:59 +08:00
styled_buffer.rs Display \t in diagnostics code as four spaces 2017-11-24 08:24:31 -08:00