From e6ebc41a07b294e602f8594e001df78e143e190f Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Fri, 9 Aug 2019 17:09:27 -0400 Subject: [PATCH] add a little compile error to make Future Andy's life easier --- tools/process_headers.zig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/process_headers.zig b/tools/process_headers.zig index f191721316..805fc3d5f7 100644 --- a/tools/process_headers.zig +++ b/tools/process_headers.zig @@ -504,6 +504,9 @@ const Contents = struct { } }; +comptime { + @compileError("the behavior of std.AutoHashMap changed and []const u8 will be treated as a pointer. will need to update the hash maps to actually do some kind of hashing on the slices."); +} const HashToContents = std.AutoHashMap([]const u8, Contents); const TargetToHash = std.HashMap(DestTarget, []const u8, DestTarget.hash, DestTarget.eql); const PathTable = std.AutoHashMap([]const u8, *TargetToHash);