Skip to content

Commit

Permalink
Merge pull request #73298 from lorentey/rdar127015095-6.0
Browse files Browse the repository at this point in the history
[6.0][stdlib] Optional.map, .flatMap: Remove @_disfavoredOverload
  • Loading branch information
lorentey committed May 2, 2024
2 parents e89eb31 + 7187953 commit c45bd72
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions stdlib/public/core/Optional.swift
Original file line number Diff line number Diff line change
Expand Up @@ -186,9 +186,6 @@ extension Optional {
/// - Returns: The result of the given closure. If this instance is `nil`,
/// returns `nil`.
@_alwaysEmitIntoClient
@_disfavoredOverload // FIXME: Workaround for source compat issue with
// functions that used to shadow the original map
// (rdar://125016028)
public func map<E: Error, U: ~Copyable>(
_ transform: (Wrapped) throws(E) -> U
) throws(E) -> U? {
Expand Down Expand Up @@ -267,9 +264,6 @@ extension Optional {
/// - Returns: The result of the given closure. If this instance is `nil`,
/// returns `nil`.
@_alwaysEmitIntoClient
@_disfavoredOverload // FIXME: Workaround for source compat issue with
// functions that used to shadow the original flatMap
// (rdar://125016028)
public func flatMap<E: Error, U: ~Copyable>(
_ transform: (Wrapped) throws(E) -> U?
) throws(E) -> U? {
Expand Down

0 comments on commit c45bd72

Please sign in to comment.