mirror of
https://github.com/ziglang/zig.git
synced 2026-02-13 21:08:36 +00:00
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.
This commit is contained in:
parent
e156c1c07e
commit
270f9e24dd
@ -4497,7 +4497,7 @@ fn testDecl(
|
||||
.cc_gz = null,
|
||||
.align_ref = .none,
|
||||
.align_gz = null,
|
||||
.ret_ref = .void_type,
|
||||
.ret_ref = .anyerror_void_error_union_type,
|
||||
.ret_gz = null,
|
||||
.section_ref = .none,
|
||||
.section_gz = null,
|
||||
@ -4510,7 +4510,7 @@ fn testDecl(
|
||||
.body_gz = &fn_block,
|
||||
.lib_name = 0,
|
||||
.is_var_args = false,
|
||||
.is_inferred_error = true,
|
||||
.is_inferred_error = false,
|
||||
.is_test = true,
|
||||
.is_extern = false,
|
||||
.is_noinline = false,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user