Skip to content

Commit c45bd72

Browse files
authored
Merge pull request #73298 from lorentey/rdar127015095-6.0
[6.0][stdlib] Optional.map, .flatMap: Remove @_disfavoredOverload
2 parents e89eb31 + 7187953 commit c45bd72

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)