From 080dd27157e79adc8e5d5b7c1dcf94919624abab Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Thu, 14 Mar 2019 11:55:29 -0400 Subject: breaking: fix @typeInfo handling of global error set type `builtin.TypeInfo.ErrorSet` is now `?[]Error` instead of `struct{errors:[]Error}`. closes #1936 --- src/codegen.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/codegen.cpp') 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" -- cgit v1.2.3