From c9facf0ba3e532275676d9b45cd2fb0aa2f89b68 Mon Sep 17 00:00:00 2001 From: Justin Braben Date: Fri, 8 Nov 2024 14:27:32 -0700 Subject: [PATCH] Fill in missed PipeNotAvailable --- lib/std/zig/system.zig | 2 ++ src/Builtin.zig | 1 + src/Zcu/PerThread.zig | 1 + 3 files changed, 4 insertions(+) diff --git a/lib/std/zig/system.zig b/lib/std/zig/system.zig index d4eb76dc3d..14d2af5d1f 100644 --- a/lib/std/zig/system.zig +++ b/lib/std/zig/system.zig @@ -805,6 +805,7 @@ fn glibcVerFromRPath(rpath: []const u8) !std.SemanticVersion { error.InvalidWtf8 => unreachable, // Windows only error.BadPathName => unreachable, // Windows only error.PipeBusy => unreachable, // Windows-only + error.PipeNotAvailable => unreachable, // Windows-only error.SharingViolation => unreachable, // Windows-only error.NetworkNotFound => unreachable, // Windows-only error.AntivirusInterference => unreachable, // Windows-only @@ -1068,6 +1069,7 @@ fn detectAbiAndDynamicLinker( error.InvalidWtf8 => unreachable, // Windows only error.BadPathName => unreachable, error.PipeBusy => unreachable, + error.PipeNotAvailable => unreachable, error.FileLocksNotSupported => unreachable, error.WouldBlock => unreachable, error.FileBusy => unreachable, // opened without write permissions diff --git a/src/Builtin.zig b/src/Builtin.zig index f3018d3023..37977c241b 100644 --- a/src/Builtin.zig +++ b/src/Builtin.zig @@ -250,6 +250,7 @@ pub fn populateFile(comp: *Compilation, mod: *Module, file: *File) !void { error.BadPathName => unreachable, // it's always "builtin.zig" error.NameTooLong => unreachable, // it's always "builtin.zig" error.PipeBusy => unreachable, // it's not a pipe + error.PipeNotAvailable => unreachable, // it's not a pipe error.WouldBlock => unreachable, // not asking for non-blocking I/O error.FileNotFound => try writeFile(file, mod), diff --git a/src/Zcu/PerThread.zig b/src/Zcu/PerThread.zig index 29b9716152..2670dd71be 100644 --- a/src/Zcu/PerThread.zig +++ b/src/Zcu/PerThread.zig @@ -133,6 +133,7 @@ pub fn astGenFile( error.BadPathName => unreachable, // it's a hex encoded name error.NameTooLong => unreachable, // it's a fixed size name error.PipeBusy => unreachable, // it's not a pipe + error.PipeNotAvailable => unreachable, // it's not a pipe error.WouldBlock => unreachable, // not asking for non-blocking I/O // There are no dir components, so you would think that this was // unreachable, however we have observed on macOS two processes racing