Commit eec53d67ab

Andrew Kelley <andrew@ziglang.org>
2020-08-13 06:59:40
stage2: anyerror -> explicit error set
1 parent 1eb5aaa
Changed files (1)
src-self-hosted
src-self-hosted/link.zig
@@ -229,7 +229,7 @@ pub const File = struct {
             return &c_file.base;
         }
 
-        pub fn fail(self: *C, src: usize, comptime format: []const u8, args: anytype) anyerror {
+        pub fn fail(self: *C, src: usize, comptime format: []const u8, args: anytype) error{AnalysisFail, OutOfMemory} {
             self.error_msg = try Module.ErrorMsg.create(self.base.allocator, src, format, args);
             return error.AnalysisFail;
         }