Skip to content

Commit 7187953

Browse files
committed
[stdlib] Optional.map, .flatMap: Remove @_disfavoredOverload
We don’t need this to worka round the known source compat issue, and it is triggering “expression too complex” errors, causing harm. rdar://127015095 (cherry picked from commit 775aab0)
1 parent 21fddf0 commit 7187953

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

stdlib/public/core/Optional.swift

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -186,9 +186,6 @@ extension Optional {
186186
/// - Returns: The result of the given closure. If this instance is `nil`,
187187
/// returns `nil`.
188188
@_alwaysEmitIntoClient
189-
@_disfavoredOverload // FIXME: Workaround for source compat issue with
190-
// functions that used to shadow the original map
191-
// (rdar://125016028)
192189
public func map<E: Error, U: ~Copyable>(
193190
_ transform: (Wrapped) throws(E) -> U
194191
) throws(E) -> U? {
@@ -267,9 +264,6 @@ extension Optional {
267264
/// - Returns: The result of the given closure. If this instance is `nil`,
268265
/// returns `nil`.
269266
@_alwaysEmitIntoClient
270-
@_disfavoredOverload // FIXME: Workaround for source compat issue with
271-
// functions that used to shadow the original flatMap
272-
// (rdar://125016028)
273267
public func flatMap<E: Error, U: ~Copyable>(
274268
_ transform: (Wrapped) throws(E) -> U?
275269
) throws(E) -> U? {

0 commit comments

Comments
 (0)