We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f142499 commit 601e3daCopy full SHA for 601e3da
src/librustc_errors/lib.rs
@@ -303,6 +303,12 @@ impl Handler {
303
self.continue_after_error.set(continue_after_error);
304
}
305
306
+ // NOTE: DO NOT call this function from rustc, as it relies on `err_count` being non-zero
307
+ // if an error happened to avoid ICEs. This function should only be called from tools.
308
+ pub fn reset_err_count(&self) {
309
+ self.err_count.set(0);
310
+ }
311
+
312
pub fn struct_dummy<'a>(&'a self) -> DiagnosticBuilder<'a> {
313
DiagnosticBuilder::new(self, Level::Cancelled, "")
314
0 commit comments