| ... | @@ -11,11 +11,11 @@ pub fn getAutoHashFn(comptime K: type, comptime Context: type) (fn (Context, K) | ... | @@ -11,11 +11,11 @@ pub fn getAutoHashFn(comptime K: type, comptime Context: type) (fn (Context, K) |
| 11 | comptime { | 11 | comptime { |
| 12 | assert(@hasDecl(std, "StringHashMap")); // detect when the following message needs updated | 12 | assert(@hasDecl(std, "StringHashMap")); // detect when the following message needs updated |
| 13 | if (K == []const u8) { | 13 | if (K == []const u8) { |
| 14 | @compileError("std.auto_hash.autoHash does not allow slices here (" ++ | 14 | @compileError("std.hash.autoHash does not allow slices here (" ++ |
| 15 | @typeName(K) ++ | 15 | @typeName(K) ++ |
| 16 | ") because the intent is unclear. " ++ | 16 | ") because the intent is unclear. " ++ |
| 17 | "Consider using std.StringHashMap for hashing the contents of []const u8. " ++ | 17 | "Consider using std.StringHashMap for hashing the contents of []const u8. " ++ |
| 18 | "Alternatively, consider using std.auto_hash.hash or providing your own hash function instead."); | 18 | "Alternatively, consider using std.hash.autoHashStrat or providing your own hash function instead."); |
| 19 | } | 19 | } |
| 20 | } | 20 | } |
| 21 | | 21 | |