mirror of
https://github.com/ziglang/zig.git
synced 2026-01-20 06:15:21 +00:00
std.hash_map: clarify error when Context is missing pub hash/eql
This commit is contained in:
parent
21ae64852a
commit
1b0e913e0f
@ -251,7 +251,7 @@ pub fn verifyContext(
|
||||
errors = errors ++ lazy.err_invalid_hash_signature;
|
||||
}
|
||||
} else {
|
||||
errors = errors ++ lazy.prefix ++ @typeName(Context) ++ " must declare a hash function with signature " ++ lazy.hash_signature;
|
||||
errors = errors ++ lazy.prefix ++ @typeName(Context) ++ " must declare a pub hash function with signature " ++ lazy.hash_signature;
|
||||
}
|
||||
|
||||
// Verify Context.eql(self, PseudoKey, Key) => bool
|
||||
@ -335,7 +335,7 @@ pub fn verifyContext(
|
||||
errors = errors ++ lazy.err_invalid_eql_signature;
|
||||
}
|
||||
} else {
|
||||
errors = errors ++ lazy.prefix ++ @typeName(Context) ++ " must declare a eql function with signature " ++ lazy.eql_signature;
|
||||
errors = errors ++ lazy.prefix ++ @typeName(Context) ++ " must declare a pub eql function with signature " ++ lazy.eql_signature;
|
||||
}
|
||||
|
||||
if (errors.len != 0) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user