From eec53d67abb3a3d894de945f549994a16cb92474 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Wed, 12 Aug 2020 21:59:40 -0700 Subject: [PATCH] stage2: anyerror -> explicit error set --- src-self-hosted/link.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src-self-hosted/link.zig b/src-self-hosted/link.zig index 06917cc490..7c5e645fb5 100644 --- a/src-self-hosted/link.zig +++ b/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; }