From 1428ef3b07eba5a414b30973b117f3c8328c727c Mon Sep 17 00:00:00 2001 From: Jimmi Holst Christensen Date: Sun, 30 Sep 2018 01:23:05 +0200 Subject: [PATCH] Expose failing_allocator as *Allocator instead of const FailingAllocator --- std/debug/index.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/std/debug/index.zig b/std/debug/index.zig index 9ad15ccd7e..4a8ee365ba 100644 --- a/std/debug/index.zig +++ b/std/debug/index.zig @@ -13,7 +13,7 @@ const ArrayList = std.ArrayList; const builtin = @import("builtin"); pub const FailingAllocator = @import("failing_allocator.zig").FailingAllocator; -pub const failing_allocator = FailingAllocator.init(global_allocator, 0); +pub const failing_allocator = &FailingAllocator.init(global_allocator, 0).allocator; pub const runtime_safety = switch (builtin.mode) { builtin.Mode.Debug, builtin.Mode.ReleaseSafe => true,