Skip to content

Commit 41bedbe

Browse files
committed
[stdlib] Set, Dictionary: Remove inappropriate @_effects from Index hashing
1 parent bb36ddf commit 41bedbe

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

stdlib/public/core/Dictionary.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1897,8 +1897,8 @@ extension Dictionary.Index: Comparable {
18971897
}
18981898

18991899
extension Dictionary.Index: Hashable {
1900-
@_effects(readonly) // FIXME(cocoa-index): Make inlinable
1901-
public func hash(into hasher: inout Hasher) {
1900+
public // FIXME(cocoa-index): Make inlinable
1901+
func hash(into hasher: inout Hasher) {
19021902
#if _runtime(_ObjC)
19031903
switch _variant {
19041904
case .native(let nativeIndex):

stdlib/public/core/Set.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1418,8 +1418,8 @@ extension Set.Index: Hashable {
14181418
///
14191419
/// - Parameter hasher: The hasher to use when combining the components
14201420
/// of this instance.
1421-
@_effects(readonly) // FIXME(cocoa-index): Make inlinable
1422-
public func hash(into hasher: inout Hasher) {
1421+
public // FIXME(cocoa-index): Make inlinable
1422+
func hash(into hasher: inout Hasher) {
14231423
#if _runtime(_ObjC)
14241424
switch _variant {
14251425
case .native(let nativeIndex):

0 commit comments

Comments
 (0)