mirror of
https://github.com/ziglang/zig.git
synced 2024-11-16 09:03:12 +00:00
10f2d62789
std/crypto: use finer-grained error sets in function signatures Returning the `crypto.Error` error set for all crypto operations was very convenient to ensure that errors were used consistently, and to avoid having multiple error names for the same thing. The flipside is that callers were forced to always handle all possible errors, even those that could never be returned by a function. This PR makes all functions return union sets of the actual errors they can return. The error sets themselves are all limited to a single error. Larger sets are useful for platform-specific APIs, but we don't have any of these in `std/crypto`, and I couldn't find any meaningful way to build larger sets. |
||
---|---|---|
.. | ||
include | ||
libc | ||
libcxx | ||
libcxxabi | ||
libunwind | ||
std | ||
tsan |