diff options
| author | mlugg <mlugg@mlugg.co.uk> | 2025-10-11 11:10:33 +0100 |
|---|---|---|
| committer | mlugg <mlugg@mlugg.co.uk> | 2025-10-11 11:46:30 +0100 |
| commit | 923ddd94a1419abfa9ab95718a7b7d2a8da7a5ec (patch) | |
| tree | 588fd75889acd8f37b9da3bc7745561122ffdd68 /lib/libcxx/src/algorithm.cpp | |
| parent | 2e31077fe0e021858cf2f92f85e5fcfd12c41501 (diff) | |
| download | zig-923ddd94a1419abfa9ab95718a7b7d2a8da7a5ec.tar.gz zig-923ddd94a1419abfa9ab95718a7b7d2a8da7a5ec.zip | |
std.posix: panic on unexpected error in `munmap`
This is to help diagnose #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.
Diffstat (limited to 'lib/libcxx/src/algorithm.cpp')
0 files changed, 0 insertions, 0 deletions
