mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 22:02:55 +01:00
Collapse empty braces onto a single line. (#3733)
Don't write out `.members` section at all if it's empty.
This commit is contained in:
@@ -12,8 +12,7 @@ let n: i32 = *undeclared;
|
||||
// CHECK:STDOUT: --- fail_deref_error.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: file {
|
||||
// CHECK:STDOUT: package: <namespace> = namespace {
|
||||
// CHECK:STDOUT: } [template]
|
||||
// CHECK:STDOUT: package: <namespace> = namespace {} [template]
|
||||
// CHECK:STDOUT: %undeclared.ref: <error> = name_ref undeclared, <error> [template = <error>]
|
||||
// CHECK:STDOUT: %.loc10: ref <error> = deref <error>
|
||||
// CHECK:STDOUT: %n: i32 = bind_name n, <error>
|
||||
|
||||
@@ -20,8 +20,7 @@ fn F() {
|
||||
// CHECK:STDOUT: .A = %.loc7
|
||||
// CHECK:STDOUT: .F = %F
|
||||
// CHECK:STDOUT: } [template]
|
||||
// CHECK:STDOUT: %.loc7: <namespace> = namespace {
|
||||
// CHECK:STDOUT: } [template]
|
||||
// CHECK:STDOUT: %.loc7: <namespace> = namespace {} [template]
|
||||
// CHECK:STDOUT: %F: <function> = fn_decl @F {} [template]
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT:
|
||||
|
||||
Reference in New Issue
Block a user