Skip to content

Commit 70f5e4c

Browse files
author
Itai Ferber
committed
Remove unnecessary @inlinable annotations on hash(into:)
1 parent 076effd commit 70f5e4c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

stdlib/public/Darwin/Foundation/Data.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -806,7 +806,7 @@ public struct Data : ReferenceConvertible, Equatable, Hashable, RandomAccessColl
806806
}
807807
}
808808

809-
@inlinable @inline(__always) // This should always be inlined into _Representation.hash(into:).
809+
@inline(__always) // This should always be inlined into _Representation.hash(into:).
810810
func hash(into hasher: inout Hasher) {
811811
// **NOTE**: this uses `count` (an Int) and NOT `length` (a UInt8)
812812
// Despite having the same value, they hash differently. InlineSlice and LargeSlice both use `count` (an Int); if you combine the same bytes but with `length` over `count`, you can get a different hash.
@@ -1039,7 +1039,7 @@ public struct Data : ReferenceConvertible, Equatable, Hashable, RandomAccessColl
10391039
storage.copyBytes(to: pointer, from: range)
10401040
}
10411041

1042-
@inlinable @inline(__always) // This should always be inlined into _Representation.hash(into:).
1042+
@inline(__always) // This should always be inlined into _Representation.hash(into:).
10431043
func hash(into hasher: inout Hasher) {
10441044
hasher.combine(count)
10451045

@@ -1243,7 +1243,7 @@ public struct Data : ReferenceConvertible, Equatable, Hashable, RandomAccessColl
12431243
storage.copyBytes(to: pointer, from: range)
12441244
}
12451245

1246-
@inlinable @inline(__always) // This should always be inlined into _Representation.hash(into:).
1246+
@inline(__always) // This should always be inlined into _Representation.hash(into:).
12471247
func hash(into hasher: inout Hasher) {
12481248
hasher.combine(count)
12491249

@@ -1825,7 +1825,7 @@ public struct Data : ReferenceConvertible, Equatable, Hashable, RandomAccessColl
18251825
}
18261826
}
18271827

1828-
@inlinable @inline(__always) // This should always be inlined into Data.hash(into:).
1828+
@inline(__always) // This should always be inlined into Data.hash(into:).
18291829
func hash(into hasher: inout Hasher) {
18301830
switch self {
18311831
case .empty:

0 commit comments

Comments
 (0)