breaking: fix @typeInfo handling of global error set type

`builtin.TypeInfo.ErrorSet` is now `?[]Error`
instead of `struct{errors:[]Error}`.

closes #1936
This commit is contained in:
Andrew Kelley
2019-03-14 11:55:29 -04:00
parent e861da03f9
commit 080dd27157
7 changed files with 17 additions and 49 deletions

View File

@@ -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"