[utils] remove trailing whitespace after removing diag

This commit is contained in:
Henrik G. Olsson
2025-11-07 18:07:56 -08:00
parent 4d5844b723
commit c246140d7f
2 changed files with 4 additions and 4 deletions

View File

@@ -35,19 +35,19 @@ func foobar() {
func foo() {
// expected-note@+1{{'a' declared here}}
let a = 2 // expected-error@+1{{cannot find 'b' in scope; did you mean 'a'?}}
b = a
b = a
}
func bar() {
// expected-error@+1{{cannot find 'a' in scope}}
a = 2
a = 2
}
func baz() {
// expected-error@+3{{cannot find 'a' in scope}}
// expected-error@+2{{cannot find 'a'}}
// expected-note@+1{{'b' declared here}}
let b = a; let c = a;
let b = a; let c = a;
}
func qux() {

View File

@@ -51,7 +51,7 @@ class Line:
res = self.content.replace("{{DIAG}}", self.diag.render())
if not res.strip():
return ""
return res
return res.rstrip() + "\n"
class Diag: