| author | |
| committer | |
| log | 61718742f7f20cde1469d4db811cd6dd6c3f8266 |
| tree | b2afa02e3212b4e1259c011c999155fc991d46fb |
| parent | ef5e7bb4693ed7e1582fb0b68cab01e00638d615 |
3 files changed, 6 insertions(+), 6 deletions(-)
src/ir.cpp+3-3| ... | @@ -6577,11 +6577,11 @@ static ConstCastOnly types_match_const_cast_only(IrAnalyze *ira, TypeTableEntry | ... | @@ -6577,11 +6577,11 @@ static ConstCastOnly types_match_const_cast_only(IrAnalyze *ira, TypeTableEntry |
| 6577 | TypeTableEntry *contained_set = actual_type; | 6577 | TypeTableEntry *contained_set = actual_type; |
| 6578 | TypeTableEntry *container_set = expected_type; | 6578 | TypeTableEntry *container_set = expected_type; |
| 6579 | 6579 | ||
| 6580 | if (!resolve_inferred_error_set(ira, container_set, source_node)) { | 6580 | // if the container set is inferred, then this will always work. |
| 6581 | result.id = ConstCastResultIdUnresolvedInferredErrSet; | 6581 | if (container_set->data.error_set.infer_fn != nullptr) { |
| 6582 | return result; | 6582 | return result; |
| 6583 | } | 6583 | } |
| 6584 | 6584 | // if the container set is the global one, it will always work. | |
| 6585 | if (type_is_global_error_set(container_set)) { | 6585 | if (type_is_global_error_set(container_set)) { |
| 6586 | return result; | 6586 | return result; |
| 6587 | } | 6587 | } |
std/os/child_process.zig+1-1| ... | @@ -28,7 +28,7 @@ pub const ChildProcess = struct { | ... | @@ -28,7 +28,7 @@ pub const ChildProcess = struct { |
| 28 | pub stdout: ?io.File, | 28 | pub stdout: ?io.File, |
| 29 | pub stderr: ?io.File, | 29 | pub stderr: ?io.File, |
| 30 | 30 | ||
| 31 | pub term: ?SpawnError!Term, | 31 | pub term: ?(SpawnError!Term), |
| 32 | 32 | ||
| 33 | pub argv: []const []const u8, | 33 | pub argv: []const []const u8, |
| 34 | 34 |
std/os/index.zig+2-2| ... | @@ -1515,7 +1515,7 @@ const unexpected_error_tracing = false; | ... | @@ -1515,7 +1515,7 @@ const unexpected_error_tracing = false; |
| 1515 | 1515 | ||
| 1516 | /// Call this when you made a syscall or something that sets errno | 1516 | /// Call this when you made a syscall or something that sets errno |
| 1517 | /// and you get an unexpected error. | 1517 | /// and you get an unexpected error. |
| 1518 | pub fn unexpectedErrorPosix(errno: usize) error { | 1518 | pub fn unexpectedErrorPosix(errno: usize) (error{Unexpected}) { |
| 1519 | if (unexpected_error_tracing) { | 1519 | if (unexpected_error_tracing) { |
| 1520 | debug.warn("unexpected errno: {}\n", errno); | 1520 | debug.warn("unexpected errno: {}\n", errno); |
| 1521 | debug.dumpStackTrace(); | 1521 | debug.dumpStackTrace(); |
| ... | @@ -1525,7 +1525,7 @@ pub fn unexpectedErrorPosix(errno: usize) error { | ... | @@ -1525,7 +1525,7 @@ pub fn unexpectedErrorPosix(errno: usize) error { |
| 1525 | 1525 | ||
| 1526 | /// Call this when you made a windows DLL call or something that does SetLastError | 1526 | /// Call this when you made a windows DLL call or something that does SetLastError |
| 1527 | /// and you get an unexpected error. | 1527 | /// and you get an unexpected error. |
| 1528 | pub fn unexpectedErrorWindows(err: windows.DWORD) error { | 1528 | pub fn unexpectedErrorWindows(err: windows.DWORD) (error{Unexpected}) { |
| 1529 | if (unexpected_error_tracing) { | 1529 | if (unexpected_error_tracing) { |
| 1530 | debug.warn("unexpected GetLastError(): {}\n", err); | 1530 | debug.warn("unexpected GetLastError(): {}\n", err); |
| 1531 | debug.dumpStackTrace(); | 1531 | debug.dumpStackTrace(); |