| author | |
| committer | |
| log | 5e40560367bb2e591c5275d211d661e1aa1eef03 |
| tree | a8d21acf6c54dd6da67488fdb8887fd096bf1c12 |
| parent | 0d96a284e80fc3d79af9d56bacb05456b9ed3da4 |
This commit simply specifies the type which `autoHash` can't hash in the
compile error.
Closes #7970.1 files changed, 1 insertions(+), 1 deletions(-)
lib/std/hash/auto_hash.zig+1-1| ... | ... | @@ -95,7 +95,7 @@ pub fn hash(hasher: anytype, key: anytype, comptime strat: HashStrategy) void { |
| 95 | 95 | .EnumLiteral, |
| 96 | 96 | .Frame, |
| 97 | 97 | .Float, |
| 98 | => @compileError("cannot hash this type"), | |
| 98 | => @compileError("unable to hash type " ++ @typeName(Key)), | |
| 99 | 99 | |
| 100 | 100 | // Help the optimizer see that hashing an int is easy by inlining! |
| 101 | 101 | // TODO Check if the situation is better after #561 is resolved. |