aboutsummaryrefslogtreecommitdiff
path: root/lib/std/special
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2019-11-25 17:25:06 -0500
committerAndrew Kelley <andrew@ziglang.org>2019-11-25 17:25:06 -0500
commitcb38bd0a1436bd18de8ed57c45ffc890c8ddfb78 (patch)
treec695fdb19e30581b8227ab286ce0a3b35971f34c /lib/std/special
parent35d65cceb8aa4360accc0db30b2b1448159e7d26 (diff)
downloadzig-cb38bd0a1436bd18de8ed57c45ffc890c8ddfb78.tar.gz
zig-cb38bd0a1436bd18de8ed57c45ffc890c8ddfb78.zip
rename std.heap.direct_allocator to std.heap.page_allocator
std.heap.direct_allocator is still available for now but it is marked deprecated.
Diffstat (limited to 'lib/std/special')
-rw-r--r--lib/std/special/build_runner.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/special/build_runner.zig b/lib/std/special/build_runner.zig
index fdf5193c03..27d3283a3c 100644
--- a/lib/std/special/build_runner.zig
+++ b/lib/std/special/build_runner.zig
@@ -17,7 +17,7 @@ pub fn main() !void {
// one shot program. We don't need to waste time freeing memory and finding places to squish
// bytes into. So we free everything all at once at the very end.
- var arena = std.heap.ArenaAllocator.init(std.heap.direct_allocator);
+ var arena = std.heap.ArenaAllocator.init(std.heap.page_allocator);
defer arena.deinit();
const allocator = &arena.allocator;