diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2020-03-30 14:23:22 -0400 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2020-03-30 14:23:22 -0400 |
| commit | 9e7ae062492d4b41564832d37408336e36165e67 (patch) | |
| tree | b6b898deb26a63f264ee43e00ecfe883a1e8db99 /lib/std/heap.zig | |
| parent | b980568c810fda4c014da42be8e5108b4cbadb7c (diff) | |
| download | zig-9e7ae062492d4b41564832d37408336e36165e67.tar.gz zig-9e7ae062492d4b41564832d37408336e36165e67.zip | |
std lib API deprecations for the upcoming 0.6.0 release
See #3811
Diffstat (limited to 'lib/std/heap.zig')
| -rw-r--r-- | lib/std/heap.zig | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/std/heap.zig b/lib/std/heap.zig index 8c79249d4b..e4a409b218 100644 --- a/lib/std/heap.zig +++ b/lib/std/heap.zig @@ -51,8 +51,7 @@ var wasm_page_allocator_state = Allocator{ .shrinkFn = WasmPageAllocator.shrink, }; -/// Deprecated. Use `page_allocator`. -pub const direct_allocator = page_allocator; +pub const direct_allocator = @compileError("deprecated; use std.heap.page_allocator"); const PageAllocator = struct { fn alloc(allocator: *Allocator, n: usize, alignment: u29) error{OutOfMemory}![]u8 { |
