From 0886b69b76dff49429f6097c57bfbbd0051f47d6 Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Tue, 24 Jan 2012 23:07:16 -0800 Subject: [PATCH] rustc: Bump the error count on non-span errors --- src/comp/driver/diagnostic.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/comp/driver/diagnostic.rs b/src/comp/driver/diagnostic.rs index 3d7cbf3701e..19301a91971 100644 --- a/src/comp/driver/diagnostic.rs +++ b/src/comp/driver/diagnostic.rs @@ -79,6 +79,7 @@ impl codemap_handler of handler for handler_t { } fn err(msg: str) { self._emit(none, msg, error); + self.bump_err_count(); } fn bump_err_count() { self.err_count += 1u;