aboutsummaryrefslogtreecommitdiff
path: root/src/codegen.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2019-03-14 11:55:29 -0400
committerAndrew Kelley <andrew@ziglang.org>2019-03-14 11:57:56 -0400
commit080dd27157e79adc8e5d5b7c1dcf94919624abab (patch)
tree108c39a7f852c0b606bf2e8b2f6a6fecb7a8c2ee /src/codegen.cpp
parente861da03f9b9d1261cf32872ea942ee7a63812d3 (diff)
downloadzig-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.cpp4
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"