authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2023-05-26 16:40:40-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2023-06-10 20:47:56-07:00
log270f9e24ddb53334e2a4e5d7a7292a98441854b7
treec84be392d7f5686ee6c06188bd5e5a2e9ba70051
parente156c1c07ea3db3b2cb163ec7230ed8ecbf42859

AstGen: generate tests with anyerror!void

rather than inferred error sets. This avoids extra unnecessary work for the compiler since inferred error sets are unique types.

1 files changed, 2 insertions(+), 2 deletions(-)

src/AstGen.zig+2-2
...@@ -4497,7 +4497,7 @@ fn testDecl(...@@ -4497,7 +4497,7 @@ fn testDecl(
4497 .cc_gz = null,4497 .cc_gz = null,
4498 .align_ref = .none,4498 .align_ref = .none,
4499 .align_gz = null,4499 .align_gz = null,
4500 .ret_ref = .void_type,4500 .ret_ref = .anyerror_void_error_union_type,
4501 .ret_gz = null,4501 .ret_gz = null,
4502 .section_ref = .none,4502 .section_ref = .none,
4503 .section_gz = null,4503 .section_gz = null,
...@@ -4510,7 +4510,7 @@ fn testDecl(...@@ -4510,7 +4510,7 @@ fn testDecl(
4510 .body_gz = &fn_block,4510 .body_gz = &fn_block,
4511 .lib_name = 0,4511 .lib_name = 0,
4512 .is_var_args = false,4512 .is_var_args = false,
4513 .is_inferred_error = true,4513 .is_inferred_error = false,
4514 .is_test = true,4514 .is_test = true,
4515 .is_extern = false,4515 .is_extern = false,
4516 .is_noinline = false,4516 .is_noinline = false,