From 3f658879740e3f7aee05be33532b5ba9aaa316bf Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Sun, 17 Dec 2017 20:52:29 -0500 Subject: [PATCH] fix std.mem missing error.OutOfMemory decl this will be fixed in a better way later by #632 --- std/mem.zig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/std/mem.zig b/std/mem.zig index 7edca350a0..59b01fab17 100644 --- a/std/mem.zig +++ b/std/mem.zig @@ -3,6 +3,8 @@ const assert = debug.assert; const math = @import("math/index.zig"); const builtin = @import("builtin"); +error OutOfMemory; + pub const Allocator = struct { /// Allocate byte_count bytes and return them in a slice, with the /// slice's pointer aligned at least to alignment bytes.