diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2022-08-10 23:02:04 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2022-08-11 06:22:05 -0400 |
| commit | a82d7c20631b90de2f2298d351353041ac41650d (patch) | |
| tree | ea10e8411448e594c15366657a7200e9b2bcb835 /src | |
| parent | 44a6172edbf6c99f4ebfeabb530756ed2a40c3c2 (diff) | |
| download | zig-a82d7c20631b90de2f2298d351353041ac41650d.tar.gz zig-a82d7c20631b90de2f2298d351353041ac41650d.zip | |
std: add missing error to windows.WriteFile
I encountered this error today when testing the self-hosted compiler on
Windows.
Diffstat (limited to 'src')
| -rw-r--r-- | src/link.zig | 1 | ||||
| -rw-r--r-- | src/main.zig | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/link.zig b/src/link.zig index a69dcc4c6e..14ae142a3f 100644 --- a/src/link.zig +++ b/src/link.zig @@ -435,6 +435,7 @@ pub const File = struct { EmitFail, NameTooLong, CurrentWorkingDirectoryUnlinked, + LockViolation, }; /// Called from within the CodeGen to lower a local variable instantion as an unnamed diff --git a/src/main.zig b/src/main.zig index c103cddcd4..971fe19e36 100644 --- a/src/main.zig +++ b/src/main.zig @@ -4227,6 +4227,7 @@ const FmtError = error{ NotOpenForWriting, UnsupportedEncoding, ConnectionResetByPeer, + LockViolation, } || fs.File.OpenError; fn fmtPath(fmt: *Fmt, file_path: []const u8, check_mode: bool, dir: fs.Dir, sub_path: []const u8) FmtError!void { |
