diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2019-03-14 11:55:29 -0400 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2019-03-14 11:57:56 -0400 |
| commit | 080dd27157e79adc8e5d5b7c1dcf94919624abab (patch) | |
| tree | 108c39a7f852c0b606bf2e8b2f6a6fecb7a8c2ee /src/codegen.cpp | |
| parent | e861da03f9b9d1261cf32872ea942ee7a63812d3 (diff) | |
| download | zig-080dd27157e79adc8e5d5b7c1dcf94919624abab.tar.gz zig-080dd27157e79adc8e5d5b7c1dcf94919624abab.zip | |
breaking: fix @typeInfo handling of global error set type
`builtin.TypeInfo.ErrorSet` is now `?[]Error`
instead of `struct{errors:[]Error}`.
closes #1936
Diffstat (limited to 'src/codegen.cpp')
| -rw-r--r-- | src/codegen.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/codegen.cpp b/src/codegen.cpp index 44e66c4dd8..df907915bb 100644 --- a/src/codegen.cpp +++ b/src/codegen.cpp @@ -7581,9 +7581,7 @@ Buf *codegen_generate_builtin_source(CodeGen *g) { " value: comptime_int,\n" " };\n" "\n" - " pub const ErrorSet = struct {\n" - " errors: []Error,\n" - " };\n" + " pub const ErrorSet = ?[]Error;\n" "\n" " pub const EnumField = struct {\n" " name: []const u8,\n" |
