add a little compile error to make Future Andy's life easier

This commit is contained in:
Andrew Kelley 2019-08-09 17:09:27 -04:00
parent 0bf6796b76
commit e6ebc41a07
No known key found for this signature in database
GPG Key ID: 7C5F548F728501A9

View File

@ -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 HashToContents = std.AutoHashMap([]const u8, Contents);
const TargetToHash = std.HashMap(DestTarget, []const u8, DestTarget.hash, DestTarget.eql); const TargetToHash = std.HashMap(DestTarget, []const u8, DestTarget.hash, DestTarget.eql);
const PathTable = std.AutoHashMap([]const u8, *TargetToHash); const PathTable = std.AutoHashMap([]const u8, *TargetToHash);