From 063607eecbbdff53ee0cbc4b3f9a8ff49448f741 Mon Sep 17 00:00:00 2001 From: Rafael Fernández López Date: Tue, 2 Jan 2018 20:00:12 +0100 Subject: Only bump error count when we are sure that the diagnostic is not a repetition. This ensures that if we emit the same diagnostic twice, the error count will match the real number of errors shown to the user. Fixes #42106 --- src/test/ui/span/macro-ty-params.stderr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/test/ui/span') diff --git a/src/test/ui/span/macro-ty-params.stderr b/src/test/ui/span/macro-ty-params.stderr index e3e9334d9fb..2ac132f708c 100644 --- a/src/test/ui/span/macro-ty-params.stderr +++ b/src/test/ui/span/macro-ty-params.stderr @@ -22,5 +22,5 @@ error: generic arguments in macro path 20 | m!(MyTrait<>); //~ ERROR generic arguments in macro path | ^^ -error: aborting due to 5 previous errors +error: aborting due to 4 previous errors -- cgit 1.4.1-3-g733a5