Commit 024fff6
std.posix: panic on unexpected error in
This is to help diagnose ziglang#25498. We can't use `unexpectedErrno` here,
because `std.posix.munmap` is infallible. So, when the flag is set to
report unexpected errnos, we just call `std.debug.panic` to provide
details instead of doing `unreachable`.
Pushing straight to master after running checks locally; there's no
point waiting for CI on the PR just for this.
(cherry picked from commit 923ddd9)munmap
1 parent f703418 commit 024fff6
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4873 | 4873 | | |
4874 | 4874 | | |
4875 | 4875 | | |
4876 | | - | |
| 4876 | + | |
| 4877 | + | |
| 4878 | + | |
4877 | 4879 | | |
4878 | 4880 | | |
4879 | 4881 | | |
| |||
0 commit comments