Skip to content

Commit 41c9a22

Browse files
committed
[benchmark] DictTest4Legacy: Add dummy hash(into:)
The new definition is the same as the one synthesized by the compiler.
1 parent c9cf8fc commit 41c9a22

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

benchmark/single-source/DictTest4Legacy.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,10 @@ struct LargeKey: Hashable {
5656
return hash
5757
}
5858

59+
func hash(into hasher: inout Hasher) {
60+
hasher.combine(self.hashValue)
61+
}
62+
5963
init(_ value: Int) {
6064
self.i = value
6165
self.j = 2 * value

0 commit comments

Comments
 (0)