Skip to content

Commit 17aa156

Browse files
committed
remove conditional compilation based on compiler versions
1 parent 0a1179e commit 17aa156

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ On all other Swift platforms, `swift-foundation` is available as part of the too
1818
## Building and Testing
1919

2020
> [!NOTE]
21-
> Building swift-foundation requires the in-development Swift 6.0 toolchain. You can download the Swift 6.0 nightly toolchain from [the Swift website](https://swift.org/install).
21+
> Building swift-foundation requires the in-development Swift 6.2 toolchain. You can download the Swift 6.2 nightly toolchain from [the Swift website](https://swift.org/install).
2222
2323
Before building Foundation, first ensure that you have a Swift toolchain installed. Next, check out the _Getting Started_ section of the [Foundation Build Process](Foundation_Build_Process.md#getting-started) guide for detailed steps on building and testing.
2424

Sources/FoundationEssentials/Data/Data.swift

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -605,9 +605,7 @@ internal final class __DataStorage : @unchecked Sendable {
605605

606606
@frozen
607607
@available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
608-
#if compiler(>=6.2)
609608
@_addressableForDependencies
610-
#endif
611609
public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
612610

613611
public typealias Index = Int
@@ -2203,7 +2201,6 @@ public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollect
22032201
return try _representation.withUnsafeBytes(body)
22042202
}
22052203

2206-
#if compiler(>=6.2)
22072204
@available(FoundationSpan 6.2, *)
22082205
public var bytes: RawSpan {
22092206
@lifetime(borrow self)
@@ -2299,7 +2296,6 @@ public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollect
22992296
#endif
23002297
}
23012298
}
2302-
#endif
23032299

23042300
@_alwaysEmitIntoClient
23052301
public func withContiguousStorageIfAvailable<ResultType>(_ body: (_ buffer: UnsafeBufferPointer<UInt8>) throws -> ResultType) rethrows -> ResultType? {
@@ -2951,7 +2947,6 @@ extension Data : Codable {
29512947
}
29522948
}
29532949

2954-
#if compiler(>=6.2)
29552950
// TODO: remove once _overrideLifetime is public in the standard library
29562951

29572952
/// Unsafely discard any lifetime dependency on the `dependent` argument. Return
@@ -3008,4 +3003,3 @@ internal func _overrideLifetime<
30083003
// should be expressed by a builtin that is hidden within the function body.
30093004
dependent
30103005
}
3011-
#endif

0 commit comments

Comments
 (0)