Skip to content

Commit 30865dc

Browse files
authored
Merge pull request #20867 from lorentey/deprecate-hashValue-2
[benchmark] DictTest4Legacy: Add dummy hash(into:)
2 parents b9d0f8a + 41c9a22 commit 30865dc

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)