Skip to content

Commit bd4e2ad

Browse files
authored
Merge pull request #22123 from airspeedswift/4-is-a-tragic-number
2 parents 347ffb3 + 72c0006 commit bd4e2ad

File tree

2 files changed

+4
-32
lines changed

2 files changed

+4
-32
lines changed

stdlib/public/core/MigrationSupport.swift

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -244,26 +244,6 @@ extension String.UnicodeScalarView : _CustomPlaygroundQuickLookable {
244244
}
245245

246246
//===--- Slicing Support --------------------------------------------------===//
247-
// In Swift 3.2, in the absence of type context,
248-
//
249-
// someString.unicodeScalars[
250-
// someString.unicodeScalars.startIndex
251-
// ..< someString.unicodeScalars.endIndex]
252-
//
253-
// was deduced to be of type `String.UnicodeScalarView`. Provide a
254-
// more-specific Swift-3-only `subscript` overload that continues to produce
255-
// `String.UnicodeScalarView`.
256-
extension String.UnicodeScalarView {
257-
@available(swift, obsoleted: 4)
258-
public subscript(bounds: Range<Index>) -> String.UnicodeScalarView {
259-
Builtin.unreachable()
260-
}
261-
262-
@available(swift, obsoleted: 4)
263-
public subscript(bounds: ClosedRange<Index>) -> String.UnicodeScalarView {
264-
Builtin.unreachable()
265-
}
266-
}
267247

268248
// @available(swift,deprecated: 5.0, renamed: "Unicode.UTF8")
269249
public typealias UTF8 = Unicode.UTF8
@@ -327,11 +307,6 @@ extension Substring {
327307
_precondition(range.upperBound <= endIndex,
328308
"String index range is out of bounds")
329309
}
330-
331-
@available(swift, obsoleted: 4)
332-
public subscript(bounds: ClosedRange<Index>) -> String {
333-
Builtin.unreachable()
334-
}
335310
}
336311

337312
extension Substring : _CustomPlaygroundQuickLookable {
@@ -567,13 +542,6 @@ extension Sequence {
567542
) rethrows -> [ElementOfResult] {
568543
return try _compactMap(transform)
569544
}
570-
571-
@available(swift, obsoleted: 4)
572-
public func flatMap(
573-
_ transform: (Element) throws -> String
574-
) rethrows -> [String] {
575-
return try map(transform)
576-
}
577545
}
578546

579547
extension Collection {

test/api-digester/Outputs/stability-stdlib-abi.swift.expected

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,3 +78,7 @@ Protocol SIMD has added inherited protocol Decodable
7878
Protocol SIMD has added inherited protocol Encodable
7979
Protocol SIMD has generic signature change from <τ_0_0 : CustomStringConvertible, τ_0_0 : ExpressibleByArrayLiteral, τ_0_0 : Hashable, τ_0_0 : SIMDStorage, τ_0_0.MaskStorage : SIMD, τ_0_0.MaskStorage.Scalar : FixedWidthInteger, τ_0_0.MaskStorage.Scalar : SignedInteger> to <τ_0_0 : CustomStringConvertible, τ_0_0 : Decodable, τ_0_0 : Encodable, τ_0_0 : ExpressibleByArrayLiteral, τ_0_0 : Hashable, τ_0_0 : SIMDStorage, τ_0_0.MaskStorage : SIMD, τ_0_0.MaskStorage.Scalar : FixedWidthInteger, τ_0_0.MaskStorage.Scalar : SignedInteger>
8080
Protocol SIMDStorage has generic signature change from <τ_0_0.Scalar : Hashable> to <τ_0_0.Scalar : Decodable, τ_0_0.Scalar : Encodable, τ_0_0.Scalar : Hashable>
81+
82+
Func Sequence.flatMap(_:) has been removed
83+
Subscript String.UnicodeScalarView.subscript(_:) has been removed
84+
Subscript Substring.subscript(_:) has been removed

0 commit comments

Comments
 (0)