authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-08-12 21:59:40-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-08-12 21:59:40-07:00
logeec53d67abb3a3d894de945f549994a16cb92474
tree6634cf1996d5e9d406c20bb29aa16fc2fbdc6deb
parent1eb5aaa4b5bee902bed354ef6ebfbb643a624440

stage2: anyerror -> explicit error set


1 files changed, 1 insertions(+), 1 deletions(-)

src-self-hosted/link.zig+1-1
......@@ -229,7 +229,7 @@ pub const File = struct {
229229 return &c_file.base;
230230 }
231231
232 pub fn fail(self: *C, src: usize, comptime format: []const u8, args: anytype) anyerror {
232 pub fn fail(self: *C, src: usize, comptime format: []const u8, args: anytype) error{AnalysisFail, OutOfMemory} {
233233 self.error_msg = try Module.ErrorMsg.create(self.base.allocator, src, format, args);
234234 return error.AnalysisFail;
235235 }