diff options
| author | Matthew Lugg <mlugg@mlugg.co.uk> | 2025-12-06 08:08:06 +0000 |
|---|---|---|
| committer | mlugg <mlugg@noreply.codeberg.org> | 2025-12-06 22:08:40 +0100 |
| commit | b5ff96b4d2091a29c07671e814fa937d2902e9b9 (patch) | |
| tree | dfdc99e2fb0432bd8a5d3a940a8aa501a6a3d69a /lib/std/Build | |
| parent | db15df5daa3e5e93ff1085e7a43999f0bb61938b (diff) | |
| download | zig-b5ff96b4d2091a29c07671e814fa937d2902e9b9.tar.gz zig-b5ff96b4d2091a29c07671e814fa937d2902e9b9.zip | |
std.heap: remove `raw_c_allocator`
After https://codeberg.org/ziglang/zig/pulls/30103, `raw_c_allocator` is
redundant. It existed to avoid overhead when you could assert that all
of your `Allocator` usage was going to be compatible with the C `malloc`
API, but the standard `c_allocator` is now able to avoid that overhead
*in the case* that your usage is compatible (and use the less efficient
path in the rare case where it's not), so there's no need for the raw
version anymore. Leaving it in `std.heap` at this point seems like it
would just be a footgun.
Diffstat (limited to 'lib/std/Build')
0 files changed, 0 insertions, 0 deletions
