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(
44974497 .cc_gz = null,
44984498 .align_ref = .none,
44994499 .align_gz = null,
4500 .ret_ref = .void_type,
4500 .ret_ref = .anyerror_void_error_union_type,
45014501 .ret_gz = null,
45024502 .section_ref = .none,
45034503 .section_gz = null,
......@@ -4510,7 +4510,7 @@ fn testDecl(
45104510 .body_gz = &fn_block,
45114511 .lib_name = 0,
45124512 .is_var_args = false,
4513 .is_inferred_error = true,
4513 .is_inferred_error = false,
45144514 .is_test = true,
45154515 .is_extern = false,
45164516 .is_noinline = false,